华为盒式交换机堆叠配置详解
创作时间:
作者:
@小白创作中心
华为盒式交换机堆叠配置详解
引用
51CTO
1.
https://blog.51cto.com/xmws/13595075
本文将详细介绍华为盒式交换机的堆叠配置过程,包括堆叠线缆的连接、交换机的配置步骤以及多主检测的设置。通过本文的指导,读者可以掌握如何将两台交换机组成堆叠系统,以提高网络的可靠性和管理效率。
案例拓扑,堆叠线缆连线图
配置交换机1
[HUAWEI] sysname Switch1
[Switch1] interface stack-port 0/1
[Switch1-stack-port0/1] port interface xgigabitethernet 0/0/3 xgigabitethernet 0/0/4 enable
Warning: Enabling stack function may cause configuration loss on the interface. Continue? [Y/N]:y
Info: This operation may take a few seconds. Please wait......
[Switch1-stack-port0/1] quit
[Switch1] stack slot 0 priority 150 //优先级设置为150,使其成为堆叠主
Warning: Do not frequently modify the priority because it will make the stack split. Continue? [Y/N]:y
[Switch1] quit
<Switch1> save //堆叠相关的配置不需要保存,会自动写入flash。为防止其他配置丢失,这里建议执行save命令进行保存
The current configuration will be written to flash:/vrpcfg.zip.
Are you sure to continue?[Y/N]y
Now saving the current configuration to the slot 0.......
Save the configuration successfully.
配置交换机2
[HUAWEI] sysname Switch2
[Switch2] interface stack-port 0/2 //逻辑堆叠口1只能和逻辑堆叠口2相连,所以这里需要配置为逻辑堆叠口2
[Switch2-stack-port0/2] port interface xgigabitethernet 0/0/3 xgigabitethernet 0/0/4 enable
Warning: Enabling stack function may cause configuration loss on the interface. Continue? [Y/N]:y
Info: This operation may take a few seconds. Please wait......
[Switch2-stack-port0/2] quit
[Switch2] stack slot 0 renumber 1 //设置堆叠ID为1,使用缺省的堆叠优先级100
Warning: All the configurations related to the slot ID will be lost after the slot ID is modified.
Do not frequently modify the slot ID because it will make the stack split. Continue? [Y/N]:y
Info: Stack configuration has been changed, and the device needs to restart to make the configuration effective.
[Switch2] quit
<Switch2> save //堆叠相关的配置不需要保存,会自动写入flash。为防止其他配置丢失,这里建议执行save命令进行保存
The current configuration will be written to flash:/vrpcfg.zip.
Are you sure to continue?[Y/N]y
Now saving the current configuration to the slot 0.......
Save the configuration successfully.
交换机下电
根据下面连线图连线堆叠线缆和多主检测线缆,堆叠接口和步骤1中配置的接口保持一致。
交换机重启后,查看堆叠是否组建成功
<Switch1> display stack //堆叠组建成功,switch1是堆叠主
Stack mode: Service-port
Stack topology type : Ring
Stack system MAC: 00e0-fc12-2355
MAC switch delay time: 10 min
Stack reserved vlan : 4093
Slot of the active management port: --
Slot Role Mac address Priority Device type
--------------------------------------------------
0 Master 00e0-fc12-2355 150 S5720-56C-HI-AC
1 Standby 00e0-fc12-2356 100 S5720-56C-HI-AC
<Switch1> system-view
[Switch1] sysname AGG1 //为便于记忆,修改堆叠系统的设备名
堆叠组建完成,配置多主检查
堆叠组建完成后,为防止堆叠故障分裂导致多主影响业务,在两台交换机直接连接一条线缆,用于多主检测。线缆对应的接口分别为GE0/0/10和GE1/0/10
[AGG1] interface gigabitethernet 0/0/10
[AGG1-GigabitEthernet0/0/10] mad detect mode direct
Warning: This command will block the port, and no other configuration running on this port is recommended. Continue?[Y/N]:y
[AGG1-GigabitEthernet0/0/10] quit
[AGG1] interface gigabitethernet 1/0/10
[AGG1-GigabitEtherne/1/0/10] mad detect mode direct
Warning: This command will block the port, and no other configuration running on this port is recommended. Continue?[Y/N]:y
[AGG1-GigabitEthernet1/0/10] return
<AGG1> display mad verbose //查看多主检测配置
Current MAD domain: 0
Current MAD status: Detect
Mad direct detect interfaces configured:
GigabitEthernet0/0/10
GigabitEthernet1/0/10
Mad relay detect interfaces configured:
Excluded ports(configurable):
Excluded ports(can not be configured):
热门推荐
脚痛怎么办?这些运动疗法帮你缓解疼痛
企业表彰大会发言稿模板:如何写出既正式又暖心的感恩致辞?
智能算法赋能地铁运营管理,精准调度破解高峰拥堵难题
12%通勤者单程超25公里,北京地铁推出“席位制”缓解拥挤
鬼针草:中医里的天然降压神器
鬼针草:从“恶草”到“良药”的逆袭之路
贡菜不是莴笋!教你认识贡菜并制作捞汁毛肚贡菜
贡菜与莴笋:从外观到营养价值的全方位对比
罗盘布局,让你家旺气十足!
家居布局与心理健康:风水学与现代心理学的对话
罗盘元素融入现代建筑:传统文化的创新演绎
阿莫西林副作用知多少?最新研究和注意事项全解析
农村自建房:乡村振兴的新引擎
农村自建房变身梦幻别墅,这设计绝了!
温水泡脚,轻松缓解脚疼
中远两湾城业委会追回4000万公共收益,维权之路充满波折
业委会教你搞定邻里矛盾
华泾镇业委会创新实践:破解社区自治难题
放疗期间的营养餐攻略:从饮食原则到实用食谱
放疗营养餐助力癌症患者康复
4大原因+5种方案:彻底解决淋浴器开关不回位难题
NEJM揭秘:干细胞疗法对抗失眠新突破
失眠救星来了!心理调适大揭秘
营养不良让你的眉毛“秃”然崩溃?
香港校服百年变迁:从一件衣服到文化符号
观音菩萨形象两千年:从男到女的中国化演变
观音菩萨的三个生日:从诞辰到成道的民间庆典
上海嘉定AIGC大赛收官:746件作品角逐,54件佳作获奖
全球AI信任度降至53%,技术进步与公众担忧并存
机器能否创造艺术?皮埃尔•于热用5个AI作品给出答案