最佳答案
您好,参考
H3C无线控制器云集群典型配置举例
如果是通过其它组网方式升级过来,建议先清空配置重启,搭建集群组网,再配置其它业务。
如图1所示,AC 1与AC 2通过直连链路建立云集群,同时AC1作为初始主,云集群与交换机Core之间建立动态聚合链路,用于LACP MAD检测和业务报文转发。
图1 双机直连组网图
# 配置前提: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
(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)
[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 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
[AC1-ccluster-member-1]cluster-link data bind interface Ten-GigabitEthernet 1/3/8
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 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
(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 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) 配置云集群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 1
[AC2-ccluster-member-1]
(2) 配置成员ip
#成员IP地址(非接口IP)AC1与AC2同网段
[AC2-ccluster-member-1]member-ip 192.168.10.11 24
(3)
[AC2-ccluster-member-1]join-cluster ip 192.168.10.10
(4) 绑定云集群端口
#云集群需要配置控制通道和数据通道的物理接口
#每个通道两个物理口是为了冗余备份
#数据通道走私有协议,会增加额外的数据头,对带宽有要求,推荐使用XGE口,如果使用GE口,至少要2个。
[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
[AC2-ccluster-member-1]cluster-link data bind interface Ten-GigabitEthernet 1/3/8
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 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
(5) 激活云集群配置
[AC2-ccluster-member-1]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
#设备重启,配置生效
(1)
#重启完成后显示集群状态
<H3C>display cloud-cluster service-cluster container //查看主备请使用这个命令行
Container ID Slot ID Member ID Role Status
1 1 1 Master Online
2 2 2 Standby Online
<H3C>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
(2)
<H3C> system-view
#创建二层聚合接口1,并配置该聚合接口对应的聚合组工作在动态聚合模式下。
<H3C> system-view
[H3C] interface bridge-aggregation 1
[H3C-Bridge-Aggregation1] link-aggregation mode dynamic
# 开启LACP 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
(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论