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

<HUAWEI> system-view
[~HUAWEI] sysname SwitchA
[*HUAWEI] commit
[~SwitchA] stack
[~SwitchA-stack] stack member 1 priority 150
Info: The operation will take effect after reboot. 
[*SwitchA-stack] stack member 1 domain 10
Info: The operation takes effect only 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。

<HUAWEI> system-view
[~HUAWEI] sysname SwitchB
[*HUAWEI] 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 only 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
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

配置SwitchC的堆叠成员ID为3,优先级为90,Domain ID为10。

<HUAWEI> system-view
[~HUAWEI] sysname SwitchC
[*HUAWEI] commit
[~SwitchC] stack
[~SwitchC-stack] stack member 1 priority 90
Info: The operation will take effect after reboot. 
[*SwitchC-stack] stack member 1 domain 10
Info: The operation takes effect only after the save command is executed. The device with a lower priority then will be reset in the stack merging scenario.
[*SwitchC-stack] stack member 1 renumber 3 inherit-config
Warning: The stack configuration of member ID 1 will be inherited to member ID 3 after the device resets. Continue? [Y/N]: y
[*SwitchC-stack] quit
[*SwitchC] commit

将SwitchA的业务口10GE1/0/1~10GE1/0/2加入堆叠端口1/1,10GE1/0/3~10GE1/0/4加入堆叠端口1/2。

[~SwitchA] interface stack-port 1/1
[*SwitchA-Stack-Port1/1] port member-group interface 10ge 1/0/1 to 1/0/2
Warning: After the configuration is complete,
1.The interface(s) (10GE1/0/1-1/0/2) will be converted to stack mode and be configured with the port crc-statistics trigger error-down command if the configuration does not exist. 
2.The interface(s) may go Error-Down (crc-statistics) because there is no shutdown configuration on the interfaces.Continue? [Y/N]: y
[*SwitchA-Stack-Port1/1] quit
[*SwitchA] interface stack-port 1/2
[*SwitchA-Stack-Port1/2] port member-group interface 10ge 1/0/3 to 1/0/4
Warning: After the configuration is complete,
1.The interface(s) (10GE1/0/3-1/0/4) will be converted to stack mode and be configured with the port crc-statistics trigger error-down command if the configuration does not exist. 
2.The interface(s) may go Error-Down (crc-statistics) because there is no shutdown configuration on the interfaces.Continue? [Y/N]: y
[*SwitchA-Stack-Port1/2] quit
[*SwitchA] commit
[~SwitchA] quit

将SwitchB的业务口10GE1/0/1~10GE1/0/2加入堆叠端口1/1,10GE1/0/3~10GE1/0/4加入堆叠端口1/2。

[~SwitchB] interface stack-port 1/1
[*SwitchB-Stack-Port1/1] port member-group interface 10ge 1/0/1 to 1/0/2
Warning: After the configuration is complete,
1.The interface(s) (10GE1/0/1-1/0/2) will be converted to stack mode and be configured with the port crc-statistics trigger error-down command if the configuration does not exist. 
2.The interface(s) may go Error-Down (crc-statistics) because there is no shutdown configuration on the interfaces.Continue? [Y/N]: y
[*SwitchB-Stack-Port1/1] quit
[*SwitchB] interface stack-port 1/2
[*SwitchB-Stack-Port1/2] port member-group interface 10ge 1/0/3 to 1/0/4
Warning: After the configuration is complete,
1.The interface(s) (10GE1/0/3-1/0/4) will be converted to stack mode and be configured with the port crc-statistics trigger error-down command if the configuration does not exist. 
2.The interface(s) may go Error-Down (crc-statistics) because there is no shutdown configuration on the interfaces.Continue? [Y/N]: y
[*SwitchB-Stack-Port1/2] quit
[*SwitchB] commit
[~SwitchB] quit

将SwitchC的业务口10GE1/0/1~10GE1/0/2加入堆叠端口1/1,10GE1/0/3~10GE1/0/4加入堆叠端口1/2。

[~SwitchC] interface stack-port 1/1
[*SwitchC-Stack-Port1/1] port member-group interface 10ge 1/0/1 to 1/0/2
Warning: After the configuration is complete,
1.The interface(s) (10GE1/0/1-1/0/2) will be converted to stack mode and be configured with the port crc-statistics trigger error-down command if the configuration does not exist. 
2.The interface(s) may go Error-Down (crc-statistics) because there is no shutdown configuration on the interfaces.Continue? [Y/N]: y
[*SwitchC-Stack-Port1/1] quit
[*SwitchC] interface stack-port 1/2
[*SwitchC-Stack-Port1/2] port member-group interface 10ge 1/0/3 to 1/0/4
Warning: After the configuration is complete,
1.The interface(s) (10GE1/0/3-1/0/4) will be converted to stack mode and be configured with the port crc-statistics trigger error-down command if the configuration does not exist. 
2.The interface(s) may go Error-Down (crc-statistics) because there is no shutdown configuration on the interfaces.Continue? [Y/N]: y
[*SwitchC-Stack-Port1/2] quit
[*SwitchC] commit
[~SwitchC] quit

上述配置完成后,执行命令display stack configuration查看配置是否与规划的一致,如果不一致,需要修改配置。以查看SwitchA为例。

<SwitchA> display stack configuration
Oper          : Operation
Conf          : Configuration
*             : Offline configuration
Isolated Port : The port is in stack mode, but does not belong to any Stack-Port

Attribute Configuration:
-----------------------------------------
 MemberID      Domain         Priority   
Oper(Conf)   Oper(Conf)      Oper(Conf)  
-----------------------------------------
1(1)         --(10)          100(150)    
-----------------------------------------

Stack-Port Configuration:
--------------------------------------------------------------------------------
Stack-Port      Member Ports
--------------------------------------------------------------------------------
Stack-Port1/1   10GE1/0/1           10GE1/0/2
Stack-Port1/2   10GE1/0/3           10GE1/0/4
--------------------------------------------------------------------------------

保存配置后将设备下电。

通过Console口或管理网口登录堆叠系统,使用命令display stack查看堆叠是否组建成功。当通过管理网口登录时,需要使用主交换机的IP地址。

<SwitchA> display stack
--------------------------------------------------------------------------------
MemberID Role     MAC              Priority   DeviceType         Description
--------------------------------------------------------------------------------
 1       Master   0004-9f31-d520   150        CE6881-48S6CQ 
 2       Standby  0004-9f62-1f40   120        CE6881-48S6CQ 
 3       Slave    0004-9f69-a391   90         CE6881-48S6CQ 
--------------------------------------------------------------------------------

查看堆叠系统拓扑信息。

<SwitchA> display stack topology
Stack Topology:
----------------------------------------------
            Stack-Port 1      Stack-Port 2    
MemberID   Status Neighbor   Status Neighbor  
----------------------------------------------
1          up     2          up     3         
2          up     1          up     3         
3          up     2          up     1        
----------------------------------------------

Stack Link:
--------------------------------------------------------------------
Stack-Port       Port           Status     PeerPort       PeerStatus
--------------------------------------------------------------------
Stack-Port1/1    10GE1/0/1      up         10GE2/0/1      up
Stack-Port1/1    10GE1/0/2      up         10GE2/0/2      up
Stack-Port1/2    10GE1/0/3      up         10GE3/0/3      up
Stack-Port1/2    10GE1/0/4      up         10GE3/0/4      up
Stack-Port2/1    10GE2/0/1      up         10GE1/0/1      up
Stack-Port2/1    10GE2/0/2      up         10GE1/0/2      up
Stack-Port2/2    10GE2/0/3      up         10GE3/0/1      up
Stack-Port2/2    10GE2/0/4      up         10GE3/0/2      up
Stack-Port3/1    10GE3/0/1      up         10GE2/0/3      up
Stack-Port3/1    10GE3/0/2      up         10GE2/0/4      up
Stack-Port3/2    10GE3/0/3      up         10GE1/0/3      up
Stack-Port3/2    10GE3/0/4      up         10GE1/0/4      up
--------------------------------------------------------------------

标签: none

添加新评论