# Run the
display stp brief
command on SwitchD 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
----End
Configuration Files
l
Configuration file of RouterA
#
sysname RouterA
#
stp mode stp
stp instance 0 root primary
stp pathcost-standard legacy
#
interface Ethernet2/0/0
#
interface Ethernet2/0/1
#
return
l
Configuration file of SwitchA
#
sysname SwitchA
#
stp mode stp
stp instance 0 root secondary
stp pathcost-standard legacy
#
interface Ethernet0/0/1
#
interface Ethernet0/0/2
#
interface Ethernet0/0/3
#
return
l
Configuration file of SwitchB
#
sysname SwitchB
#
stp mode stp
stp pathcost-standard legacy
#
interface Ethernet0/0/1
#
interface Ethernet0/0/2
#
interface Ethernet0/0/3
#
return
l
Configuration file of SwitchC
#
sysname SwitchC
#
stp mode stp
stp pathcost-standard legacy
#
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.
215