看了很多产品文档都说ac ap会自动连接,但是我这边不知道怎么配置,已经开启了自动ap还是不行,是ap还需要什么配置吗?
(0)
最佳答案
二层注册吗,参考:
如图1所示,AC作为DHCP服务器为AP分配IP地址,现要求使用自动AP功能,实现AP与AC自动关联,并且在关联后将AP转化为固化AP。
图1 自动AP配置举例组网图
(1) 配置AC的接口
# 创建VLAN 100及其对应的VLAN接口,并为该接口配置IP地址。AP将获取该IP地址与AC建立CAPWAP隧道。
<AC> system-view
[AC] vlan 100
[AC-vlan100] quit
[AC] interface vlan-interface 100
[AC-Vlan-interface100] ip address 192.1.0.1 16
[AC-Vlan-interface100] quit
# 将与Switch相连的接口GigabitEthernet1/0/1的链路类型配置为Trunk,禁止VLAN 1通过,允许VLAN 100通过,当前Trunk口的PVID为100。
[AC] interface gigabitethernet 1/0/1
[AC-GigabitEthernet1/0/1] port link-type trunk
[AC-GigabitEthernet1/0/1] port trunk pvid vlan 100
[AC-GigabitEthernet1/0/1] undo port trunk permit vlan 1
[AC-GigabitEthernet1/0/1] port trunk permit vlan 100
[AC-GigabitEthernet1/0/1] quit
(2) 配置DHCP功能
# 开启DHCP服务。
[AC] dhcp enable
# 配置DHCP地址池1为AP动态分配的网段为192.1.0.0/16,网关地址为192.1.0.1。
[AC] dhcp server ip-pool 1
[AC-dhcp-pool-1] network 192.1.0.0 16
[AC-dhcp-pool-1] gateway-list 192.1.0.1
[AC-dhcp-pool-1] quit
(3) 配置自动AP功能
# 开启自动AP功能。
[AC] wlan auto-ap enable
# 开启自动AP自动固化功能。
[AC] wlan auto-persistent enable
(4) 配置AP型号
[AC] wlan ap-group default-group
[AC-wlan-ap-group-default-group]ap-model WA5530
# 创建VLAN 100,用于转发AC和AP间CAPWAP隧道内的流量。
<Switch> system-view
[Switch] vlan 100
[Switch-vlan100] quit
# 配置Switch与AC相连的GigabitEthernet1/0/1接口的属性为Trunk,禁止VLAN 1通过,允许VLAN 100通过,当前Trunk口的PVID为100。
[Switch] interface gigabitethernet 1/0/1
[Switch-GigabitEthernet1/0/1] port link-type trunk
[Switch-GigabitEthernet1/0/1] undo port trunk permit vlan 1
[Switch-GigabitEthernet1/0/1] port trunk permit vlan 100
[Switch-GigabitEthernet1/0/1] port trunk pvid vlan 100
[Switch-GigabitEthernet1/0/1] quit
# 配置Switch与AP相连的GigabitEthernet1/0/2接口属性为Access,当前Access口允许VLAN 100通过。
[Switch] interface gigabitethernet 1/0/2
[Switch-GigabitEthernet1/0/2] port link-type access
[Switch-GigabitEthernet1/0/2] port access vlan 100
# 配置Switch与AP相连的GigabitEthernet1/0/2接口使能PoE功能。
[Switch-GigabitEthernet1/0/2] poe enable
[Switch-GigabitEthernet1/0/2] quit
# 通过display wlan ap all命令可以看到AC与AP建立连接,AP的状态为Run。
[AC] display wlan ap all
Total number of APs: 1
Total number of connected APs: 1
Total number of connected manual APs: 1
Total number of connected auto APs: 0
Total number of connected common APs: 1
Total number of connected WTUs: 0
Total number of inside APs: 0
Maximum supported APs: 3072
Remaining APs: 3071
Total AP licenses: 128
Remaining AP licenses: 127
AP information
State : I = Idle, J = Join, JA = JoinAck, IL = ImageLoad
C = Config, DC = DataCheck, R = Run, M = Master, B = Backup
AP name AP ID State Model Serial ID
741f-4a35-6e00 1 R/M WA4320-ACN-SI 219801A0T78156A00049
· AC
#
dhcp enable
#
vlan 100
#
dhcp server ip-pool 1
gateway-list 192.1.0.1
network 192.1.0.0 mask 255.255.0.0
#
interface Vlan-interface100
ip address 192.1.0.1 255.255.0.0
#
interface GigabitEthernet1/0/1
port link-type trunk
undo port trunk permit vlan 1
port trunk pvid vlan 100
port trunk permit vlan 100
#
wlan auto-ap enable
wlan auto-persistent enable
#
· Switch
#
vlan 100
#
interface GigabitEthernet1/0/1
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 100
port trunk pvid vlan 100
#
interface GigabitEthernet1/0/2
port link-type access
port access vlan 100
poe enable
#
(0)
对的,直接通过vlan1
(0)
https://www.h3c.com/cn/service/tools_resource/wlanadp/
按官网消息是支持的
不能上线检查如下
1、升级AC版本到最新
2、确保连接AP的端口配置正确
3、保证链路的连通性,可用台电脑连到交换机上插AP的端口测试看能能否获取 IP和PING通网关
(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
参考案例里AC的配置