H3C无线控制器云集群典型配置

如所示,AC 1与AC 2通过直连链路建立云集群

1.1  配置步骤

配置AC 1

(1)配置云集群member成员

#设备出厂默认member id 为1,如果还想作为member id 1使用,不需要配置

<AC1> system-view
[AC1] cloud-cluster member 1
[AC1-ccluster-member-1]

(2)配置成员ip

#云集群自身要单独占用一个IP网段,需要提前规划好(本文以192.168.10.x/24举例)

#成员IP地址(不是接口IP)AC1与AC2同网段

[AC1-ccluster-member-1]member-ip 192.168.10.10 24

(3)指定主设备(初始主)的ip地址(本例是AC1的member ip)

[AC1-ccluster-member-1]join-cluster ip 192.168.10.10

(4)绑定云集群端口

#云集群需要配置控制通道和数据通道的物理接口

#每个通道两个物理口是为了冗余备份

#数据通道走私有协议,会增加额外的数据头,对带宽有要求推荐使用XGE口,如果使用GE口,至少要2个

 [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 data 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

(5)激活云集群配置

[AC1-ccluster-member-1]quit
[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 GigabitEthernet 1/0/3

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):

#设备重启,配置生效

配置AC 2

(1)配置云集群member成员

#设备出厂默认member id 为1,如果要修改成员编号,需要手动配置一次

配置完之后需保存重启后才能生效

<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 2
[AC2-ccluster-member-2]

(2)配置成员ip

#成员IP地址(非接口IP)AC1与AC2同网段

[AC2-ccluster-member-2]member-ip 192.168.10.11 24

(3)指定主设备(初始主)的ip地址(本例是AC1的member ip)

[AC2-ccluster-member-2]join-cluster ip 192.168.10.10

(4)绑定云集群端口

#云集群需要配置控制通道和数据通道的物理接口

#每个通道两个物理口是为了冗余备份

#数据通道走私有协议,会增加额外的数据头,对带宽有要求,推荐使用XGE口,如果使用GE口,至少要2个。

[AC2-ccluster-member-2]cluster-link control bind interface GigabitEthernet 2/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-2]cluster-link data bind interface GigabitEthernet 2/0/3
The system will shut down and then bring up the interface after activation the cloud cluster configuration. Continue? [Y/N]: y

(5)激活云集群配置

[AC2-ccluster-member-2]quit
[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 GigabitEthernet 2/0/3

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):

#设备重启,配置生效

注意:每个设备激活配置之前都要保存!

1.2 结果验证

云集群建立完成后:

#重启完成后显示集群状态

<H3C>display cloud-cluster service-cluster container  //查看主备请使用这个命令行

Container IDSlot IDMember ID Role Status

1 1 1 Master Online

2 2 2 Standby Online

<H3C>display cloud-cluster  //Role的角色可能与本样例不一致,内层主备,可以不关注

Manager list:

Member IDRoleMember IPStateHeartbeat(ms)

1Follower192.168.10.10online100

2Leader192.168.10.11online0

Worker list:

Member IDStateHeartbeat(ms)Joined at

1online100

2online200