[SwitchC] interface ethernet 0/0/2
[SwitchC-Ethernet0/0/2] stp disable
[SwitchC-Ethernet0/0/2] quit
[SwitchC] interface ethernet 0/0/3
[SwitchC-Ethernet0/0/3] stp disable
[SwitchC-Ethernet0/0/3] quit
l Enable STP globally.
# Enable STP globally on RouterA. The configurations of SwitchA, SwitchB, SwitchC
and SwitchD are similar to that of RouterA.
[RouterA] stp enable
l Enable STP on all the ports except those connected to PCs.
# Enable STP on RouterA Eth2/0/0 and Eth2/0/1. The configurations of SwitchA,
SwitchB, SwitchC and SwitchD are similar to that of RouterA.
[RouterA] interface ethernet 2/0/0
[RouterA-Ethernet2/0/0] stp enable
[RouterA-Ethernet2/0/0] quit
[RouterA] interface ethernet 2/0/1
[RouterA-Ethernet2/0/1] stp enable
[RouterA-Ethernet2/0/1] quit
Step 2 Verify the configuration.
# Wait for 35s, and then run the display stp brief command on RouterA to view port roles and
states. Eth2/0/0 and Eth2/0/1 are selected as designated ports through spanning tree calculation
and are both in the Forwarding state.
[RouterA] display stp brief
MSTID Port Role STP State Protection
0 Ethernet2/0/0 DESI FORWARDING NONE
0 Ethernet2/0/1 DESI FORWARDING NONE
# Run the display stp brief command on SwitchA to view port roles and states. Eth0/0/1 is
selected as the root port, whereas Eth0/0/2 and Eth0/0/3 are selected as designated ports. The
ports are all in the Forwarding state.
[SwitchA] display stp brief
MSTID Port Role STP State Protection
0 Ethernet0/0/1 ROOT FORWARDING NONE
0 Ethernet0/0/2 DESI FORWARDING NONE
0 Ethernet0/0/3 DESI FORWARDING NONE
# Run the display stp brief command on SwitchB to view port roles and states. Eth0/0/1 is
selected as the root port, whereas Eth0/0/2 and Eth0/0/3 are selected as designated ports. The
ports are all in the Forwarding state.
[SwitchB] display stp brief
MSTID Port Role STP State Protection
0 Ethernet0/0/1 ROOT FORWARDING NONE
0 Ethernet0/0/2 DESI FORWARDING NONE
0 Ethernet0/0/3 DESI FORWARDING NONE
# Run the display stp brief command on SwitchC to view port roles and states. Eth0/0/1 is
selected as root port and is in the Forwarding state. Eth0/0/4 is selected as designated port and
is in the Discarding state.
[SwitchC] display stp brief
MSTID Port Role STP State Protection
0 Ethernet0/0/1 ROOT FORWARDING NONE
0 Ethernet0/0/4 DESI DISCARDING NONE
Huawei AR530&AR550 Series Industrial Switch Routers
Configuration Guide - Ethernet Switching
6 STP/RSTP Configuration
Issue 01 (2014-11-30) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
214