一、需求
AP 1在AC 1上线,AP 2在AC 2上线,Switch 1作为DHCP server为AP和Client分配IP地址。
1. 使用N+1备份方式使AC 3对AC1和AC 2进行备份,AC 1和AC 2工作在主用状态,AC 3工作在备用状态,当AC 1或AC 2其中一台发生故障时,AC 3会接替故障AC接入AP和客户端;
二、注意事项
① N+1备份仅对相同型号的AC生效,并且同时仅能对一台故障的主用AC进行备份。
② N+1备份功能是一种冷备份,主备倒换过程中,关联故障AC的AP和客户端会掉线,需要等待十几分钟时间恢复业务。
③ 配置AP的序列号时请确保该序列号与AP唯一对应。
license问题:这里不做叙述,详情请看相关产品文档(真机环境下)
三、配置步骤
Core1
#
vlan 100 #AP管理vlan
#
vlan 200 #业务vlan
#
#
interface Vlan-interface100
ip address 10.1.1.1 255.255.0.0
#
interface Vlan-interface200
ip address 192.168.1.1 255.255.255.0
#
interface GigabitEthernet1/0/1
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 100 200
#
interface GigabitEthernet1/0/2
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 100 200
#
interface GigabitEthernet1/0/3
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 100 200
#
interface Ten-GigabitEthernet1/0/50 #下联汇聚接口
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan all
#
dhcp enable
#
dhcp server ip-pool 100 #AP管理地址池
gateway-list 10.1.1.1
network 10.1.0.0 mask 255.255.0.0
option 43 hex 010c0a0101020a0101030a010104
#
dhcp server ip-pool 200 #业务地址池
gateway-list 192.168.1.1
network 192.168.1.0 mask 255.255.255.0
dns-list 192.168.1.1
#
汇聚switch
#
vlan 100
#
interface GigabitEthernet1/0/1
port access vlan 100
#
interface GigabitEthernet1/0/2
port access vlan 100
#
interface Ten-GigabitEthernet1/0/50
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan all
#
AC1
#
vlan 100
#
vlan 200
#
interface Vlan-interface100
ip address 10.1.1.2 255.255.0.0
#
interface Vlan-interface200
ip address 192.168.1.2 255.255.255.0
#
interface GigabitEthernet1/0/1
port link-type trunk
port trunk permit vlan 1 100 200
#
wlan service-template 1 #配置服务模板,本次实验转发模式为:隧道转发
ssid Guest_wifi
vlan 200
cipher-suite wep40
wep key 1 wep40 pass-phrase cipher 123456
service-template enable
#
wlan ap-group group1 #创建AP组
ap ap1
ap-model WA6320-HCL
radio 2
radio enable
service-template 1
#
wlan ap ap1 model WA6320-HCL #创建AP并对其SN进行关联
serial-id H3C_AA-38-03-F8-08-00
#
AC2
vlan 100
#
vlan 200
#
wlan service-template 2
ssid Guest_wifi2
vlan 200
cipher-suite wep40
wep key 1 wep40 pass-phrase cipher 12345
service-template enable
#
interface Vlan-interface100
ip address 10.1.1.3 255.255.0.0
#
interface Vlan-interface200
ip address 192.168.1.3 255.255.255.0
#
interface GigabitEthernet1/0/1
port link-type trunk
port trunk permit vlan 1 100 200
#
#
wlan ap-group group2
ap ap2
ap-model WA6320-HCL
radio 2
radio enable
service-template 2
#
wlan ap ap2 model WA6320-HCL
serial-id H3C_AA-38-06-59-09-00
#
AC3
#
vlan 100
#
vlan 200
#
wlan service-template 1
ssid Guest_wifi1
vlan 200
cipher-suite wep40
wep key 1 wep40 pass-phrase cipher 12345
service-template enable
#
wlan service-template 2
ssid Guest_wifi2
vlan 200
cipher-suite wep40
wep key 1 wep40 pass-phrase cipher 12345
service-template enable
#
interface Vlan-interface100
ip address 10.1.1.4 255.255.0.0
#
interface Vlan-interface200
ip address 192.168.1.4 255.255.255.0
#
interface GigabitEthernet1/0/1
port link-type trunk
port trunk permit vlan 1 100 200
#
wlan ap-group group1
priority 3 #设置优先级
ap ap1
ap-model WA6320-HCL
radio 2
radio enable
service-template 1
#
wlan ap-group group2
priority 3 #设置优先级
ap ap2
ap-model WA6320-HCL
radio 2
radio enable
service-template 2
#
wlan ap ap1 model WA6320-HCL
serial-id H3C_AA-38-03-F8-08-00
#
wlan ap ap2 model WA6320-HCL
serial-id H3C_AA-38-06-59-09-00
#
四、验证测试
查看AP注册状态
AC1
AC2
看出ap1与ap2已分别在AC1和AC2上正常注册
模拟AC1故障:将AC1接口shudown
#
interface GigabitEthernet1/0/1
shutdown
#
查看ap1已成功切换到AC3上注册(冷切换过程AP会重新掉线再上线)