Typical CSS and Stack Deployment
Networking Requirements
At the core layer, two modular switches set up a CSS. At the aggregation layer, every two fixed switches set up a stack. The CSS at the core layer is connected to stacks at the aggregation layer through Eth-Trunk interfaces.
Device Requirements and Versions
Location |
Device Requirement |
Device Used in This Example |
Version Used in This Example |
---|---|---|---|
Core layer |
Modular switches that support the CSS function |
S12700E-8 |
V200R019C10 |
Aggregation layer |
Fixed switches that support the stacking function |
S5731-H |
V200R019C10 |
Access layer |
- |
S5735-L |
V200R019C10 |
The stack connection mode, CSS connection mode, and support for the stacking and CSS functions vary according to device models. You can use the Stack Assistant or query Stack Support and Version Requirements and Licensing Requirements and Limitations for CSS to obtain detailed information about each device model.
Deployment Roadmap
Step |
Deployment Roadmap |
Devices Involved |
---|---|---|
1 |
Configure CSS and multi-active detection (MAD) on core switches. |
Core switches |
2 |
Configure stacking and MAD on aggregation switches. |
Aggregation switches |
3 |
Configure uplink and downlink Eth-Trunk interfaces on switches. |
Core, aggregation, and access switches |
Data Plan
Item |
Data |
---|---|
CSS connection mode |
Service port connection |
Number of member switches |
2 |
Hardware configuration of each switch |
MPU: two MPUE cards Service card: two LST7X24BX6E0 cards. To ensure reliability, you are advised to configure two cards on each switch. If each switch is configured with one card, two such switches can also set up a CSS. CSS cable: four 3 m SFP+ AOC cables |
CSS master |
The switch with the CSS ID 1 is the CSS master. |
CSS priority |
The CSS priority of the switch with the CSS ID 1 is 150. The switch with the CSS ID 2 uses the default CSS priority 1. |
MAD |
The two member switches in the CSS are directly connected using an independent cable for MAD. The cable connects XGE1/1/0/10 and XGE2/1/0/10. |
Item |
Data |
---|---|
Stack connection mode |
Service interface connection |
Number of member switches |
2 |
Hardware configuration of each switch |
Stack interface: two uplink 10GE service interfaces XGE0/0/3 and XGE1/0/3 Stack topology: ring topology Stack cable: two 3 m SFP+ AOC cables |
Stack master |
Change the stack IDs of the two member switches to 0 and 1 respectively. The switch with the stack ID 0 is the master switch. |
Stack priority |
The stack priority of the switch with the stack ID 0 is 150. The switch with the stack ID 1 uses the default stack priority 100. |
MAD |
The two member switches in the stack are directly connected using an independent cable for MAD. The cable connects GE0/0/10 and GE1/0/10. |
Item |
Interface Number |
---|---|
CSS's downlink interfaces connected to stacks |
Eth-Trunk 10 connected to stack AGG1, containing physical member interfaces XGE1/1/0/1 and XGE2/1/0/2 Eth-Trunk 20 connected to stack AGG2, containing physical member interfaces XGE1/1/0/2 and XGE2/1/0/1 |
Stack AGG1's uplink interface connected to the CSS |
Eth-Trunk 10 containing physical member interfaces XGE0/0/1 and XGE1/0/1 |
Stack AGG2's uplink interface connected to the CSS |
Eth-Trunk 20 containing physical member interfaces XGE0/0/1 and XGE1/0/1 |
Stack AGG1's downlink interface connected to ACC1 |
Eth-Trunk 30 containing physical member interfaces GE0/0/3 and GE1/0/3 |
Stack AGG2's downlink interface connected to ACC2 |
Eth-Trunk 40 containing physical member interfaces GE0/0/3 and GE1/0/3 |
ACC1's uplink interface connected to AGG1 |
Eth-Trunk 30 containing physical member interfaces GE0/0/1 and GE0/0/2 |
ACC2's uplink interface connected to AGG2 |
Eth-Trunk 40 containing physical member interfaces GE0/0/1 and GE0/0/2 |
Procedure
- Set up a CSS.
- Power off the switches, install service cards, and connect CSS cables and the MAD cable according to the following figure.
To ensure reliability, you are advised to connect cables as follows:
You are advised to add at least two physical member interfaces on a service card to a logical CSS interface.
It is not recommended that you use interfaces on a service card used to set up a CSS as uplink interfaces or configure an MAD-enabled interface on the card.
- Power on the two switches and configure them according to the data plan.
<HUAWEI> system-view [HUAWEI] sysname Switch1 [Switch1] set css id 1 [Switch1] set css priority 150 //Set the CSS priority of Switch1 to 150. [Switch1] interface css-port 1 [Switch1-css-port1] port interface xgigabitethernet 4/0/1 to xgigabitethernet 4/0/2 enable [Switch1-css-port1] quit [Switch1] interface css-port 2 [Switch1-css-port2] port interface xgigabitethernet 5/0/1 to xgigabitethernet 5/0/2 enable [Switch1-css-port2] quit [Switch1] display css status saved //Check whether the CSS configuration is correct. CSS port media-type: SFP+ Current Id Saved Id CSS Enable CSS Mode Priority Master force ------------------------------------------------------------------------------ 1 1 Off LPU 150 Off [Switch1] css enable //After confirming that the CSS configuration is correct, enable the CSS function and restart the switch. To ensure that Switch1 becomes the master switch, restart it first. Warning: The CSS configuration will take effect only after the system is rebooted. The next CSS mode is CSS card. Reboot now? [Y/N]:y
<HUAWEI> system-view [HUAWEI] sysname Switch2 [Switch2] set css id 2 //Set the CSS ID to 2. Retain the default CSS priority of Switch2. [Switch2] interface css-port 1 [Switch2-css-port1] port interface xgigabitethernet 4/0/1 to xgigabitethernet 4/0/2 enable [Switch2-css-port1] quit [Switch2] interface css-port 2 [Switch2-css-port2] port interface xgigabitethernet 5/0/1 to xgigabitethernet 5/0/2 enable [Switch2-css-port2] quit [Switch2] display css status saved //Check whether the CSS configuration is correct. CSS port media-type: SFP+ Current Id Saved Id CSS Enable CSS Mode Priority Master Force ------------------------------------------------------------------------------ 1 2 Off LPU 1 Off [Switch2] css enable //After confirming that the CSS configuration is correct, enable the CSS function and restart the switch. Warning: The CSS configuration will take effect only after the system is rebooted. The next CSS mode is CSS card. Reboot now? [Y/N]:y
- After the switches are restarted, check whether the CSS is set up successfully.
# Check the CSS status by observing CSS indicators on MPUs of the switches.
The ACT indicator on an MPU of Switch1 is steady on, indicating that the MPU is the CSS master MPU and Switch1 is the master switch.
The ACT indicator on an MPU of Switch2 is blinking green, indicating that the MPU is the CSS standby MPU and Switch2 is the standby switch.
# Log in to the CSS through the console interface on any MPU and run the following commands to check whether the CSS is set up successfully.
Switch1 with a higher CSS priority becomes the master switch of the CSS. When you run the display device command to check the CSS status, the CSS name is Switch1.
<Switch1> display device Chassis 1 (Master Switch) S12700E-8's Device status: Slot Sub Type Online Power Register Status Role - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - LST7X24BX6E0 Present PowerOn Registered Normal NA 2 - LST7X24BX6E0 Present PowerOn Registered Normal NA 3 - - Present PowerOn Unregistered - NA 9 - LST7MPUE0000 Present PowerOn Registered Normal Master 10 - LST7MPUE0000 Present PowerOn Registered Normal Slave PWR1 - - Present PowerOn Registered Normal NA CMU1 - EH1D200CMU00 Present PowerOn Registered Normal Master FAN1 - - Present PowerOn Registered Normal NA FAN2 - - Present PowerOn Registered Normal NA Chassis 2 (Standby Switch) S12700E-8's Device status: Slot Sub Type Online Power Register Status Role - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - LST7X24BX6E0 Present PowerOn Registered Normal NA 2 - LST7X24BX6E0 Present PowerOn Registered Normal NA 3 - - Present PowerOn Unregistered - NA 9 - LST7MPUE0000 Present PowerOn Registered Normal Master 10 - LST7MPUE0000 Present PowerOn Registered Normal Slave PWR1 - - Present PowerOn Registered Normal NA CMU2 - EH1D200CMU00 Present - Unregistered - NA FAN1 - - Present PowerOn Registered Normal NA FAN2 - - Present PowerOn Registered Normal NA <Switch1> display css status CSS Enable switch On Chassis Id CSS Enable CSS Status CSS Mode Priority Master Force ------------------------------------------------------------------------------ 1 On Master LPU 150 Off 2 On Standby LPU 1 Off <Switch1> display css channel all //Check whether the CSS topology is consistent with hardware connections. CSS link-down-delay: 500ms Chassis 1 || Chassis 2 ================================================================================ Num [CSS port] [LPU Port] || [LPU Port] [CSS port] 1 1/1 XGigabitEthernet1/4/0/1 XGigabitEthernet2/4/0/1 2/1 2 1/1 XGigabitEthernet1/4/0/2 XGigabitEthernet2/4/0/2 2/1 3 1/2 XGigabitEthernet1/5/0/1 XGigabitEthernet2/5/0/1 2/2 4 1/2 XGigabitEthernet1/5/0/2 XGigabitEthernet2/5/0/2 2/2 Chassis 2 || Chassis 1 ================================================================================ Num [CSS port] [LPU Port] || [LPU Port] [CSS port] 1 2/1 XGigabitEthernet2/4/0/1 XGigabitEthernet1/4/0/1 1/1 2 2/1 XGigabitEthernet2/4/0/2 XGigabitEthernet1/4/0/2 1/1 3 2/2 XGigabitEthernet2/5/0/1 XGigabitEthernet1/5/0/1 1/2 4 2/2 XGigabitEthernet2/5/0/2 XGigabitEthernet1/5/0/2 1/2 <Switch1> system-view [Switch1] sysname CORE //Change the CSS name to make it easy to remember.
- Configure MAD after the CSS is set up.
If the CSS splits, services will be affected because two master switches exist. To avoid this problem, use a cable to directly connect the two member switches for MAD after the CSS is set up. To be specific, the cable connects XGE1/1/0/10 and XGE2/1/0/10, as shown in Figure 2-5.
[CORE] interface xgigabitethernet 1/1/0/10 [CORE-XGigabitEthernet1/1/0/10] mad detect mode direct Warning: This command will block the port, and no other configuration running on this port is recommended. Continue?[Y/N]:y [CORE-XGigabitEthernet1/1/0/10] quit [CORE] interface xgigabitethernet 2/1/0/10 [CORE-XGigabitEthernet2/1/0/10] mad detect mode direct Warning: This command will block the port, and no other configuration running on this port is recommended. Continue?[Y/N]:y [CORE-XGigabitEthernet2/1/0/10] return <CORE> display mad verbose //Check the MAD configuration. Current MAD domain: 0 Current MAD status: Detect Mad direct detect interfaces configured: XGigabitEthernet1/1/0/10 XGigabitEthernet2/1/0/10 Mad relay detect interfaces configured: Excluded ports(configurable): Excluded ports(can not be configured):
- Power off the switches, install service cards, and connect CSS cables and the MAD cable according to the following figure.
- Set up a stack.The following uses AGG1 as an example to describe how to set up a stack. The stack setup and configuration procedure of AGG2 is the same as that of AGG1.
- Configure the two fixed switches according to the data plan.
If dedicated stack cables are used, skip this step.
<HUAWEI> system-view [HUAWEI] sysname Switch1 [Switch1] interface stack-port 0/1 [Switch1-stack-port0/1] port interface xgigabitethernet 0/0/3 xgigabitethernet 0/0/4 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...... [Switch1-stack-port0/1] quit [Switch1] stack slot 0 priority 150 //Set the stack priority to 150 so that the switch becomes the master switch. Warning: Do not frequently modify the priority because it will make the stack split. Continue? [Y/N]:y [Switch1] quit <Switch1> save //You do not need to manually save the stack configuration because it is automatically written into the flash memory. To prevent other configurations from being lost, you are advised to run the save command to save the configurations. The current configuration will be written to flash:/vrpcfg.zip. Are you sure to continue?[Y/N]y Now saving the current configuration to the slot 0....... Save the configuration successfully.
<HUAWEI> system-view [HUAWEI] sysname Switch2 [Switch2] interface stack-port 0/2 //Logical stack interface 1 can only be connected to logical stack interface 2. Therefore, configure logical stack interface 2. [Switch2-stack-port0/2] port interface xgigabitethernet 0/0/3 xgigabitethernet 0/0/4 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...... [Switch2-stack-port0/2] quit [Switch2] stack slot 0 renumber 1 //Set the stack ID to 1 and use the default stack priority 100. Warning: All the configurations related to the slot ID will be lost after the slot ID is modified. Do not frequently modify the 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. [Switch2] quit <Switch2> save //You do not need to manually save the stack configuration because it is automatically written into the flash memory. To prevent other configurations from being lost, you are advised to run the save command to save the configurations. The current configuration will be written to flash:/vrpcfg.zip. Are you sure to continue?[Y/N]y Now saving the current configuration to the slot 0....... Save the configuration successfully.
- Power off the switches, and connect stack cables and the MAD cable according to the following figure.
As shown in Figure 2-6, two S5720-56C-HI-AC switches set up a stack, and the stack interfaces are the same as the interfaces configured in the preceding step.
- After the switches are restarted, check whether the stack is set up successfully.
<Switch1> display stack //The command output shows that the stack is set up successfully, and Switch1 is the master switch. Stack mode: Service-port Stack topology type : Ring Stack system MAC: 00e0-fc12-2355 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 00e0-fc12-2355 150 S5720-56C-HI-AC 1 Standby 00e0-fc12-2356 100 S5720-56C-HI-AC <Switch1> system-view [Switch1] sysname AGG1 //Change the stack name to one that is easier to remember.
- Configure MAD after the stack is set up.
If the stack splits, services will be affected because two master switches exist. To avoid this problem, use a cable to directly connect the two member switches for MAD after the stack is set up. To be specific, the cable connects GE0/0/10 and GE1/0/10, as shown in Figure 2-6.
[AGG1] interface gigabitethernet 0/0/10 [AGG1-GigabitEthernet0/0/10] mad detect mode direct Warning: This command will block the port, and no other configuration running on this port is recommended. Continue?[Y/N]:y [AGG1-GigabitEthernet0/0/10] quit [AGG1] interface gigabitethernet 1/0/10 [AGG1-GigabitEtherne/1/0/10] mad detect mode direct Warning: This command will block the port, and no other configuration running on this port is recommended. Continue?[Y/N]:y [AGG1-GigabitEthernet1/0/10] return <AGG1> display mad verbose //Check the MAD configuration. Current MAD domain: 0 Current MAD status: Detect Mad direct detect interfaces configured: GigabitEthernet0/0/10 GigabitEthernet1/0/10 Mad relay detect interfaces configured: Excluded ports(configurable): Excluded ports(can not be configured):
- Configure the two fixed switches according to the data plan.
- Configure Eth-Trunk interfaces between the CSS and stacks and between the stacks and access switches.
- Configure Eth-Trunk interfaces in the CSS.
<CORE> system-view [CORE] interface eth-trunk 10 //Create an Eth-Trunk interface for connecting to AGG1. [CORE-Eth-Trunk10] mode lacp [CORE-Eth-Trunk10] quit [CORE] interface xgigabitethernet 1/1/0/1 [CORE-XGigabitEthernet1/1/0/1] eth-trunk 10 [CORE-XGigabitEthernet1/1/0/1] quit [CORE] interface xgigabitethernet 2/1/0/2 [CORE-XGigabitEthernet2/1/0/2] eth-trunk 10 [CORE-XGigabitEthernet2/1/0/2] quit [CORE] interface eth-trunk 20 //Create an Eth-Trunk interface for connecting to AGG2. [CORE-Eth-Trunk20] mode lacp [CORE-Eth-Trunk20] quit [CORE] interface xgigabitethernet 1/1/0/2 [CORE-XGigabitEthernet1/1/0/2] eth-trunk 20 [CORE-XGigabitEthernet1/1/0/2] quit [CORE] interface xgigabitethernet 2/1/0/1 [CORE-XGigabitEthernet2/1/0/1] eth-trunk 20 [CORE-XGigabitEthernet2/1/0/1] quit
- Configure Eth-Trunk interfaces on stack AGG1.
<AGG1> system-view [AGG1] interface eth-trunk 10 //Create an Eth-Trunk interface for connecting to the CSS. [AGG1-Eth-Trunk10] mode lacp [AGG1-Eth-Trunk10] quit [AGG1] interface xgigabitethernet 0/0/1 [AGG1-XGigabitEthernet0/0/1] eth-trunk 10 [AGG1-XGigabitEthernet0/0/1] quit [AGG1] interface xgigabitethernet 1/0/1 [AGG1-XGigabitEthernet1/0/1] eth-trunk 10 [AGG1-XGigabitEthernet1/0/1] quit [AGG1] interface eth-trunk 30 //Create an Eth-Trunk interface for connecting to access switch ACC1. [AGG1-Eth-Trunk30] mode lacp [AGG1-Eth-Trunk30] quit [AGG1] interface gigabitethernet 0/0/3 [AGG1-GigabitEthernet0/0/3] eth-trunk 30 [AGG1-GigabitEthernet0/0/3] quit [AGG1] interface gigabitethernet 1/0/3 [AGG1-GigabitEthernet1/0/3] eth-trunk 30 [AGG1-GigabitEthernet1/0/3] quit
- Configure Eth-Trunk interfaces on stack AGG2.
<AGG2> system-view [AGG2] interface eth-trunk 20 //Create an Eth-Trunk interface for connecting to the CSS. [AGG2-Eth-Trunk20] mode lacp [AGG2-Eth-Trunk20] quit [AGG2] interface xgigabitethernet 0/0/1 [AGG2-XGigabitEthernet0/0/1] eth-trunk 20 [AGG2-XGigabitEthernet0/0/1] quit [AGG2] interface xgigabitethernet 1/0/1 [AGG2-XGigabitEthernet1/0/1] eth-trunk 20 [AGG2-XGigabitEthernet1/0/1] quit [AGG2] interface eth-trunk 40 //Create an Eth-Trunk interface for connecting to access switch ACC2. [AGG2-Eth-Trunk40] mode lacp [AGG2-Eth-Trunk40] quit [AGG2] interface gigabitethernet 0/0/3 [AGG2-GigabitEthernet0/0/3] eth-trunk 40 [AGG2-GigabitEthernet0/0/3] quit [AGG2] interface gigabitethernet 1/0/3 [AGG2-GigabitEthernet1/0/3] eth-trunk 40 [AGG2-GigabitEthernet1/0/3] quit
- Configure an Eth-Trunk interface on access switch ACC1.
<ACC1> system-view [ACC1] interface eth-trunk 30 //Create an Eth-Trunk interface for connecting to stack AGG1. [ACC1-Eth-Trunk30] mode lacp [ACC1-Eth-Trunk30] quit [ACC1] interface gigabitethernet 0/0/1 [ACC1-GigabitEthernet0/0/1] eth-trunk 30 [ACC1-GigabitEthernet0/0/1] quit [ACC1] interface gigabitethernet 0/0/2 [ACC1-GigabitEthernet0/0/2] eth-trunk 30 [ACC1-GigabitEthernet0/0/2] quit
- Configure an Eth-Trunk interface on access switch ACC2.
<ACC2> system-view [ACC2] interface eth-trunk 40 //Create an Eth-Trunk interface for connecting to stack AGG2. [ACC2-Eth-Trunk40] mode lacp [ACC2-Eth-Trunk40] quit [ACC2] interface gigabitethernet 0/0/1 [ACC2-GigabitEthernet0/0/1] eth-trunk 40 [ACC2-GigabitEthernet0/0/1] quit [ACC2] interface gigabitethernet 0/0/2 [ACC2-GigabitEthernet0/0/2] eth-trunk 40 [ACC2-GigabitEthernet0/0/2] quit
- Configure Eth-Trunk interfaces in the CSS.
Configuration Scripts
The CSS and stack configurations are not recorded in the configuration file, but are instead directly written into the flash memory. Therefore, the configuration file does not contain the CSS and stack configurations, and contains only the MAD and Eth-Trunk interface configurations.
- CSS configuration file
# sysname CORE # interface Eth-Trunk10 mode lacp # interface Eth-Trunk20 mode lacp # interface XGigabitEthernet1/1/0/1 eth-trunk 10 # interface XGigabitEthernet1/1/0/2 eth-trunk 20 # interface XGigabitEthernet1/1/0/10 mad detect mode direct # interface XGigabitEthernet2/1/0/1 eth-trunk 20 # interface XGigabitEthernet2/1/0/2 eth-trunk 10 # interface XGigabitEthernet2/1/0/10 mad detect mode direct # return
- Stack AGG1 configuration file
# sysname AGG1 # interface Eth-Trunk10 mode lacp # interface Eth-Trunk30 mode lacp # interface GigabitEthernet0/0/3 eth-trunk 30 # interface GigabitEthernet0/0/10 mad detect mode direct # interface GigabitEthernet1/0/3 eth-trunk 30 # interface GigabitEthernet1/0/10 mad detect mode direct # interface XGigabitEthernet0/0/1 eth-trunk 10 # interface XGigabitEthernet1/0/1 eth-trunk 10 # return
- Stack AGG2 configuration file
# sysname AGG2 # interface Eth-Trunk20 mode lacp # interface Eth-Trunk40 mode lacp # interface GigabitEthernet0/0/3 eth-trunk 40 # interface GigabitEthernet0/0/10 mad detect mode direct # interface GigabitEthernet1/0/3 eth-trunk 40 # interface GigabitEthernet1/0/10 mad detect mode direct # interface XGigabitEthernet0/0/1 eth-trunk 20 # interface XGigabitEthernet1/0/1 eth-trunk 20 # return
- ACC1 configuration file
# sysname ACC1 # interface Eth-Trunk30 mode lacp # interface GigabitEthernet0/0/1 eth-trunk 30 # interface GigabitEthernet0/0/2 eth-trunk 30 # return
- ACC2 configuration file
# sysname ACC2 # interface Eth-Trunk40 mode lacp # interface GigabitEthernet0/0/1 eth-trunk 40 # interface GigabitEthernet0/0/2 eth-trunk 40 # return