An enterprise network needs to provide a sufficient number of ports to access devices, but a simple network structure is required to facilitate configuration and maintenance.
As shown in Figure 1, SwitchA, SwitchB, and SwitchC need to set up a stack with a ring topology and connect to SwitchD through inter-device Eth-Trunks. SwitchA, SwitchB, and SwitchC are the master, standby, and slave switches respectively, with stack IDs of 0, 1, and 2 and stack priorities of 200, 100, and 100. As they function as a single logical device on the network, the number of ports increases while keeping network management and maintenance relatively simple.
The S5720-LI series switches are used on the network.
Configure logical stack ports and add physical member ports to the corresponding logical stack ports to enable packet forwarding between member switches.
Configure stack IDs and stack priorities for member switches to facilitate management.
Power off SwitchA, SwitchB, and SwitchC. Connect physical member ports using SFP+ stack cables according to Figure 1 and power on the switches.
Configure inter-device Eth-Trunks to increase reliability and uplink bandwidth.
Physical member ports in stack-port n/1 of one switch can only be connected to the ports in stack-port m/2 of a neighboring switch.
If SwitchA, SwitchB, and SwitchC are different switch models, these models must be able to set up a stack together. For details, see Stack Support and Version Requirements.
During a stack setup, the software version used by the master switch takes effect, and the standby and slave switches synchronize their software versions with the software version of the master switch.
# Configure the service ports GigabitEthernet0/0/27 and GigabitEthernet0/0/28 on SwitchA as physical member ports and add them to the corresponding logical stack ports.
<HUAWEI> system-view [HUAWEI] sysname SwitchA [SwitchA] interface stack-port 0/1 [SwitchA-stack-port0/1] port interface gigabitethernet 0/0/27 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. [SwitchA-stack-port0/1] quit [SwitchA] interface stack-port 0/2 [SwitchA-stack-port0/2] port interface gigabitethernet 0/0/28 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. [SwitchA-stack-port0/2] quit
# Configure the service ports GigabitEthernet0/0/27 and GigabitEthernet0/0/28 on SwitchB as physical member ports and add them to the corresponding logical stack ports.
<HUAWEI> system-view [HUAWEI] sysname SwitchB [SwitchB] interface stack-port 0/1 [SwitchB-stack-port0/1] port interface gigabitethernet 0/0/27 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. [SwitchB-stack-port0/1] quit [SwitchB] interface stack-port 0/2 [SwitchB-stack-port0/2] port interface gigabitethernet 0/0/28 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. [SwitchB-stack-port0/2] quit
# Configure the service ports GigabitEthernet0/0/27 and GigabitEthernet0/0/28 on SwitchC as physical member ports and add them to the corresponding logical stack ports.
<HUAWEI> system-view [HUAWEI] sysname SwitchC [SwitchC] interface stack-port 0/1 [SwitchC-stack-port0/1] port interface gigabitethernet 0/0/27 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. [SwitchC-stack-port0/1] quit [SwitchC] interface stack-port 0/2 [SwitchC-stack-port0/2] port interface gigabitethernet 0/0/28 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. [SwitchC-stack-port0/2] quit
# Set the stack priority of SwitchA to 200.
[SwitchA] stack slot 0 priority 200
Warning: Please do not frequently modify Priority because it will make the stack split. Continue? [Y/N]:y
# Set the stack ID of SwitchB to 1.
[SwitchB] stack slot 0 renumber 1 Warning: All the configurations related to the slot ID will be lost after the slot ID is modified. Please do not frequently modify 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.
# Set the stack ID of SwitchC to 2.
[SwitchC] stack slot 0 renumber 2 Warning: All the configurations related to the slot ID will be lost after the slot ID is modified. Please do not frequently modify 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.
Configure inter-device Eth-Trunk uplinks for the stack. For the detailed configuration process, see Example for Configuring Stack Eth-Trunks.
# Check basic stack information.
[SwitchA] display stack Stack mode: Service-port Stack topology type : Ring Stack system MAC: 0018-82d2-2e85 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 0018-82d2-2e85 200 S5720-28P-LI-AC 1 Standby 0018-82c6-1f44 100 S5720-28P-LI-AC 2 Slave 0018-82c6-1f4c 100 S5720-28P-LI-AC