华为盒式交换机堆叠配置详解
创作时间:
作者:
@小白创作中心
华为盒式交换机堆叠配置详解
引用
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):
热门推荐
厨房里的秘密武器:香叶的实用烹饪技巧与保存指南
“奇奇怪怪,浑身是伤”:茶颜悦色新酒馆饮品命名引热议
十二生肖与星座的对应关系解析 生肖星座全攻略解读
蜈蚣泡酒功效与禁忌:五种功效,三类人禁用
仙变3封神之路攻略:三大职业搭配与关卡应对指南
《封神幻想世界》封神之路:高难度副本通关指南
射雕英雄传领跑春节档,预售40分钟破千万纪录
45分钟破千万!《射雕英雄传》预售领跑2025春节档
探索热带风情:海南陵水全方位度假指南与热门玩法解析
探索热带风情:海南陵水全方位度假指南与热门玩法解析
海南陵水热门旅游景点免费开放政策解读及票价详情
玩转南湾猴岛,体验疍家人海上生活(陵水一日游)
海南陵水热门旅游景点免费开放政策解读及票价详情
2025年主要货币汇率走势分析
二本院校四大热门专业解析:市场需求大,就业前景广
8个生活细节管理,痛风患者也能享受健康生活
从网络求职到面试通关,大学生求职实用指南
1179万毕业生迎就业季:求稳心态重,国企吸引力持续攀升
最新调查:超4成2024届毕业生已获offer,国企仍是首选
中国二本院校:九成毕业生留在本地,平均月薪仅5562元
就业竞争加剧:2024年高校毕业生规模超1100万,供需矛盾突出
吃土豆中毒了,能自愈吗?
中国食物中毒省份前三甲,云南不是第一?
护照办理指南:线上预约流程与材料准备要点

国内公司在使用海外服务器时需遵守哪些国际法规
ETF期权有哪些规避风险策略?
梦见空气污染,现代心理与传统解梦的双重解读
跨境ETF投资指南:优势、风险与交易攻略
美股交易结算制度升级对跨境ETF的影响
QQ炫舞手游闪退?这4招让你轻松重返游戏