08-AC 1+1热备份典型配置举例(V5)
本章节下载: 08-AC 1+1热备份典型配置举例(V5) (224.36 KB)
AC 1+1热备份典型配置举例(V5)
资料版本:6W114-20210416
Copyright © 2008-2021新华三技术有限公司 版权所有,保留一切权利。
非经本公司书面许可,任何单位和个人不得擅自摘抄、复制本文档内容的部分或全部,并不得以任何形式传播。
除新华三技术有限公司的商标外,本手册中出现的其它公司的商标、产品标识及商品名称,由各自权利人拥有。
本文档中的信息可能变动,恕不另行通知。
目 录
本文档介绍AC 1+1热备份配置举例。
本文档不严格与具体软、硬件版本对应,如果使用过程中与产品实际情况有差异,请参考相关产品手册,或以设备实际情况为准。
本文档中的配置均是在实验室环境下进行的配置和验证,配置前设备的所有参数均采用出厂时的缺省配置。如果您已经对设备进行了配置,为了保证配置效果,请确认现有配置和以下举例中的配置不冲突。
本文档假设您已了解AC 1+1热备份特性。
如图1所示,为了避免单台AC故障导致无线客户端无法接入网络,在网络中部署了两台AC,实现1+1热备份。AC 1作为主用AC负责提供无线服务,AC 2作为备用AC为AC1提供备份,AC 1与AC 2通过一台二层交换机相连。具体应用需求如下:
· AP和Client通过DHCP服务器获取IP地址。
· 当AC 1发生故障时,能够立即切换到AC 2继续为Client提供无线服务;在AC 1故障恢复后,能够切换回AC 1为Client提供无线服务。
图1 AC 1+1热备份组网图
为了在主AC故障恢复后,AP可以重新切换到主AC上,需要保证AC 1的优先级高于AC 2。
· 配置AP的序列号时请确保该序列号与AP唯一对应,AP的序列号可以通过AP设备背面的标签获取。
· 主、备AC上对于需要提供服务的同一AP,其AP模板视图下的配置必须保持一致(除了AC的IP地址和优先级配置之外)。否则当AC的主、备状态切换之后,无法保证AP设备工作正常。
# 创建VLAN 100及其对应的VLAN接口,并为该接口配置IP地址。AC将使用该接口的IP地址与AP建立LWAPP隧道。
<AC1> system-view
[AC1] vlan 100
[AC1-vlan100] quit
[AC1] interface vlan-interface 100
[AC1-Vlan-interface100] ip address 192.168.1.10 255.255.255.0
[AC1-Vlan-interface100] quit
# 创建VLAN 200作为ESS接口的缺省VLAN,同时作为Client接入的业务VLAN,并为该接口配置IP地址。
[AC1] vlan 200
[AC1-vlan200] quit
[AC1] interface vlan-interface 200
[AC1-Vlan-interface200] ip address 192.168.2.10 255.255.255.0
[AC1-Vlan-interface200] quit
# 在AC 1上配置热备份功能,同时配置VLAN 200作为AC间用于热备份的本端数据端口的VLAN。
[AC1] hot-backup enable domain 1
[AC1] hot-backup vlan 200
# 在AC 1上配置AC 2的IP地址192.168.1.20为备份AC和AP建立隧道的接口的IP地址。
[AC1] wlan backup-ac ip 192.168.1.20
# 创建WLAN-ESS 1接口。
[AC1] interface wlan-ess 1
# 配置WLAN-ESS 1接口类型为Hybrid。
[AC1-WLAN-ESS1] port link-type hybrid
# 配置当前Hybrid端口的PVID为VLAN 200,禁止VLAN 1通过并允许VLAN 200不带Tag通过。
[AC1-WLAN-ESS1] undo port hybrid vlan 1
[AC1-WLAN-ESS1] port hybrid vlan 200 untagged
[AC1-WLAN-ESS1] port hybrid pvid vlan 200
# 使能MAC VLAN功能。
[AC1-WLAN-ESS1] mac-vlan enable
[AC1-WLAN-ESS1] quit
# 配置AC的GigabitEthernet 1/0/1接口的链路类型为Trunk,当前Trunk口的PVID为100,允许VLAN 100和VLAN 200通过。
[AC1] interface gigabitethernet 1/0/1
[AC1-GigabitEthernet1/0/1] port link-type trunk
[AC1-GigabitEthernet1/0/1] port trunk permit vlan 100 200
[AC1-GigabitEthernet1/0/1] port trunk pvid vlan 100
[AC1-GigabitEthernet1/0/1] quit
(2) 配置无线服务
# 创建clear类型的服务模板1。
[AC1] wlan service-template 1 clear
# 设置当前服务模板的SSID为service。
[AC1-wlan-st-1] ssid service
# 将WLAN-ESS 1接口绑定到服务模板1。
[AC1-wlan-st-1] bind wlan-ess 1
# 启用无线服务。
[AC1-wlan-st-1] service-template enable
[AC1-wlan-st-1] quit
# 在AC 1的AP模板视图下配置AP名称为officeap1,型号名称选择WA2620E-AGN。
[AC1] wlan ap officeap1 model WA2620E-AGN
# 设置主AC上AP的接入优先级为6,序列号为21023529G007C000020。
[AC1-wlan-ap-officeap1] priority level 6
[AC1-wlan-ap-officeap1] serial-id 21023529G007C000020
# 进入AP的radio1射频视图,配置服务模板1与射频1进行关联,使能AP的radio1射频。
[AC1-wlan-ap-officeap1] radio 1
[AC1-wlan-ap-officeap1-radio-1] service-template 1
[AC1-wlan-ap-officeap1-radio-1] radio enable
[AC1-wlan-ap-officeap1-radio-1] quit
[AC1-wlan-ap-officeap1] quit
(1) 配置AC 2的接口
# 创建VLAN 100及其对应的VLAN接口,并为该接口配置IP地址。AC将使用该接口的IP地址与AP建立LWAPP隧道。
<AC2> system-view
[AC2] vlan 100
[AC2-vlan100] quit
[AC2] interface vlan-interface 100
[AC2-Vlan-interface100] ip address 192.168.1.20 255.255.255.0
[AC2-Vlan-interface100] quit
# 创建VLAN 200作为ESS接口的缺省VLAN,同时作为Client接入的业务VLAN,并为该接口配置IP地址。
[AC2] vlan 200
[AC2-vlan200] quit
[AC2] interface vlan-interface 200
[AC2-Vlan-interface200] ip address 192.168.2.20 255.255.255.0
[AC2-Vlan-interface200] quit
# 在AC 2上配置hot-backup,同时配置VLAN 200作为AC间用于热备份的本端数据端口的VLAN。
[AC2] hot-backup enable domain 1
[AC2] hot-backup vlan 200
# 在AC 2上配置AC 1的IP地址192.168.1.10为主AC和AP建立隧道的接口的IP地址。
[AC2] wlan backup-ac ip 192.168.1.10
# 创建WLAN-ESS 1接口。
[AC2] interface wlan-ess 1
# 配置WLAN-ESS 1接口类型为Hybrid。
[AC2-WLAN-ESS1] port link-type hybrid
# 配置当前Hybrid端口的PVID为VLAN 200,禁止VLAN 1通过并允许VLAN 200不带Tag通过。
[AC2-WLAN-ESS1] undo port hybrid vlan 1
[AC2-WLAN-ESS1] port hybrid vlan 200 untagged
[AC2-WLAN-ESS1] port hybrid pvid vlan 200
# 使能MAC VLAN功能。
[AC2-WLAN-ESS1] mac-vlan enable
[AC2-WLAN-ESS1] quit
# 配置AC的GigabitEthernet 1/0/1接口的链路类型为Trunk,当前Trunk口的PVID为100,允许VLAN 100和VLAN 200通过。
[AC2] interface gigabitethernet 1/0/1
[AC2-GigabitEthernet1/0/1] port link-type trunk
[AC2-GigabitEthernet1/0/1] port trunk permit vlan 100 200
[AC2-GigabitEthernet1/0/1] port trunk pvid vlan 100
[AC2-GigabitEthernet1/0/1] quit
(2) 配置无线服务
# 创建clear类型的服务模板1。
[AC2] wlan service-template 1 clear
# 设置当前服务模板的SSID为service。
[AC2-wlan-st-1] ssid service
# 将WLAN-ESS1接口绑定到服务模板1。
[AC2-wlan-st-1] bind wlan-ess 1
# 启用无线服务。
[AC2-wlan-st-1] service-template enable
[AC2-wlan-st-1] quit
# 在AC 2的AP模板视图下配置AP名称为officeap1,型号名称选择WA2620E-AGN。
[AC2] wlan ap officeap1 model WA2620E-AGN
# 设置AP的序列号为21023529G007C000020,以及AP的接入优先级取系统缺省值4。
[AC2-wlan-ap-officeap1] serial-id 21023529G007C000020
# 进入AP的radio1射频视图,配置服务模板与射频1进行关联,使能AP的radio 1射频。
[AC2-wlan-ap-officeap1] radio 1
[AC2-wlan-ap-officeap1-radio-1] service-template 1
[AC2-wlan-ap-officeap1-radio-1] radio enable
[AC2-wlan-ap-officeap1-radio-1] quit
[AC2-wlan-ap-officeap1] quit
# 创建VLAN 100和VLAN 200,其中VLAN 100用于转发AC和AP间LWAPP隧道内的流量,VLAN 200为无线用户接入的VLAN。
<Switch> system-view
[Switch] vlan 100
[Switch-vlan100] quit
[Switch] vlan 200
[Switch-vlan200] quit
# 配置Switch与AC 1相连的GigabitEthernet1/0/1接口的链路类型为Trunk,当前Trunk口的PVID为100,并允许VLAN 100和VLAN 200通过。
[Switch] interface gigabitethernet 1/0/1
[Switch-GigabitEthernet1/0/1] port link-type trunk
[Switch-GigabitEthernet1/0/1] port trunk permit vlan 100 200
[Switch-GigabitEthernet1/0/1] port trunk pvid vlan 100
[Switch-GigabitEthernet1/0/1] quit
# 配置Switch与AP相连的GigabitEthernet1/0/2接口的链路类型为Access,当前Access口允许VLAN 100通过,并使能PoE功能。
[Switch] interface gigabitethernet 1/0/2
[Switch-GigabitEthernet1/0/2] port link-type access
[Switch-GigabitEthernet1/0/2] port access vlan 100
[Switch-GigabitEthernet1/0/2] poe enable
[Switch-GigabitEthernet1/0/2] quit
# 配置Switch与AC 2相连的GigabitEthernet1/0/3接口的链路类型为Trunk,当前Trunk口的PVID为100,并允许VLAN 100和VLAN 200通过。
[Switch] interface gigabitethernet 1/0/3
[Switch-GigabitEthernet1/0/3] port link-type trunk
[Switch-GigabitEthernet1/0/3] port trunk permit vlan 100 200
[Switch-GigabitEthernet1/0/3] port trunk pvid vlan 100
[Switch-GigabitEthernet1/0/3] quit
# 配置Switch与DHCP server相连的GigabitEthernet1/0/4接口的链路类型为Access,当前Access口允许VLAN 100通过。
[Switch] interface gigabitethernet 1/0/4
[Switch-GigabitEthernet1/0/4] port link-type access
[Switch-GigabitEthernet1/0/4] port access vlan 100
[Switch-GigabitEthernet1/0/4] quit
(1) 在主、备AC均正常工作时,查看AC热备份状态、AP运行状态和客户端运行状态。
# 在AC 1上通过命令行display hot-backup state查看Link State为Connect、Peer Board MAC为对端备份AC的MAC地址,Peer Board State为normal。
[AC1] display hot-backup state
******************************************************************************
Vlan ID : 20
Domain ID : 1
Link State : Connect
Peer Board MAC : 000f-e27e-0bc7
Peer Board State : Normal
Hello Interval : 30
# 在AC 2上通过命令行display hot-backup state查看Link State为Connect、Peer Board MAC为对端主AC的MAC地址,Peer Board State为normal。
[AC2] display hot-backup state
******************************************************************************
Vlan ID : 20
Domain ID : 1
Link State : Connect
Peer Board MAC : 000f-e212-ff01
Peer Board State : Normal
Hello Interval : 30
# 在AC 1上通过命令行display wlan ap查看AP的注册状态应该为Run/M。
[AC1] display wlan ap name officeap1
AP Profile
----------------------------------------------------------------------------------------
AP Name APID State Model Serial-ID
----------------------------------------------------------------------------------------
officeap1 1 Run/M WA2620E-AGN 21023529G007C000020
----------------------------------------------------------------------------------------
# 在AC 2上通过命令行display wlan ap查看AP的注册状态应该为Run/B。
[AC2] display wlan ap name officeap1
AP Profile
----------------------------------------------------------------------------------------
AP Name APID State Model Serial-ID
----------------------------------------------------------------------------------------
officeap1 1 Run/B WA2620E-AGN 21023529G007C000020
# 在AC 1上通过display wlan client命令可以看到上线的无线客户端状态为Running。
[AC1] display wlan client
Total Number of Clients : 1
Total Number of Clients Connected : 1
Client Information
----------------------------------------------------------------------------------------
MAC Address BSSID AID State PS Mode QoS Mode
----------------------------------------------------------------------------------------
001b-110b-7274 000f-e28b-fd40 1 Running Active None
----------------------------------------------------------------------------------------
# 在AC 2上通过display wlan client命令可以看到上线的无线客户端状态为Running/B。
[AC2] display wlan client
Total Number of Clients : 1
Total Number of Clients Connected : 1
Client Information
----------------------------------------------------------------------------------------
MAC Address BSSID AID State PS Mode QoS Mode
----------------------------------------------------------------------------------------
001b-110b-7274 000f-e28b-fd40 1 Running/B Active None
----------------------------------------------------------------------------------------
(2) 当主AC发生故障和故障恢复时,查看AP状态与客户端状态的变化。
# 当AC 1发生故障时,本地AP连接的状态由Run/B切换为Run/M,上线的无线客户端状态由Running/B变为Running。
[AC2] display wlan ap name officeap1
AP Profile
----------------------------------------------------------------------------------------
AP Name APID State Model Serial-ID
----------------------------------------------------------------------------------------
officeap1 1 Run/M WA2620E-AGN 21023529G007C000020
[AC2] display wlan client
Total Number of Clients : 1
Total Number of Clients Connected : 1
Client Information
----------------------------------------------------------------------------------------
MAC Address BSSID AID State PS Mode QoS Mode
----------------------------------------------------------------------------------------
001b-110b-7274 000f-e28b-fd40 1 Running Active None
----------------------------------------------------------------------------------------
# 在AC 1上通过display wlan ap命令查看AP的连接状态由Run/M切换为Run/B,通过display wlan client命令可以看到上线的无线客户端状态为Running/B。
[AC1] display wlan ap name officeap1
AP Profile
----------------------------------------------------------------------------------------
AP Name APID State Model Serial-ID
----------------------------------------------------------------------------------------
officeap1 1 Run/B WA2620E-AGN 21023529G007C000020
----------------------------------------------------------------------------------------
[AC1] display wlan client
Total Number of Clients : 1
Total Number of Clients Connected : 1
Client Information
----------------------------------------------------------------------------------------
MAC Address BSSID AID State PS Mode QoS Mode
----------------------------------------------------------------------------------------
001b-110b-7274 000f-e28b-fd40 1 Running/B Active None
----------------------------------------------------------------------------------------
# 当AC 1故障恢复后,在AC 1上通过display wlan ap命令查看AP的连接状态由Run/B切换为Run/M,通过display wlan client命令可以看到上线的无线客户端状态为Running。
[AC1] display wlan ap name officeap1
AP Profile
----------------------------------------------------------------------------------------
AP Name APID State Model Serial-ID
----------------------------------------------------------------------------------------
officeap1 1 Run/M WA2620E-AGN 21023529G007C000020
----------------------------------------------------------------------------------------
[AC1] display wlan client
Total Number of Clients : 1
Total Number of Clients Connected : 1
Client Information
----------------------------------------------------------------------------------------
MAC Address BSSID AID State PS Mode QoS Mode
----------------------------------------------------------------------------------------
001b-110b-7274 000f-e28b-fd40 1 Running Active None
----------------------------------------------------------------------------------------
# 在AC 2上通过display wlan ap命令查看AP的连接状态为Run/B,通过display wlan client命令可以看到上线的无线客户端状态为Running/B。
[AC2] display wlan ap name officeap1
AP Profile
----------------------------------------------------------------------------------------
AP Name APID State Model Serial-ID
----------------------------------------------------------------------------------------
officeap1 1 Run/B WA2620E-AGN 21023529G007C000020
[AC2] display wlan client
Total Number of Clients : 1
Total Number of Clients Connected : 1
Client Information
----------------------------------------------------------------------------------------
MAC Address BSSID AID State PS Mode QoS Mode
----------------------------------------------------------------------------------------
001b-110b-7274 000f-e28b-fd40 1 Running/B Active None
----------------------------------------------------------------------------------------
· AC 1:
#
wlan backup-ac ip 10.101.0.20
#
hot-backup enable domain 1
hot-backup vlan 200
#
vlan 100
#
vlan 200
#
wlan service-template 1 clear
ssid service
bind WLAN-ESS 1
service-template enable
#
interface Vlan-interface100
ip address 192.168.1.10 255.255.255.0
#
interface Vlan-interface200
ip address 192.168.2.10 255.255.255.0
#
interface GigabitEthernet1/0/1
port link-type trunk
port trunk permit vlan 100 200
port trunk pvid vlan 100
#
interface WLAN-ESS1
port link-type hybrid
undo port hybrid vlan 1
port hybrid vlan 200 untagged
port hybrid pvid vlan 200
#
wlan ap officeap1 model WA2620E-AGN
priority level 6
serial-id 21023529G007C000020
radio 1
channel auto
max-power 20
service-template 1
radio enable
#
· AC 2:
#
wlan backup-ac ip 10.101.0.10
#
hot-backup enable domain 1
hot-backup vlan 200
#
vlan 100
#
vlan 200
#
wlan service-template 1 clear
ssid service
bind WLAN-ESS 1
service-template enable
#
interface Vlan-interface100
ip address 192.168.1.20 255.255.255.0
#
interface Vlan-interface200
ip address 192.168.2.20 255.255.255.0
#
interface GigabitEthernet1/0/1
port link-type trunk
port trunk permit vlan 100 200
port trunk pvid vlan 100
#
interface WLAN-ESS1
port link-type hybrid
port hybrid vlan 1 200 untagged
#
wlan ap officeap1 model WA2620E-AGN
serial-id 21023529G007C000020
radio 1
channel auto
max-power 20
service-template 1
radio enable
#
· Switch:
#
vlan 100
#
vlan 200
#
interface GigabitEthernet1/0/1
port link-type trunk
port trunk permit vlan 100
port trunk pvid vlan 100
#
interface GigabitEthernet1/0/2
port link-type access
port access vlan 100
poe enable
#
interface GigabitEthernet1/0/3
port link-type trunk
port trunk permit vlan 100
port trunk pvid vlan 100
#
interface GigabitEthernet1/0/4
port link-type access
port access vlan 100
#
· 《H3C无线控制器产品 配置指导》中的“WLAN配置指导”。
· 《H3C无线控制器产品 命令参考》中的“WLAN命令参考”。
不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!