**
负载分担方式的双链路热备份配置
**
实验要求和拓扑
负载分担方式的优点和主备方式的不同
负载分担可以每个ac都管理ap这样就避免了资源浪费,然后又作到了备份
主备方式则是,ap都交给一个ac,另一个ac只作为备份
实验拓扑
实验要求
配置过程
交换机配置(ap上线配置)
sysname S1
vlan batch 100 to 102
drop illegal-mac alarm
dhcp enable
interface Vlanif100
ip address 10.23.100.1 255.255.255.0
dhcp select interface
dhcp server excluded-ip-address 10.23.100.2 10.23.100.3
interface Vlanif101
ip address 10.23.101.1 255.255.255.0
dhcp select interface
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 100 to 102
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 100 to 102
interface GigabitEthernet0/0/3
port link-type trunk
port trunk pvid vlan 100
port trunk allow-pass vlan 100 to 102
interface GigabitEthernet0/0/4
port link-type trunk
port trunk pvid vlan 100
port trunk allow-pass vlan 100 to 102
AC1
sysname AC1
vlan batch 100 to 102
interface Vlanif100
ip address 10.23.100.2 255.255.255.0
#
interface Vlanif102
ip address 10.23.102.1 255.255.255.0
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 100 to 102
#
capwap source interface vlanif100
#
wlan
ap-id 0 type-id 69 ap-mac 00e0-fcdb-7790 ap-sn 210235448310F6421D1B
ap-name ap_1
ap-group ap-group1
ap-id 1 type-id 69 ap-mac 00e0-fcc3-11a0 ap-sn 210235448310847FC242
ap-name ap_2
ap-group ap-group2
AC2
sysname AC2
vlan batch 100 to 102
interface Vlanif100
ip address 10.23.100.3 255.255.255.0
#
interface Vlanif102
ip address 10.23.103.1 255.255.255.0
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 100 to 102
#
capwap source interface vlanif100
#
wlan
ap-id 0 type-id 69 ap-mac 00e0-fcdb-7790 ap-sn 210235448310F6421D1B
ap-name ap_1
ap-group ap-group1
ap-id 1 type-id 69 ap-mac 00e0-fcc3-11a0 ap-sn 210235448310847FC242
ap-name ap_2
ap-group ap-group2
到这里上线就结束了接下来查看上线的结果
dis ap all
用来查看ap上线
配置ap射频参数sta获取到ip
AC1
wlan
security-profile name wlan-net
security wpa-wpa2 psk pass-phrase a1234567 aes
ssid-profile name wlan-net
ssid wlan-net
vap-profile name default
vap-profile name wlan-net
service-vlan vlan-id 101
ssid-profile wlan-net
security-profile wlan-net
ap-group name ap-gorup1
ap-group name ap-group1
radio 0
vap-profile wlan-net wlan 1
radio 1
vap-profile wlan-net wlan 1
radio 2
vap-profile wlan-net wlan 1
ap-group name ap-group2
radio 0
vap-profile wlan-net wlan 1
radio 1
vap-profile wlan-net wlan 1
radio 2
vap-profile wlan-net wlan 1
AC2
wlan
security-profile name wlan-net
security wpa-wpa2 psk pass-phrase a1234567 aes
ssid-profile name wlan-net
ssid wlan-net
vap-profile name default
vap-profile name wlan-net
service-vlan vlan-id 101
ssid-profile wlan-net
security-profile wlan-net
ap-group name ap-gorup1
ap-group name ap-group1
radio 0
vap-profile wlan-net wlan 1
radio 1
vap-profile wlan-net wlan 1
radio 2
vap-profile wlan-net wlan 1
ap-group name ap-group2
radio 0
vap-profile wlan-net wlan 1
radio 1
vap-profile wlan-net wlan 1
radio 2
vap-profile wlan-net wlan 1
查看波形图
查看sta获取ip
AC1
配置负载分担方式
wlan
ap-system-profile name ap-system1
primary-access ip-address 10.23.100.2
backup-access ip-address 10.23.100.3
q
ap-system-profile name ap-system2
primary-access ip-address 10.23.100.3
backup-access ip-address 10.23.100.2
q
ap-group name ap-group1
ap-system-profile ap-system1
ap-group name ap-gorup2
ap-system-profile ap-system2
q
ac protect enable
AC2这里和AC1是一样的
配置负载分担方式
wlan
ap-system-profile name ap-system1
primary-access ip-address 10.23.100.2
backup-access ip-address 10.23.100.3
q
ap-system-profile name ap-system2
primary-access ip-address 10.23.100.3
backup-access ip-address 10.23.100.2
q
ap-group name ap-group1
ap-system-profile ap-system1
ap-group name ap-gorup2
ap-system-profile ap-system2
q
ac protect enable
AC1
配置hsb热备
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
q
hsb-service-type ap hsb-service 0
hsb-service-type access-user hsb-service 0
AC2
配置hsb热备
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
q
hsb-service-type ap hsb-service 0
hsb-service-type access-user hsb-service 0
## 查看效果图
![在这里插入图片描述](https://img-blog.csdnimg.cn/875b2314fdbf4e4e9c08b5528b3fbf15.png)
到这里就结束了