一、配置AC1和AC2负载分担方式的双链路备份功能

在AC1上配置AC1作为AP1的主用AC、AP2的备用AC,AC2作为AP2的主用AC、AP1的备用AC

[AC1-wlan-view] ac protect enable
Warning: This operation maybe cause AP reset, continue?[Y/N]:y
[AC1-wlan-view] ap-system-profile name ap-system1
[AC1-wlan-ap-system-prof-ap-system1] primary-access ip-address 10.23.100.2
[AC1-wlan-ap-system-prof-ap-system1] backup-access ip-address 10.23.100.3
[AC1-wlan-ap-system-prof-ap-system1] quit
[AC1-wlan-view] ap-system-profile name ap-system2
[AC1-wlan-ap-system-prof-ap-system2] primary-access ip-address 10.23.100.3
[AC1-wlan-ap-system-prof-ap-system2] backup-access ip-address 10.23.100.2
[AC1-wlan-ap-system-prof-ap-system2] quit
[AC1-wlan-view] ap-group name ap-group1
[AC1-wlan-ap-group-ap-group1] ap-system-profile ap-system1
[AC1-wlan-ap-group-ap-group1] quit
[AC1-wlan-view] ap-group name ap-group2
[AC1-wlan-ap-group-ap-group2] ap-system-profile ap-system2
[AC1-wlan-ap-group-ap-group2] quit


二、配置AC1和AC2的双链路备份功能
在AC1上,配置备份AC2的IP地址,AC1的优先级,用于双链路备份
[AC1-wlan-view] ac protect enable
Warning: This operation maybe cause AP reset, continue?[Y/N]:y
[AC1-wlan-view] ac protect protect-ac 10.23.100.3 priority 0

在AC2上,配置主用AC1的IP地址,AC2的优先级,用于双链路备份
[AC2-wlan-view] ac protect enable
Warning: This operation maybe cause AP reset, continue?[Y/N]:y
[AC2-wlan-view] ac protect protect-ac 10.23.100.2 priority 1
[AC2-wlan-view] quit


三、共同部分

在主用AC1上重启AP,下发双链路备份配置信息至AP
[AC1-wlan-view] ap-reset all
Warning: Reset AP(s), continue?[Y/N]:y
[AC1-wlan-view] quit

配置双机热备份功能 (不建议配置
[AC1] hsb-service 0 #创建HSB主备份服务0并进入HSB备份服务视图
[AC1-hsb-service-0] service-ip-port local-ip 10.23.102.1 peer-ip 10.23.102.2 local-data-port 10241 peer-data-port 10241 #建立HSB主备备份通道
[AC1-hsb-service-0] service-keep-alive detect retransmit 3 interval 1 #配置HSB主备服务报文的重传次数和发送间隔
[AC1-hsb-service-0]quit

配置将WLAN业务与NAC业务绑定AC1的HSB主备服务
[AC1] hsb-service-type ap hsb-service 0 #配置WLAN业务绑定HSB主备服务
[AC1] hsb-service-type access-user hsb-service 0 #配置NAC业务绑定HSB主备服务

在AC2上创建HSB主备服务0,并配置其主备通道IP地址和端口号
[AC2] hsb-service 0
[AC2-hsb-service-0] service-ip-port local-ip 10.23.102.2 peer-ip 10.23.102.1 local-data-port 10241 peer-data-port 10241
[AC2-hsb-service-0] quit

配置将WLAN业务与NAC业务绑定AC2的HSB主备服务
[AC2] hsb-service-type ap hsb-service 0
[AC2] hsb-service-type access-user hsb-service 0

WEB配置界面

华为AC双机热备(双链路热备)_第1张图片

检查配置命令
display hsb-service 0 #查看HSB主备服务的信息,看到Service State字段的显示为Connected,说明主备服务通道已经成功建立

display ac protect #查看双链路备份开关状态、AC的回切功能开关状态、查看到双链路备份的配置信息,WLAN视图下AC的优先级和备AC的IP地址
display ap-system-profile { all | name profile-name },查看AP系统模板视图下AC的优先级和备AC的IP地址