01-无线控制器双机直连云集群典型配置
本章节下载: 01-无线控制器双机直连云集群典型配置 (195.15 KB)
H3C自主研发的云集群技术,采用物理和容器的双重虚拟架构,将两台AC虚拟化成一台AC,并在虚拟AC上运行基于Docker的容器应用,以保证一台AC故障时WLAN业务不中断。本文介绍了两台AC通过直连组成云集群的典型配置案例。
AC 1和AC 2通过直连链路建立云集群,AC 1作为主设备,云集群和核心交换机之间建立动态聚合链路,用于LACP MAD检测和业务报文的转发。
图1 云集群组网图
· 使用2台同型号的AC建立云集群。
· 如果通过其他组网方式升级为云集群,建议先清空AC的配置并重启设备,然后搭建集群组网,最后再配置其它业务。
· 云集群中成员设备的成员IP地址必须同网段,故云集群自身需要单独占用一个IP网段,且网络中不允许有其他设备业务IP是此网段,否则可能会导致云集群不通或业务异常,请依据实际情况提前规划。
· 每台设备的成员编号必须在云集群内唯一。
· Core Switch 1和Core Switch 2为稳定运行的Comware V7 IRF系统。
· 请首先将AC 1和AC 2与交换机相连的业务接口通过shutdown命令关闭,防止在配置动态聚合前设备间产生环路,在集群建立完成并且动态聚合配置完成后再开启接口。
# 创建二层聚合接口1,并配置该聚合接口对应的聚合组工作在动态聚合模式下。
<Core1> system-view
[Core1] interface bridge-aggregation 1
[Core1-Bridge-Aggregation1] link-aggregation mode dynamic
[Core1-Bridge-Aggregation1] quit
# 将端口Ten-GigabitEthernet1/0/2加入到聚合组1中。
[Core1] interface ten-gigabitethernet 1/0/2
[Core1-Ten-GigabitEthernet1/0/1] port link-aggregation group 1
[Core1-Ten-GigabitEthernet1/0/1] quit
# 将端口Ten-GigabitEthernet2/0/2加入到聚合组1中。
[Core1] interface ten-gigabitethernet 2/0/2
[Core1-Ten-GigabitEthernet1/0/2] port link-aggregation group 1
[Core1-Ten-GigabitEthernet1/0/2] quit
# 开启聚合流量重定向功能。
[Core1] link-aggregation lacp traffic-redirect-notification enable
# Core 2的配置步骤同Core 1。(略)
(1) 配置设备在云集群中的成员IP为192.168.10.10/24,且本例中AC 1作为Leader。
<AC1> system-view
[AC1] cloud-cluste member 1
[AC1-ccluster-member-1] member-ip 192.168.10.10 24
(2) 集群IP地址即Leader的IP地址,故不需要配置。
(3) 绑定云集群端口
# 在Gigabitethernet1/0/2和Gigabitethernet1/0/3上部署控制通道,以形成冗余备份。
[AC1-ccluster-member-1] cluster-link control bind interface GigabitEthernet 1/0/2
The system will shut down and then bring up the interface after activation the cloud cluster configuration. Continue? [Y/N]: y
[AC1-ccluster-member-1] cluster-link control bind interface GigabitEthernet 1/0/3
The system will shut down and then bring up the interface after activation the cloud cluster configuration. Continue? [Y/N]: y
# 在Ten-Gigabitethernet1/3/9上部署数据通道。
[AC1-ccluster-member-1] cluster-link data bind interface Ten-GigabitEthernet 1/3/9
The system will shut down and then bring up the interface after activation the cloud cluster configuration. Continue? [Y/N]: y
[AC1-ccluster-member-1] quit
(4) 激活云集群配置,设备重启后配置生效。
[AC1] cloud-cluster configuration active
New cluster configuration:
cloud-cluster service-cluster domain 0
cloud-cluster hello cloud-timeout 3 service-timeout 5
cloud-cluster member 1
member-ip 192.168.10.10/24
join-cluster ip 192.168.10.10
role manager-worker
cluster-link control bind interface GigabitEthernet1/0/2
cluster-link data bind interface Ten-GigabitEthernet 1/3/9
The system will activate and save the configuration, and it might do a restart. Continue? [Y/N]:y
The current configuration will be written to the device. Are you sure? [Y/N]:y
Please input the file name(*.cfg)[flash:/startup.cfg]
(To leave the existing filename unchanged, press the enter key):test.cfg
(1) 配置设备在云集群中的成员编号修改为2,在激活云集群配置后生效。
<AC2> system-view
[AC2] cloud-cluster member 1 renumber 2
This command will take effect after the cloud cluster configuration is activated. The command might result in configuration change or loss when it takes effect. Continue? [Y/N]: y
[AC2] cloud-cluster member 1
(2) 配置设备在云集群中的成员IP为192.168.10.11/24
[AC2-ccluster-member-1] member-ip 192.168.10.11 24
(3) 指定设备要加入的集群IP地址即AC 1的IP地址,IP地址为192.168.10.10。
[AC2-ccluster-member-1] join-cluster ip 192.168.10.10
(4) 绑定云集群端口
# 在Gigabitethernet1/0/2和Gigabitethernet1/0/3上部署控制通道,以形成冗余备份。
[AC2-ccluster-member-1] cluster-link control bind interface GigabitEthernet 1/0/2
The system will shut down and then bring up the interface after activation the cloud cluster configuration. Continue? [Y/N]: y
[AC2-ccluster-member-1] cluster-link control bind interface GigabitEthernet 1/0/3
The system will shut down and then bring up the interface after activation the cloud cluster configuration. Continue? [Y/N]: y
# 在Ten-Gigabitethernet1/3/9上部署数据通道。
[AC2-ccluster-member-1] cluster-link data bind interface Ten-GigabitEthernet 1/3/9
The system will shut down and then bring up the interface after activation the cloud cluster configuration. Continue? [Y/N]: y
[AC2-ccluster-member-1] quit
(5) 激活云集群配置,设备重启后配置生效。
[AC2] cloud-cluster configuration active
New cluster configuration:
cloud-cluster service-cluster domain 0
cloud-cluster hello cloud-timeout 3 service-timeout 5
cloud-cluster member 2
member-ip 192.168.10.11/24
join-cluster ip 192.168.10.10
role manager-worker
cluster-link control bind interface GigabitEthernet2/0/2
cluster-link data bind interface Ten-GigabitEthernet 2/3/9
The system will activate and save the configuration, and it might do a restart. Continue? [Y/N]:y
The current configuration will be written to the device. Are you sure? [Y/N]:y
Please input the file name(*.cfg)[flash:/startup.cfg]
(To leave the existing filename unchanged, press the enter key):test.cfg
# 创建二层聚合接口1,并配置该聚合接口对应的聚合组工作在动态聚合模式下。
<AC1> system-view
[AC1] interface bridge-aggregation 1
[AC1-Bridge-Aggregation1] link-aggregation mode dynamic
# 开启LACP MAD检测功能。
[AC1-Bridge-Aggregation1] mad enable
You need to assign a domain ID (range: 0-4294967295)
[Current domain ID is: 0]: 1
The assigned domain ID is: 1
[AC1-Bridge-Aggregation1] quit
# 将端口Ten-GigabitEthernet1/3/10加入到聚合组1中。
[AC1] interface ten-gigabitethernet 1/3/10
[AC1-Ten-GigabitEthernet1/3/10] port link-aggregation group 1
[AC1-Ten-GigabitEthernet1/3/10] quit
# 将端口Ten-GigabitEthernet2/3/10加入到聚合组1中。
[AC1] interface ten-gigabitethernet 2/3/10
[AC1-Ten-GigabitEthernet2/3/10] port link-aggregation group 1
[AC1-Ten-GigabitEthernet2/3/10] quit
# 配置AP热备份功能
[AC1] wlan ap-backup hot-backup enable global
This operation will enable fast switchover for AP backup.
# 配置客户端热备份功能
[AC1] wlan client-backup hot-backup enable
# 显示物理集群的相关信息,可以看到物理集群中有两台设备,AC 1是Leader,AC 2是Follower。
<AC1> display cloud-cluster
Manager list:
Member ID Role Member IP State Heartbeat(ms)
1 Leader 192.168.10.10 online 100
2 Follower 192.168.10.11 online 0
Worker list:
Member ID State Heartbeat(ms) Joined at
1 online 100 2023-02-12 06:13:28
2 online 200 2023-02-12 06:13:28
# 显示容器集群的相关信息,可以看到AC 1上的容器为Master,AC 2上的容器是Standby。
<AC1> display cloud-cluster service-cluster container
Container ID Slot ID Member ID Role Status
1 1 1 Master Online
2 2 2 Standby Online
· Core 1和Core 2:
#
interface bridge-aggregation 1
link-aggregation mode dynamic
#
interface ten-gigabitethernet 1/0/2
port link-aggregation group 1
#
interface ten-gigabitethernet 2/0/2
port link-aggregation group 1
#
link-aggregation lacp traffic-redirect-notification enable
#
· AC1
#
cloud-cluste member 1
member-ip 192.168.10.10 24
cluster-link control bind interface GigabitEthernet 1/0/2
cluster-link control bind interface GigabitEthernet 1/0/3
cluster-link data bind interface Ten-GigabitEthernet 1/3/9
#
cloud-cluster configuration active
#
interface bridge-aggregation 1
link-aggregation mode dynamic
mad enable
#
interface ten-gigabitethernet 1/3/10
port link-aggregation group 1
#
interface ten-gigabitethernet 2/3/10
port link-aggregation group 1
#
wlan ap-backup hot-backup enable global
#
wlan client-backup hot-backup enable
#
· AC 2
#
cloud-cluster member 1 renumber 2
#
cloud-cluster member 1
member-ip 192.168.10.11 24
join-cluster ip 192.168.10.10
cluster-link control bind interface GigabitEthernet 1/0/2
cluster-link control bind interface GigabitEthernet 1/0/3
cluster-link data bind interface Ten-GigabitEthernet 1/3/9
#
cloud-cluster configuration active
· 《H3C 无线控制器产品 配置指导》中的“可靠性配置指导”。
· 《H3C 无线控制器产品 命令参考》中的“可靠性命令参考”。
· 《H3C 无线控制器产品 配置指导》中的“网络互通配置指导”。
· 《H3C 无线控制器产品 命令参考》中的“网络互通命令参考”。
不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!