华为盒式交换机堆叠配置详解
创作时间:
作者:
@小白创作中心
华为盒式交换机堆叠配置详解
引用
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):
热门推荐
Advanced系列期刊影响因子及学术地位分析
肝性脑病切忌用药有哪些
绿茶乌龙茶助消化:哪些茶叶搭配去油脂清肠效果
户户通四代增强版GK6323芯片画质解析:从3.5代到4代的全面升级
柳州产业观察:以“智”兴“质” 推动传统产业升级升链升活力
5G CA频段组合与带宽的射频标准
郑州市2024年各分数段公办高中学校汇总
年度盘点|2024年全国通用机场数据简报
广西出土青铜钺:两千多年前的王权象征与文化密码
世间一切苦,皆源于一个"我"字,3大心法破我执,方能离苦得乐
C语言实现双线性插值(附带源码)
年利率的计算方法及其实际应用要点
重视胃肠镜检查 远离消化道疾病
财务总监所需的能力:掌握企业财务战略与运营,提升企业财务价值
取名字要注意阴阳吗?
普通人缺叶酸易患两种病,天然叶酸top 11食物要多吃
《马云传》:从平凡到非凡,揭秘阿里巴巴帝国缔造者的传奇人生与商业智慧
LPR利率多久调整一次?LPR利率是什么?
如何尽早揪出复发转移?甲状腺癌患者复查必看
佛家经典“八正道”:悟透以后解脱苦难,福慧一生!
硼酸能杀死蟑螂吗?使用方法及注意事项全解析
七宝美髯丹方剂配方
突发事件上报及处理流程:应对危机的快速响应策略
腋下淋巴结肿大是什么病毒感染
王者荣耀2025修改战区攻略:轻松学会地区定位调整方法
舌下青筋血瘀怎么办?中医专家详解治疗方法
全国爱耳日:关注头晕、眩晕疾病
维生素B族:健康必需的营养素
刺激!YSKM爆料:明年LPL和LCK的4号种子,要打BO5抢1个S赛名额
中国医生资格证报考条件详解