本次采用軟硬件:
硬件:CE6881-48S6CQ
軟件:VRP (R) software, Version 8.191 (CE6881 V200R019C10SPC800)
組網:
配置思路:
1. 提前規划好堆疊方案。
2. 按照前期的規划,完成各台交換機的堆疊配置,包括堆疊成員ID、堆疊優先級、堆疊域編號、堆疊端口等。完成后保存配置並將交換機下電。
3. 連接交換機之間的堆疊線纜,然后將交換機上電。
4. 檢查堆疊組建是否成功。
SwitchA配置:
[~HUAWEI]sysname SwitchA
[*HUAWEI]commit
[~SwitchA]stack
[~SwitchA-stack]stack member 1 priority 120
[~SwitchA-stack]stack member 1 domain 10
[*SwitchA-stack]qu
[*SwitchA]commit
[~SwitchA]interface Stack-Port 1/1
[*SwitchA-Stack-Port1/1]port member-group interface 100GE 1/0/1
Warning: After the configuration is complete,
1.The interface will be configured with the port crc-statistics trigger error-down command.
2.The interface may go Error-Down (crc-statistics) because of no shutdown configuration.Continue? [Y/N]:y
[*SwitchA-Stack-Port1/1]qu
[*SwitchA]interface Stack-Port 1/2
[*SwitchA-Stack-Port1/2]port member-group interface 100GE 1/0/4
Warning: After the configuration is complete,
1.The interface will be configured with the port crc-statistics trigger error-down command.
2.The interface may go Error-Down (crc-statistics) because of no shutdown configuration.Continue? [Y/N]:y
[*SwitchA-Stack-Port1/2]qu
[*SwitchA]commit
SwitchB配置:
[~HUAWEI]sysname SwitchB
[*HUAWEI]commit
[~SwitchB]stack
[~SwitchB-stack]stack member 1 priority 90
[~SwitchB-stack]stack member 1 domain 10
[*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
Info: The operation will take effect after reboot.
[*SwitchB-stack]qu
[*SwitchB]commit
[~SwitchB]interface Stack-Port 1/1
[*SwitchB-Stack-Port1/1]port member-group interface 100GE 1/0/1
Warning: After the configuration is complete,
1.The interface will be configured with the port crc-statistics trigger error-down command.
2.The interface may go Error-Down (crc-statistics) because of no shutdown configuration.Continue? [Y/N]:y
[*SwitchB-Stack-Port1/1]qu
[*SwitchB]interface Stack-Port 1/2
[*SwitchB-Stack-Port1/2]port member-group interface 100GE 1/0/4
Warning: After the configuration is complete,
1.The interface will be configured with the port crc-statistics trigger error-down command.
2.The interface may go Error-Down (crc-statistics) because of no shutdown configuration.Continue? [Y/N]:y
[*SwitchB-Stack-Port1/2]qu
[*SwitchB]commit
保存配置后將設備下電。
保存SwitchA和SwitchB的配置,然后將設備下電。SwitchB的配置與SwitchA相同,略。
連接線纜
按照前期規划及配置,連接堆疊線纜。線纜連接完成后將設備上電。
建議先將高優先級設備上電,以使其先完成啟動,優先競爭為主交換機。
驗證配置結果。
等待幾分鍾后,在主交換機SwitchA上使用命令display stack查看堆疊是否組建成功。
<SwitchA>display stack
--------------------------------------------------------------------------------
MemberID Role MAC Priority DeviceType Description
--------------------------------------------------------------------------------
1 Master 6c16-32c4-xxxx 120 CE6881-48S6CQ
2 Slave 6c16-32c4-xxxx 90 CE6881-48S6CQ
--------------------------------------------------------------------------------
<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(10) 120(120)
2(2) 10(10) 90(90)
-----------------------------------------
Stack-Port Configuration:
--------------------------------------------------------------------------------
Stack-Port Member Ports
--------------------------------------------------------------------------------
Stack-Port1/1 100GE1/0/1
Stack-Port1/2 100GE1/0/4
Stack-Port2/1 100GE2/0/1
Stack-Port2/2 100GE2/0/4
--------------------------------------------------------------------------------
<SwitchA>display stack topology
Stack Topology:
----------------------------------------------
Stack-Port 1 Stack-Port 2
MemberID Status Neighbor Status Neighbor
----------------------------------------------
1 up 2 up 2
2 up 1 up 1
----------------------------------------------
Stack Link:
----------------------------------------------------------------------------
Stack-Port Port Status PeerPort PeerStatus
----------------------------------------------------------------------------
Stack-Port1/1 100GE1/0/1 up 100GE2/0/4 up
Stack-Port1/2 100GE1/0/4 up 100GE2/0/1 up
Stack-Port2/1 100GE2/0/1 up 100GE1/0/4 up
Stack-Port2/2 100GE2/0/4 up 100GE1/0/1 up
----------------------------------------------------------------------------