华为无线ac双链路冷备和热备配置案例

所谓的冷备和热备,冷备就是不用vrrp和hsb协议同步ap和用户信息,主的断了等七十五秒后,备的capwap和ap连接上去。

双链路冷备不用vrrp和hsb

双链路热备份只用hsb同步ap和用户信息,不用vrrp,两个ac可以不用在同一个二层广播域

现网中常用冷备

AC1

vlan batch 10 30

interface Vlanif10

ip address 10.0.10.2 255.255.255.0

interface GigabitEthernet0/0/1

port link-type trunk

port trunk allow-pass vlan 10 30

ip route-static 0.0.0.0 0.0.0.0 10.0.10.1

capwap source ip-address 10.0.10.2

wlan

security-profile name test

security wpa-wpa2 psk pass-phrase adminadmin aes

ssid-profile name test

ssid admin

vap-profile name test

service-vlan vlan-id 30

ssid-profile test

security-profile test

ap-group name test

vap-profile test wlan 1 radio all

ap-id 0 type-id 69 ap-mac 00e0-fcc9-0500

ap-name 1-lay-01

ap-group test

AC2

vlan batch 11 30

interface Vlanif11

ip address 10.0.11.2 255.255.255.0

interface GigabitEthernet0/0/1

port link-type trunk

port trunk allow-pass vlan 11 30

ip route-static 0.0.0.0 0.0.0.0 10.0.11.1

capwap source ip-address 10.0.11.2

wlan

security-profile name test

security wpa-wpa2 psk pass-phrase adminadmin aes

ssid-profile name test

ssid admin

vap-profile name test

service-vlan vlan-id 30

ssid-profile test

security-profile test

ap-group name test

vap-profile test wlan 1 radio all

ap-id 0 type-id 69 ap-mac 00e0-fcc9-0500

ap-name 1-lay-01

ap-group test

SW1

vlan batch 10 to 11 20 30

dhcp enable

interface Vlanif10

ip address 10.0.10.1 255.255.255.0

interface Vlanif11

ip address 10.0.11.1 255.255.255.0

interface Vlanif20

ip address 172.16.0.1 255.255.255.0

dhcp select interface

dhcp server option 43 sub-option 2 ip-address 10.0.10.2 10.0.11.2 //写两台ac地址

interface Vlanif30

ip address 192.168.0.1 255.255.255.0

dhcp select interface

interface MEth0/0/1

interface GigabitEthernet0/0/1

port link-type trunk

port trunk allow-pass vlan 10 30

interface GigabitEthernet0/0/2

port link-type trunk

port trunk allow-pass vlan 11 30

interface GigabitEthernet0/0/3

port link-type trunk

port trunk pvid vlan 20

port trunk allow-pass vlan 20 30

双链路冷备份

(主挂了,备的75秒后切上去,因为capwap25秒发一次,3倍的时间才认为断开找备的,因为是用直接转发的所以业务不会中断。)

ac1\]wlan \[ac1-wlan-view\]ac protect enable protect-ac 10.0.11.2 priority 0 //指定对端备ac的capwap地址并设置自己的优先级为0,值越小越优,如果优先级相同比较看哪个ac下面带的负载小 Warning: This operation maybe cause AP reset, continue?\[Y/N\]:y \[ac1-wlan-view\]ac protect enable \[ac2\]wlan \[ac2-wlan-view\]ac protect enable protect-ac 10.0.10.2 priority 1 Warning: This operation maybe cause AP reset, continue?\[Y/N\]:y \[ac2-wlan-view\]ac protect enable \[ac1-wlan-view\] ap-reset all //重启ap生效 ### 查看主备情况 ![在这里插入图片描述](https://file.jishuzhan.net/article/1741119506526244866/91621758c1202c2232ebf1e1d9b41ea9.webp) ![在这里插入图片描述](https://file.jishuzhan.net/article/1741119506526244866/094519f2c4a2d0f59a112e04c2fb5ce4.webp) 接上终端用户后查看: ![在这里插入图片描述](https://file.jishuzhan.net/article/1741119506526244866/8e15c5aa2c16fade76ca8a0c1ff8cfca.webp) 备的ac2目前看是没有信息,如果主的挂了,等75秒后这里就会有信息了 ![在这里插入图片描述](https://file.jishuzhan.net/article/1741119506526244866/613f7d9d41aff25dbcac98612d3b9fa6.webp) ### 双链路热备份(无vrrp) 两个ac的capwap地址不用在同一个广播域中,因为没有用vrrp \[ac1\]hsb-service 0 \[ac1-hsb-service-0\]service-ip-port local-ip 10.0.10.2 peer-ip 10.0.11.2 local-data-port 10241 peer-data-port 10241 \[ac1\]hsb-service-type access-user hsb-service 0 //同步用户信息 \[ac1\]hsb-service-type ap hsb-service 0 //同步ap信息 \[ac2\]hsb-service 0 \[ac2-hsb-service-0\]service-ip-port local-ip 10.0.11.2 peer-ip 10.0.10.2 local-data-port 10241 peer-data-port 10241 \[ac2\]hsb-service-type access-user hsb-service 0 //同步用户信息 \[ac2\]hsb-service-type ap hsb-service 0 //同步ap信息 ![在这里插入图片描述](https://file.jishuzhan.net/article/1741119506526244866/5a707a476e9e67498d5c776ccf79ec63.webp) ![在这里插入图片描述](https://file.jishuzhan.net/article/1741119506526244866/0ddee27b5e5ffe21ed925dc5083266a9.webp)

相关推荐
snoopyfly~4 小时前
Ubuntu 24.04 LTS 服务器配置:安装 JDK、Nginx、Redis。
java·服务器·ubuntu
Me4神秘5 小时前
Linux国产与国外进度对垒
linux·服务器·安全
Me4神秘6 小时前
电信、移动、联通、广电跨运营商网速慢原因
网络
数通Dinner7 小时前
RSTP 拓扑收敛机制
网络·网络协议·tcp/ip·算法·信息与通信
二二孚日7 小时前
自用华为ICT云赛道Big Data第五章知识点-Flume海量日志聚合
大数据·华为
前端世界8 小时前
HarmonyOS开发实战:鸿蒙分布式生态构建与多设备协同发布全流程详解
分布式·华为·harmonyos
牛奶咖啡138 小时前
Linux系统的常用操作命令——文件远程传输、文件编辑、软件安装的四种方式
运维·服务器·软件安装·linux云计算·scp文件远程传输·vi文件编辑·设置yum的阿里云源
weixin_437398218 小时前
转Go学习笔记(2)进阶
服务器·笔记·后端·学习·架构·golang
liulilittle8 小时前
SNIProxy 轻量级匿名CDN代理架构与实现
开发语言·网络·c++·网关·架构·cdn·通信
tan77º9 小时前
【Linux网络编程】Socket - UDP
linux·服务器·网络·c++·udp