华为无线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倍的时间才认为断开找备的,因为是用直接转发的所以业务不会中断。)

ac1wlan

ac1-wlan-viewac 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-viewac protect enable

ac2wlan

ac2-wlan-viewac protect enable protect-ac 10.0.10.2 priority 1

Warning: This operation maybe cause AP reset, continue?Y/N:y

ac2-wlan-viewac protect enable

ac1-wlan-view ap-reset all //重启ap生效

查看主备情况

接上终端用户后查看:

备的ac2目前看是没有信息,如果主的挂了,等75秒后这里就会有信息了

双链路热备份(无vrrp)

两个ac的capwap地址不用在同一个广播域中,因为没有用vrrp

ac1hsb-service 0

ac1-hsb-service-0service-ip-port local-ip 10.0.10.2 peer-ip 10.0.11.2 local-data-port 10241 peer-data-port 10241

ac1hsb-service-type access-user hsb-service 0 //同步用户信息

ac1hsb-service-type ap hsb-service 0 //同步ap信息

ac2hsb-service 0

ac2-hsb-service-0service-ip-port local-ip 10.0.11.2 peer-ip 10.0.10.2 local-data-port 10241 peer-data-port 10241

ac2hsb-service-type access-user hsb-service 0 //同步用户信息

ac2hsb-service-type ap hsb-service 0 //同步ap信息


相关推荐
夜雨声烦丿5 小时前
从需求到页面:日期计算器应用的 ArkTS 原生实现
开发语言·javascript·华为·harmonyos
EasyGBS5 小时前
连锁书店如何用国标GB28181公网平台EasyGBS把“远程巡店”做成日常基本功?
服务器·网络·音视频
LabVIEW开发5 小时前
TTi CPX400 系列可编程电源的 LabVIEW 远程控制
网络·labview·labview知识·labview功能·labview程序
爱研究的小梁6 小时前
多链路聚合网关硬件接口详解
网络
Java小白笔记6 小时前
Codex CLI 使用与斜杠指令实战教程
服务器·数据库·oracle
楷哥爱开发6 小时前
HTTP代理是什么?性能分析、适用场景与配置教程
网络·网络协议·http
IPdodo_7 小时前
2026年AI 数据采集代理 IP 选型:成功率、并发、轮换与成本评估
前端·网络·人工智能·chrome·python·http·网络调试
云和数据.ChenGuang7 小时前
git revert回退问题
java·服务器·人工智能·git·fastapi·强化学习
鱼很腾apoc7 小时前
【Linux】第13期 详解应用层协议HTTP+Cookie/Session+HTTPS
linux·服务器·c++·学习·http·https
@卡卡-罗特7 小时前
UEFI 图形编程:直接写 FrameBuffer 与 Blt 接口的对比
网络·uefi·bios