16.2 WLAN 双链路热备份

1.配置AC1为VRRP组1的Master,配置HSB(双机热备份功能),将AC1上的业务信息通过备份链路批量备份、实时备份到AC2上,保证在主设备故障时业务能够不中断地顺利切换到备份设备

1)在AC1上创建管理VRRP备份组,配置AC1在该备份组中的优先级为150

[AC1]interface Vlanif 100
[AC1-Vlanif100]vrrp vrid 1 virtual-ip 192.168.100.254
[AC1-Vlanif100]vrrp vrid 1 priority 150
[AC1-Vlanif100]quit

2)在AC1上创建HSB主备服务0,并配置其主备通道IP地址和端口号

[AC1-hsb-service-0]service-ip-port local-ip 192.168.100.1 peer-ip 192.168.100.2 local-data-port 10241 peer-data-port 10241
[AC1-hsb-service-0]quit

3)在AC1上创建HSB备份组0,并配置其绑定HSB主备服务0和管理VRRP备份组

[AC1]hsb-group 0 
[AC1-hsb-group-0]bind-service 0
[AC1-hsb-group-0]track vrrp vrid 1 interface Vlanif 100
[AC1-hsb-group-0]quit

4)AC1配置NAC业务绑定HSB备份组、配置WLAN业务绑定HSB备份组、配置DHCP服务绑定HSB备份组

[AC1]hsb-service-type access-user hsb-group 0
[AC1]hsb-service-type ap hsb-group 0
[AC1]hsb-service-type dhcp hsb-group 0

5)使能双机热备功能

[AC1]hsb-group 0 
[AC1-hsb-group-0]hsb enable
[AC1-hsb-group-0]quit

6)配置AC1的CAPWAP源地址,VRRP虚拟IP

[AC1]capwap source ip-address 192.168.100.254

2.AC2上配置VRRP方式的双机热备份,配置AC2为VRRP组的Backup设备,配置双机热备份功能(HSB),AC2接收AC1备份过来的业务信息,保证主设备故障时可以立即接管业务。

1)在AC2上配置VRRP备份组

[AC2]interface Vlanif 100
[AC2-Vlanif100]vrrp vrid 1 virtual-ip 192.168.100.254
[AC2-Vlanif100]quit

2) 在AC2上创建HSB主备服务0,并配置其主备通道IP地址和端口号

[AC2]hsb-service 0
[AC2-hsb-service-0]service-ip-port local-ip 192.168.100.2 peer-ip 192.168.100.1 local-data-port 10241 peer-data-port 10241
[AC2-hsb-service-0]quit

3)在AC2上创建HSB备份组0,并配置其绑定HSB主备服务0和管理VRRP备份组

[AC2]hsb-group 0
[AC2-hsb-group-0]bind-service 0    
[AC2-hsb-group-0]track vrrp vrid 1 interface Vlanif 100
[AC2-hsb-group-0]quit

4)配置NAC业务绑定HSB备份组、配置WLAN业务绑定HSB备份组、配置DHCP服务绑定HSB备份组

[AC2]hsb-service-type access-user hsb-group 0
[AC2]hsb-service-type ap hsb-group 0 
[AC2]hsb-service-type dhcp hsb-group 0

5)使能双机热备功能

[AC2]hsb-group 0
[AC2-hsb-group-0]hsb enable
[AC2-hsb-group-0]quit

6)配置AC2的CAPWAP源地址,VRRP虚拟IP

[AC2]capwap source ip-address 192.168.100.254

3.查看验证结果

1)AC1、AC2上查看VRRP状态,可以看到AC1的State字段显示为Master,AC2的State字段的显示为Backup
<AC1>display vrrp
  Vlanif100 | Virtual Router 1
    State : Master
    Virtual IP : 192.168.100.254
    Master IP : 192.168.100.1
    PriorityRun : 150
    PriorityConfig : 150
    MasterPriority : 150
    Preempt : YES   Delay Time : 0 s
    TimerRun : 1 s
    TimerConfig : 1 s
    Auth type : NONE
    Virtual MAC : 0000-5e00-0101
    Check TTL : YES
    Config type : normal-vrrp
    Backup-forward : disabled
    Create time : 2023-02-16 07:07:48 UTC-05:13
    Last change time : 2023-02-16 07:07:52 UTC-05:13

<AC2>display vrrp
  Vlanif100 | Virtual Router 1
    State : Backup
    Virtual IP : 192.168.100.254
    Master IP : 192.168.100.1
    PriorityRun : 100
    PriorityConfig : 100
    MasterPriority : 150
    Preempt : YES   Delay Time : 0 s
    TimerRun : 1 s
    TimerConfig : 1 s
    Auth type : NONE
    Virtual MAC : 0000-5e00-0101
    Check TTL : YES
    Config type : normal-vrrp
    Backup-forward : disabled
    Create time : 2023-02-16 07:16:01 UTC-05:13
    Last change time : 2023-02-16 07:16:01 UTC-05:13

2)AC1、AC2上执行display hsb-service 0命令,查看主备服务建立情况,service Status字段的显示为Connected,说明主备服务通道已经成功建立

<AC1>display hsb-service 0
Hot Standby Service Information:
  Local IP Address       : 192.168.100.1
  Peer IP Address        : 192.168.100.2
  Source Port            : 10241
  Destination Port       : 10241
  Keep Alive Times       : 5
  Keep Alive Interval    : 3
  Service State          : Connected
  Service Batch Modules  :

<AC2>display hsb-service 0
Hot Standby Service Information:
  Local IP Address       : 192.168.100.2
  Peer IP Address        : 192.168.100.1
  Source Port            : 10241
  Destination Port       : 10241
  Keep Alive Times       : 5
  Keep Alive Interval    : 3
  Service State          : Connected
  Service Batch Modules  :

3)在AC1、AC2上执行display hsb-group 0命令,查看HSB备份组的运行情况

<AC1>display hsb-group 0
Hot Standby Group Information:
  HSB-group ID                : 0
  Vrrp Group ID               : 1
  Vrrp Interface              : Vlanif100
  Service Index               : 0
  Group Vrrp Status           : Master
  Group Status                : Active
  Group Backup Process        : Realtime
  Peer Group Device Name      : AC6605
  Peer Group Software Version : V200R007C10SPC300B220
  Group Backup Modules        : Access-user
                                AP
           <AC2>display hsb-group 0
Hot Standby Group Information:
  HSB-group ID                : 0
  Vrrp Group ID               : 1
  Vrrp Interface              : Vlanif100
  Service Index               : 0
  Group Vrrp Status           : Backup
  Group Status                : Inactive
  Group Backup Process        : Realtime
  Peer Group Device Name      : AC6605
  Peer Group Software Version : V200R007C10SPC300B220
  Group Backup Modules        : Access-user
                                AP
                                DHCP                     DHCP

4)AC1、AC2上检查AP1、AP2上线状态,AC1上AP的状态为nomal,而在AC2上AP的状态为Standby,AC2上的AP信息是由HSB备份组同步而来

<AC1>display ap all     
Info: This operation may take a few seconds. Please wait for a moment.done.
Total AP information:
nor  : normal          [2]
ID   MAC            Name Group IP             Type            State STA Uptime
0    00e0-fc48-42c0 AP1  dsrw  192.168.10.254 AP2050DN        nor   1   18M:6S
1    00e0-fcca-1190 AP2  dsrw  192.168.10.253 AP2050DN        nor   1   17M:25S

<AC2>display ap all 
Info: This operation may take a few seconds. Please wait for a moment.done.
Total AP information:
stdby: standby         [2]
ID   MAC            Name Group IP             Type            State STA Uptime
0    00e0-fc48-42c0 AP1  dsrw  192.168.10.254 AP2050DN        stdby 1   -
1    00e0-fcca-1190 AP2  dsrw  192.168.10.253 AP2050DN        stdby 1   -

4.查看STA1、STA2

图片[1]-16.2 WLAN 双链路热备份-大赛人网
图16-4 STA1连接网络
图片[2]-16.2 WLAN 双链路热备份-大赛人网
图16-5 STA2连接网络
图片[3]-16.2 WLAN 双链路热备份-大赛人网
图16-6 STA1地址
图片[4]-16.2 WLAN 双链路热备份-大赛人网
图16-7 STA2地址
© 版权声明
THE END
喜欢就支持一下吧
点赞8 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称

    请登录后查看评论内容