Examples
# In MSTP mode, display the brief spanning tree status and statistics of MSTI 0 on ports GigabitEthernet
1/0/1 through GigabitEthernet 1/0/4.
<Sysname> display stp instance 0 interface gigabitethernet 1/0/1 to gigabitethernet 1/0/4
brief
MSTID
0
0
0
0
Table 23 Command output
Field
MSTID
Port
Role
STP State
Protection
# In MSTP mode, display the spanning tree status and statistics of all MSTIs on all ports.
<Sysname> display stp
-------[CIST Global Info][Mode MSTP]-------
CIST Bridge
Bridge Times
CIST Root/ERPC
CIST RegRoot/IRPC
CIST RootPortId
BPDU-Protection
Bridge Config-
Port
GigabitEthernet1/0/1
GigabitEthernet1/0/2
GigabitEthernet1/0/3
GigabitEthernet1/0/4
Description
MSTI ID in the MST region.
Port name, corresponding to each MSTI.
Port role:
•
ALTE—The port is an alternate port.
•
BACK—The port is a backup port.
•
ROOT—The port is a root port.
•
DESI—The port is a designated port.
•
MAST—The port is a master port.
•
DISA—The port is disabled.
Spanning tree status on the port:
•
FORWARDING—The port can receive and send BPDUs, and also forward
user traffic.
•
DISCARDING—The port can receive and send BPDUs, but cannot forward
user traffic.
•
LEARNING—The port is in a transitional state. It can receive and send
BPDUs, but cannot forward user traffic.
Protection type on the port:
•
ROOT—Root guard.
•
LOOP—Loop guard.
•
BPDU—BPDU guard.
•
BPDU/ROOT—BPDU guard and root guard.
•
NONE—No protection.
:32768.000f-e200-2200
:Hello 2s MaxAge 20s FwDly 15s MaxHop 20
:0.00e0-fc0e-6554 / 200200
:32768.000f-e200-2200 / 0
:128.48
:disabled
Role
STP State
ALTE
DISCARDING
DESI
FORWARDING
DESI
FORWARDING
DESI
FORWARDING
90
Protection
LOOP
NONE
NONE
NONE