Service port connection allows member switches to be connected using service ports, without requiring dedicated stack cards.
Ordinary cable connection: Switches use optical cables, network cables, and high-speed cables to set up a stack.
Dedicated cable connection: Switches use dedicated stack cables to set up a stack. The two ends of a dedicated stack cable are the master end with the Master tag and the slave end without any tag.
An enterprise network needs to provide sufficient ports for access devices, and the network structure should be simple to facilitate configuration and management.
As shown in Figure 1, Switches A to C set up a stack in a ring topology and connect to SwitchD through an inter-chassis Eth-Trunk. To reduce the configuration, Switches A to C set up a stack using dedicated stack cables. In the stack, SwitchA needs to function as the master switch, Switch B as the standby switch, and SwitchC as the slave switch.
This example describes how to use S5720-28P-PWR-LI-AC switches to set up a stack.
Power off SwitchA, SwitchB, and SwitchC to ensure security.
Connect the switches using dedicated stack cables based on dedicated stack cable connection rules.
Power on these switches in the following sequence to ensure that SwitchA, SwitchB, and SwitchC become the master switch, standby switch, and slave switch respectively.
Save the stack configuration automatically generated for dedicated cable stacking to the flash memory. This ensures that the stack configuration still takes effect when these cables are removed or other cables are connected.
Configure an inter-chassis Eth-Trunk to increase reliability and uplink bandwidth.
Configure multi-active detection in relay mode to ensure network availability when the stack splits.
# Power on these switches in the following sequence to ensure that SwitchA, SwitchB, and SwitchC become the master switch, standby switch, and slave switch respectively.
The preceding power-on sequence can guarantee only roles of these switches but not their slot IDs. The following assumes that SwitchA, SwitchB, and SwitchC use automatically generated slot IDs 0, 1, and 2 respectively.
# Check the stack indicator status.
Press the mode switching (MODE) button on any member switch to change the mode status indicator to the stack mode.
# Check basic stack information.
Log in to the stack through the console port of any member switch to check whether the number of member switches in the stack is the same as the actual value and whether the stack topology status is the same as the actual hardware connection.
<SwitchA> system-view [SwitchA] sysname Stack [Stack] 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: 0 Slot Role Mac address Priority Device type ------------------------------------------------------------- 0 Master 0018-82d2-2e85 100 S5720-28P-LI-AC 1 Standby 0018-82c6-1f44 100 S5720-28P-LI-AC 2 Slave 0018-82c6-1f4c 100 S5720-28P-LI-AC
# After verifying that a stack has been set up, save the stack configuration that is automatically generated for dedicated cable stacking to the flash memory.
[Stack] save stack configuration Warning: This operation will save all stack configurations to flash. Are you sure you want to continue? [Y/N]:y
# Create an Eth-Trunk in the stack and configure uplink physical ports as Eth-Trunk member ports.
[Stack] interface eth-trunk 10 [Stack-Eth-Trunk10] trunkport gigabitethernet 0/0/5 [Stack-Eth-Trunk10] trunkport gigabitethernet 1/0/5 [Stack-Eth-Trunk10] trunkport gigabitethernet 2/0/5 [Stack-Eth-Trunk10] quit
# Create an Eth-Trunk on SwitchD and configure the ports connected to the stack as Eth-Trunk member ports.
<HUAWEI> system-view [HUAWEI] sysname SwitchD [SwitchD] interface eth-trunk 10 [SwitchD-Eth-Trunk10] trunkport gigabitethernet 0/0/1 [SwitchD-Eth-Trunk10] trunkport gigabitethernet 0/0/2 [SwitchD-Eth-Trunk10] trunkport gigabitethernet 0/0/3 [SwitchD-Eth-Trunk10] quit
[Stack] display trunkmembership eth-trunk 10 Trunk ID: 10 Used status: VALID TYPE: ethernet Working Mode : Normal Number Of Ports in Trunk = 3 Number Of Up Ports in Trunk = 3 Operate status: up Interface GigabitEthernet0/0/5, valid, operate up, weight=1 Interface GigabitEthernet1/0/5, valid, operate up, weight=1 Interface GigabitEthernet2/0/5, valid, operate up, weight=1
# In the stack, configure MAD in relay mode on the inter-chassis Eth-Trunk.
[Stack] interface eth-trunk 10 [Stack-Eth-Trunk10] mad detect mode relay [Stack-Eth-Trunk10] return
# Configure MAD in relay mode on the relay agent SwitchD.
[SwitchD] interface eth-trunk 10 [SwitchD-Eth-Trunk10] mad relay [SwitchD-Eth-Trunk10] return
# Check detailed MAD configuration of the stack.
<Stack> display mad verbose Current MAD domain: 0 Current MAD status: Detect Mad direct detect interfaces configured: Mad relay detect interfaces configured: Eth-Trunk10 Excluded ports(configurable): Excluded ports(can not be configured): GigabitEthernet0/0/26 GigabitEthernet0/0/27 GigabitEthernet1/0/26 GigabitEthernet1/0/27 GigabitEthernet2/0/26 GigabitEthernet2/0/27
# Check the MAD proxy configuration on SwitchD.
<SwitchD> display mad proxy Mad relay interfaces configured: Eth-Trunk10
Stack configuration file (the stack configuration is written to the flash memory instead of the configuration file)
# sysname Stack # interface Eth-Trunk10 mad detect mode relay # interface GigabitEthernet0/0/5 eth-trunk 10 # interface GigabitEthernet1/0/5 eth-trunk 10 # interface GigabitEthernet2/0/5 eth-trunk 10 # return
# sysname SwitchD # interface Eth-Trunk10 mad relay # interface GigabitEthernet0/0/1 eth-trunk 10 # interface GigabitEthernet0/0/2 eth-trunk 10 # interface GigabitEthernet0/0/3 eth-trunk 10 # return