Example for Establishing a CSS (Using Service Port Connections)
Networking Requirements
An enterprise needs to build a network that has a reliable core layer and simple structure to facilitate configuration and management.
In Figure 3-36, SwitchA and SwitchB at the core layer set up a CSS through service port connections. SwitchA and SwitchB are the master switch and standby switch respectively. Switches at the aggregation layer connect to the CSS through Eth-Trunks and the CSS connects to the upstream network through an Eth-Trunk. In this example, the core switches are the S7706 switches.
Configuration Roadmap
The configuration roadmap is as follows:
- Install service cards on SwitchA and SwitchB, and connect cluster cables. Connect four service ports of two service cards on two switches to improve bandwidth and reliability.
- Set the connection mode to service port connection on SwitchA and SwitchB, and set their CSS IDs and priorities to 1 and 2, 100 and 10 respectively so SwitchA has a higher probability to be the master switch.
- Configure two logical CSS ports for SwitchA and SwitchB respectively and add two physical member ports to each logical CSS port.
- Enable the CSS function on SwitchA and then on SwitchB to ensure that SwitchA becomes the master switch.
- Check whether a CSS has been established successfully.
- Configure downlink Eth-Trunks for the CSS to improve forwarding bandwidth and reliability. (The detailed configuration is omitted in this example. For details about how to configure Eth-Trunks, see Example for Configuring Cluster Eth-Trunks.)
Procedure
- Install hardware.
Install service cards on SwitchA and SwitchB, and connect cluster cables. For details about how to install the hardware, see Installing Hardware and Connecting Cluster Cables.
- Configure the CSS ID, CSS priority, and CSS connection
mode for SwitchA and SwitchB.
# Set the CSS ID, CSS priority, and CSS connection mode to 1, 100, and service port connection for SwitchA. If the default CSS ID 1 is used, you do not need to set the CSS ID.
<HUAWEI> system-view [HUAWEI] sysname SwitchA [SwitchA] set css mode lpu [SwitchA] set css id 1 [SwitchA] set css priority 100
# Set the CSS ID, CSS priority, and CSS connection mode to 2, 10, and service port connection for SwitchB.
<HUAWEI> system-view [HUAWEI] sysname SwitchB [SwitchB] set css mode lpu [SwitchB] set css id 2 [SwitchB] set css priority 10
# Check the CSS configuration.
NOTE:
After the configuration is complete, run the display css status saved command to check the CSS configuration.
# Check the CSS configuration on SwitchA.
[SwitchA] display css status saved Current Id Saved Id CSS Enable CSS Mode Priority Master force ------------------------------------------------------------------------------ 1 1 Off LPU 100 Off
# Check the CSS configuration on SwitchB.
[SwitchB] display css status saved Current Id Saved Id CSS Enable CSS Mode Priority Master force ------------------------------------------------------------------------------ 1 2 Off LPU 10 Off
- Configure logical CSS ports.
# Configure service ports XGE1/0/1 and XGE1/0/2 on SwitchA as physical member ports and add them to CSS port 1, and configure service ports XGE2/0/1 and XGE2/0/2 on SwitchA as physical member ports and add them to CSS port 2.
[SwitchA] interface css-port 1 [SwitchA-css-port1] port interface xgigabitethernet 1/0/1 to xgigabitethernet 1/0/2 enable [SwitchA-css-port1] quit [SwitchA] interface css-port 2 [SwitchA-css-port2] port interface xgigabitethernet 2/0/1 to xgigabitethernet 2/0/2 enable [SwitchA-css-port2] quit
# Configure service ports XGE1/0/1 and XGE1/0/2 on SwitchB as physical member ports and add them to CSS port 1, and configure service ports XGE2/0/1 and XGE2/0/2 on SwitchB as physical member ports and add them to CSS port 2.
[SwitchB] interface css-port 1 [SwitchB-css-port1] port interface xgigabitethernet 1/0/1 to xgigabitethernet 1/0/2 enable [SwitchB-css-port1] quit [SwitchB] interface css-port 2 [SwitchB-css-port2] port interface xgigabitethernet 2/0/1 to xgigabitethernet 2/0/2 enable [SwitchB-css-port2] quit
NOTE:
After the configuration is complete, run the display css css-port saved command to check whether the ports are Up.
- Enable the CSS function.
# Enable the CSS function on SwitchA and restart SwitchA.
[SwitchA] css enable Warning: The CSS configuration will take effect only after the system is rebooted. T he next CSS mode is LPU. Reboot now? [Y/N]:y
# Enable the CSS function on SwitchB and restart SwitchB.
[SwitchB] css enable Warning: The CSS configuration will take effect only after the system is rebooted. T he next CSS mode is LPU. Reboot now? [Y/N]:y
- Check whether a CSS has been established successfully.
# View the indicator status.
If the ACT indicator on an MPU of SwitchA is steady green, the MPU is the master MPU of the CSS, and SwitchA is the master in the CSS.
If the ACT indicator on an MPU of SwitchB is blinking green, the MPU is the standby MPU of the CSS, and SwitchB is the standby switch in the CSS.
# Log in to the CSS through the console port on any MPU to check whether the CSS is established successfully.
<SwitchA> display device Chassis 1 (Master Switch) S7712's Device status: Slot Sub Type Online Power Register Status Role ------------------------------------------------------------------------------- 1 - ES0D0X12SA00 Present PowerOn Registered Normal NA 2 - ES0D0X12SA00 Present PowerOn Registered Normal NA 13 - ES1D2SRUE000 Present PowerOn Registered Normal Master 14 - ES1D2SRUE000 Present PowerOn Registered Normal Slave PWR1 - - Present PowerOn Registered Normal NA PWR2 - - Present PowerOn Registered Normal NA CMU1 - EH1D200CMU00 Present PowerOn Registered Normal Master FAN1 - - Present PowerOn Registered Normal NA FAN2 - - Present PowerOn Registered Normal NA FAN3 - - Present PowerOn Registered Normal NA FAN4 - - Present PowerOn Registered Normal NA Chassis 2 (Standby Switch) S7712's Device status: Slot Sub Type Online Power Register Status Role ------------------------------------------------------------------------------- 1 - ES0D0X12SA00 Present PowerOn Registered Normal NA 2 - ES0D0X12SA00 Present PowerOn Registered Normal NA 13 - ES1D2SRUE000 Present PowerOn Registered Normal Master 14 - ES1D2SRUE000 Present PowerOn Registered Normal Slave PWR1 - - Present PowerOn Registered Normal NA PWR2 - - Present PowerOn Registered Normal NA CMU1 - EH1D200CMU00 Present PowerOn Registered Normal Master FAN1 - - Present PowerOn Registered Normal NA FAN2 - - Present PowerOn Registered Normal NA FAN3 - - Present PowerOn Registered Normal NA FAN4 - - Present PowerOn Registered Normal NA
If the command output displays card status of both member switches, the CSS has been established successfully.
# Check whether the CSS link topology is the same as the actual hardware connection.
<SwitchA> display css channel all CSS link-down-delay: 500ms Chassis 1 || Chassis 2 ================================================================================ Num [CSS port] [LPU Port] || [LPU Port] [CSS port] 1 1/1 XGigabitEthernet1/1/0/1 XGigabitEthernet2/1/0/1 2/1 2 1/1 XGigabitEthernet1/1/0/2 XGigabitEthernet2/1/0/2 2/1 3 1/2 XGigabitEthernet1/2/0/1 XGigabitEthernet2/2/0/1 2/2 4 1/2 XGigabitEthernet1/2/0/2 XGigabitEthernet2/2/0/2 2/2 Chassis 2 || Chassis 1 ================================================================================ Num [CSS port] [LPU Port] || [LPU Port] [CSS port] 1 2/1 XGigabitEthernet2/1/0/1 XGigabitEthernet1/1/0/1 1/1 2 2/1 XGigabitEthernet2/1/0/2 XGigabitEthernet1/1/0/2 1/1 3 2/2 XGigabitEthernet2/2/0/1 XGigabitEthernet1/2/0/1 1/2 4 2/2 XGigabitEthernet2/2/0/2 XGigabitEthernet1/2/0/2 1/2
If the command output shows that the CSS link topology is the same as the actual hardware connection, the CSS has been established successfully.
- Configure downlink Eth-Trunks for the CSS. (The detailed configuration is not provided here.)