无线控制器AC云集群配置 (高级 最新技术)

1 注意事项

#     如果是通过其它组网方式升级过来,建议先清空配置重启,搭建集群组网,再配置其它业务。

#     在搭建集群前,将AC与SW相连的业务口先shutdown,防止在配置动态聚合前设备间产生环路,在集群建立完成并且动态聚合配置完成后再undo shutdown。

2 配置举例

2.1 组网需求

图1所示,AC 1与AC 2通过直连链路建立云集群,同时AC1作为初始主,云集群与交换机Core之间建立动态聚合链路,用于LACP MAD检测和业务报文转发。

  • 云集群直连组网图

2.2 配置步骤

2.2.1 配置Switch

# 配置前提:Core完成堆叠建立

# 创建二层聚合接口1,并配置该聚合接口对应的聚合组工作在动态聚合模式下。

<Switch> system-view

[Switch] interface bridge-aggregation 1

[Switch-Bridge-Aggregation1] link-aggregation mode dynamic

[Switch-Bridge-Aggregation1] quit

# 将端口Ten-GigabitEthernet1/0/2加入到聚合组1中。

[Switch] interface ten-gigabitethernet 1/0/2

[Switch-Ten-GigabitEthernet1/0/1] port link-aggregation group 1

[Switch-Ten-GigabitEthernet1/0/1] quit

# 将端口Ten-GigabitEthernet2/0/2加入到聚合组1中。

[Switch] interface ten-gigabitethernet 2/0/2

[Switch-Ten-GigabitEthernet1/0/2] port link-aggregation group 1

[Switch-Ten-GigabitEthernet1/0/2] quit

# 开启聚合流量重定向功能后

[Switch]link-aggregation lacp traffic-redirect-notification enable

2.2.2 配置AC 1

  • 配置云集群member成员

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

<AC1> system-view

[AC1] cloud-cluster member 1

[AC1-ccluster-member-1]
  • 配置成员ip

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

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

[AC1-ccluster-member-1]member-ip 192.168.10.10 24
  • 指定主设备(初始主)的ip地址(本例是AC1的member ip)
[AC1-ccluster-member-1]join-cluster ip 192.168.10.10
  • 绑定云集群端口

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

#每个通道两个物理口是为了冗余备份(本例中数据通道单物理口)

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

[AC1-ccluster-member-1]cluster-link control   bind  interface GigabitEthernet 1/0/2

[AC1-ccluster-member-1]cluster-link control bind interface GigabitEthernet 1/0/3

[AC1-ccluster-member-1]cluster-link  data  bind interface Ten-GigabitEthernet 1/3/9
  • 激活云集群配置
[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 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

#设备重启,配置生效

2.2.3 配置AC 2

  • 配置云集群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]
  • 配置成员ip

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

[AC2-ccluster-member-2]member-ip 192.168.10.11 24
  • 指定主设备(初始主)的ip地址(本例是AC1的member ip)
[AC2-ccluster-member-2]join-cluster ip 192.168.10.10
  • 绑定云集群端口

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

#每个通道两个物理口是为了冗余备份(本例中数据通道单物理口)

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

[AC2-ccluster-member-2]cluster-link control bind interface GigabitEthernet 1/0/2

[AC2-ccluster-member-2]cluster-link control bind interface GigabitEthernet 1/0/3

[AC2-ccluster-member-2]cluster-link data bind interface Ten-GigabitEthernet 1/3/9
  • 激活云集群配置
[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 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

#设备重启,配置生效

2.2.4 云集群建立后配置

  • 云集群建立完成

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

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

Container ID     Slot ID       Member ID      Role        Status

1                1             1              Master      Online

2                2             2              Standby     Online

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

Manager list:

Member ID    Role        Member IP           State       Heartbeat(ms)

1            Follower    192.168.10.10       online      100

2            Leader      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
  • 配置动态聚合组
<H3C> system-view

#创建二层聚合接口1,并配置该聚合接口对应的聚合组工作在动态聚合模式下。

#交换机的mlag组网是否能适配AC设备云集群lacp mad功能需要联系交换机同事确认下(需要支持华三lacp mad)

<H3C> system-view

[H3C] interface bridge-aggregation 1

[H3C-Bridge-Aggregation1] link-aggregation mode dynamic

# 开启LACP MAD检测功能。#要求交换机为我司的交换机

#当前AC版本不支持MAD功能,暂时不用配置

[H3C-Bridge-Aggregation1] mad enable

[H3C-Bridge-Aggregation1] quit

# 将端口Ten-GigabitEthernet1/3/10加入到聚合组1中。

[H3C] interface ten-gigabitethernet 1/3/10

[H3C-Ten-GigabitEthernet1/3/10] port link-aggregation group 1

[H3C-Ten-GigabitEthernet1/3/10] quit

# 将端口Ten-GigabitEthernet2/3/10加入到聚合组1中。

[H3C] interface ten-gigabitethernet 2/3/10

[H3C-Ten-GigabitEthernet2/3/10] port link-aggregation group 1

[H3C-Ten-GigabitEthernet2/3/10 ]quit

2.2.5 配置无线热备功能

#配置AP热备

<H3C> system-view

[H3C] wlan ap-backup hot-backup enable global

This operation will enable fast switchover for AP backup.

#配置STA热备,看客户需求酌情配置(研发不推荐STA层面的热备)

[H3C] wlan client-backup hot-backup enable