2022/3/8——手把手配置一台崭新的华为交换机配置堆叠(附使用console线配置交换机方法)

(56) 2024-03-22 08:01:01

一、准备好堆叠线

这回交换机是Huawei的CE6863-48S6CQ,100GE的光口有6个,我选用的是5-6口来做堆叠
连线方式:SwitchA的5口连SwitchB的5口,SwitchA的6口连SwitchB的6口。
或许你会觉得写这么详细很蠢,但是刚开始我的的确确是不知道的

*值得注意的是,需要先配置再连线。刚开始我就是猴急的先把线布好,导致第一次配完没有成功。刚开始就提到布线方式是为了之后的过程的书写能够更加行云流水。

二、使用console线配置交换机

我使用的是CRT软件,当然Xshell也可以
准备:一台交换机,两条华为的40GE堆叠线(带光模块),两台交换机,CRT软件

1、进入设备管理器,查看插console线的那个端口号(我的是com5)
2、打开CRT软件,选择快速连接
其中,协议:Serial;端口:com5;波特率:9600(一般都是9600);取消流控的所有勾选,如下图所示:
2022/3/8——手把手配置一台崭新的华为交换机配置堆叠(附使用console线配置交换机方法) (https://mushiming.com/)  第1张
3、然后点击连接就可以进入到交换机了

三、配置命令

1、配置堆叠属性

配置SwitchA的堆叠优先级为150,Domin为10.缺省情况下,设备的堆叠成
员ID为1。此处默认SwitchA的堆叠成员ID为1,无需配置。

<HW> sys
[~HW] sysname SwitchA	\\先浅浅的改个名
[*HW] commit		\\保存配置(没保存的话会有*)
[~SwitchA]stack		\\进入到堆叠配置里
[~SwitchA-stack] stack member 1 priority 150	\\优先级150
Info:The operation will take effect after reboot.
[*SwitchA-stack] stack member 1 domain 10
Info:The operation takes effect onle after the save command is executed.The device with a lower priority then will be reset in the stack merging scenario.
[*SwitchA-stack] quit
[*SwitchA] commit

配置SwitchB的堆叠成员ID为2,优先级为120,Domain ID为10.

<HW> sys
[~HW] sysname SwitchB
[*HW] commit
[~SwitchB] stack
[~SwitchB-stack] stack member 1 priority 120
Info:The operation will take effect after reboot.
[~SwitchB-stack] stack member 1 domain 10
Info:The operation takes effect onle after the save command is executed.The device with a lower priority then will be reset in the stack merging scenario.
[~SwitchB-stack] stack member 1 renumber 2 inherit-config	\\修改堆叠成员ID并继承之前member1的配置
Warning:The stack configuration of member ID 1 will be inherited to member ID 2 after the device resets.Continue?[Y/N]: y
[*SwitchB-stack] quit
[*SwitchB] commit

*说明:
1、由于SwitchB尚未重启,当前堆叠成员ID为1,此时需要使用member 1来进行堆叠配置
2、stack member 1 renumber 2 inherit-config的inherit-config的意义是使member 2继承之前member1的配置,如果未指定这一参数,则需要使用member2从新进行堆叠配置

2、配置堆叠端口

将SwitchA的业务口10ge 1/0/5~10ge 1/0/6加入堆叠端口1/1

[~SwitchA] int stack-port 1/1	\\创建堆叠端口1/1
[*SwitchA-Stack-Port1/1] port member-group int 10ge 1/0/5 to 1/0/6
Warning:After the configuration is complete
1.......
2.......Continue?[Y/N] y
[*SwitchA-Stack-Port1/1] commit
[~SwitchA-Stack-Port1/1] return
<SwitchA> save	\\保存配置

将SwitchB的业务口10ge 1/0/5~10ge 1/0/6加入堆叠端口1/1

[~SwitchB] int stack-port 1/1	\\创建堆叠端口1/1
[*SwitchB-Stack-Port1/1] port member-group int 10ge 1/0/5 to 1/0/6
Warning:After the configuration is complete
1.......
2.......Continue?[Y/N] y
[*SwitchB-Stack-Port1/1] commit
[~SwitchB-Stack-Port1/1] return
<SwitchB> save

然后配置就告一段落了,重启两台交换机,并趁着重启的时候把堆叠线连上,记得重启之前一定要save,不然重启后配置都没了
建议让SwitchA先完成启动,一边其优先竞争为主交换机

3、检查配置

display stack查看堆叠是否成功,如果成功了,那个表里会有2台交换机的

我忘记截图了,长这样:
2022/3/8——手把手配置一台崭新的华为交换机配置堆叠(附使用console线配置交换机方法) (https://mushiming.com/)  第2张

THE END

发表回复