朋友问我华为设备如何堆叠,简单整理,顺便分享下
例举CE12800交换机堆叠方式
配置思路
采用如下的思路配置:
- 连接SwitchA和SwitchB间的堆叠线缆。为了增强带宽和可靠性,两台交换机之间通过两块业务板上的四对业务口进行连接。
- 在SwitchA和SwitchB上分别配置相同的堆叠域编号和堆叠连接方式,并配置不同的堆叠成员ID和堆叠优先级。
- 在SwitchA和SwitchB上分别创建一个堆叠端口,并将四对端口分别加入堆叠端口中。
- 保存SwitchA和SwitchB的配置,并使能堆叠功能。
- 检查堆叠组建是否成功。
操作步骤
连接SwitchA和SwitchB间的堆叠线缆。如果选择的堆叠连接方式为主控板直连方式,则需要连接主控板上的SIP口和业务板上的堆叠物理成员端口;如果为业务板直连方式,则无需连接SIP口。
# 配置SwitchA的堆叠成员ID为1,优先级为150,Domain ID为10,堆叠连接方式为主控板直连方式。
<HUAWEI> system-view
[~HUAWEI] sysname SwitchA
[*HUAWEI] commit
[~SwitchA] stack
[~SwitchA-stack] stack member 1
[~SwitchA-stack] stack priority 150
[*SwitchA-stack] stack domain 10
[*SwitchA-stack] stack link-type mainboard-direct
[*SwitchA-stack] quit
[*SwitchA] commit
# 配置SwitchB的堆叠成员ID为2,优先级为100,Domain ID为10,堆叠连接方式为主控板直连方式。
<HUAWEI> system-view
[~HUAWEI] sysname SwitchB
[*HUAWEI] commit
[~SwitchB] stack
[~SwitchB-stack] stack member 2
Warning: The device will use the configuration of memberID 2 after the device resets. Continue? [Y/N]: y
[*SwitchB-stack] stack priority 100
[*SwitchB-stack] stack domain 10
[*SwitchB-stack] stack link-type mainboard-direct
[*SwitchB-stack] quit
[*SwitchB] commit
说明:
如果用户选择的是业务板直连方式,请执行命令stack link-type linecard-direct。
# 在SwitchA上创建堆叠端口,并将端口10GE1/0/1~10GE1/0/2、10GE2/0/1~10GE2/0/2加入堆叠端口。在SwitchB上创建堆叠端口,并将端口10GE1/0/1~10GE1/0/2、10GE2/0/1~10GE2/0/2加入堆叠端口。SwitchB的配置与SwitchA类似,配置过程略。
[~SwitchA] port-group group1
[*SwitchA-port-group-group1] group-member 10ge 1/0/1to 10ge 1/0/2
[*SwitchA-port-group-group1] group-member 10ge 2/0/1to 10ge 2/0/2
[*SwitchA-port-group-group1] shutdown
[*SwitchA-port-group-group1] quit
[*SwitchA] commit
[~SwitchA] interface stack-port 1
[*SwitchA-Stack-Port1] port member-group interface10ge 1/0/1 to 1/0/2
[*SwitchA-Stack-Port1] port member-group interface10ge 2/0/1 to 2/0/2
[*SwitchA-Stack-Port1] quit
[*SwitchA] commit
[~SwitchA] port-group group1
[~SwitchA-port-group-group1] undo shutdown
[*SwitchA-port-group-group1] quit
[*SwitchA] commit
[~SwitchA] quit
# 上述配置完成后,建议用户执行命令display stack configuration查看以上配置信息是否与预期的一致。以查看SwitchA为例。
Oper : Operation
Conf : Configuration
* : Offlineconfiguration
Isolated Port: The port is in stack mode, but does notbelong to any Stack-Port
Attribute Configuration:
---------------------------------------------------------------
MemberID Domain Priority Mode Enable
Oper(Conf) Oper(Conf) Oper(Conf) Oper(Conf) Oper
---------------------------------------------------------------
1(1) --(10) 100(150) MB(MB) Disable
---------------------------------------------------------------
Stack-Port Configuration:
--------------------------------------------------------------------------------
Stack-Port Member Ports
--------------------------------------------------------------------------------
Stack-Port1 10GE1/0/1 10GE1/0/2 10GE2/0/1
10GE2/0/2
--------------------------------------------------------------------------------
# 保存SwitchA的配置并使能堆叠功能。
<SwitchA> save
Warning: The current configuration will be written to thedevice. Continue? [Y/N]: y
<SwitchA> system-view
[~SwitchA] stack
[~SwitchA-stack] stack enable
Warning: Make sure that one or more dual-active detectionmethods are configured once the conversion is complete and the device ente
rs the stack mode.
Current configuration will be converted to the nextstartup saved-configuration file of stack mode.
System will reboot. Continue? [Y/N]: y
# 保存SwitchB的配置并使能堆叠功能。
<SwitchB> save
Warning: The current configuration will be written to thedevice. Continue? [Y/N]: y
<SwitchB> system-view
[~SwitchB] stack
[~SwitchB-stack] stack enable
Warning: Make sure that one or more dual-active detectionmethods are configured once the conversion is complete and the device ente
rs the stack mode.
Current configuration will be converted to the nextstartup saved-configuration file of stack mode.
System will reboot. Continue? [Y/N]: y
验证
# 通过Console口或管理网口登录堆叠系统,使用命令查看堆叠是否组建成功。当通过管理网口登录时,需要使用主交换机的IP地址。
<SwitchA> display stack
--------------------------------------------------------------------------------
MemberID Role MAC Priority DeviceType Description
--------------------------------------------------------------------------------
1 Master 006d-8835-2b00 150 CE12804
2 Standby 006d-8835-2c00 100 CE12804
--------------------------------------------------------------------------------
|