拓扑说明:
AC二层旁挂于核心,对AP进行管理
IP规划:管理VLAN 101 192.168.101.0 /24
业务VLAN 10 192.168.10.0 /24
详细配置
SW配置
sysname SW
DHCP enable
dhcp server ip-pool v10
gateway-list 192.168.10.1
network 192.168.10.0 mask 255.255.255.0
dns-list 8.8.8.8
expired day 0 hour 8
forbidden-ip 192.168.10.1
dhcp server ip-pool v101
gateway-list 192.168.101.1
network 192.168.101.0 mask 255.255.255.0
forbidden-ip 192.168.101.1
//开启DHCP服务,配置对应地址池
vlan 10
vlan 101
interface Vlan-interface10
ip address 192.168.10.1 255.255.255.0
interface Vlan-interface101
ip address 192.168.101.1 255.255.255.0
interface LoopBack0
ip address 1.1.1.1 255.255.255.255
//配置VLAN及对应VLANIF接口地址,LOO0模拟外网
interface GigabitEthernet1/0/1
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 10 101
//与AC相连端口放行VLAN 10 101
interface GigabitEthernet1/0/2
port link-type access
port access vlan 101
interface GigabitEthernet1/0/3
port link-type access
port access vlan 101
//与AP相连端口放行vlan101
AC 配置
sysname AC
vlan 10
vlan 101
interface Vlan-interface101
ip address 192.168.101.250 255.255.255.0
interface GigabitEthernet1/0/0
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 10 101
//配置VLAN及对应VLANIF地址,接口放行相应VLAN
wlan auto-ap enable
wlan auto-persistent enable
//配置AP自动上线,开启AP自动固化功能
wlan service-template 1
ssid wlan1
service-template enable
//创建服务模板,模拟器终端不支持输入密码,真机需要配置对应密码方法如下
// wlan service-template 1
// ssid wlan1
// akm mode psk
// preshared-key pass-phrase simple h3c@123456
// cipher-suite ccmp
// security-ie rsn
// service-template enable
使用display wlan ap all查看上线的AP情况
wlan ap 58cb-b51b-0300 model WA6320-HCL
serial-id H3C_58-CB-B5-1B-03-00
vlan 1
radio 1
channel 36
radio enable
service-template 1 vlan 10
wlan ap 58cb-bd81-0400 model WA6320-HCL
serial-id H3C_58-CB-BD-81-04-00
vlan 1
radio 1
channel 48
radio enable
service-template 1
//创建AP绑定服务模板,启动射频,自动上线AP名字就是MAC地址,型号序列号在上面都可以看到,这里只设置RADIO1,双频AP radio1是5G Radio2是2.4G,三频AP radio1是5G Radio2是5G Radio3是2.4G
配置完成后测试终端上线并能ping通1.1.1.1
AC上也可查看到无线终端的状态。