76
Description
Use the
display stp
command to display the MSTP status and statistics.
Based on the MSTP status and statistics, you can analyze and maintain the network topology or check
whether MSTP is working normally.
If you do not specify any MSTI or port, this command will display the MSTP information of all MSTIs on
all ports. The displayed information is sorted by MSTI ID and by port name in each MSTI.
If you specify an MSTI but not a port, this command will display the MSTP information on all ports in that
MSTI. The displayed information is sorted by port name.
If you specify some ports but not an MSTI, this command will display the MSTP information of all MSTIs
on the specified ports. The displayed information is sorted by MSTI ID, and by port name in each MSTI.
If you specify both an MSTI ID and a port list, this command will display the MSTP information on the
specified ports in the specified MSTI. The displayed information is sorted by port name.
The MSTP status information includes:
•
CIST global parameters: Protocol work mode, switch priority in the CIST (Priority), MAC address,
hello time, maximum age, forward delay, maximum hops, common root bridge of the CIST, external
path cost from the switch to the CIST common root, regional root, the internal path cost from the
switch to the regional root, CIST root port of the switch, and status of the BPDU guard function
(enabled or disabled).
•
CIST port parameters: Port status, role, priority, path cost, designated bridge, designated port, edge
port/non-edge port, whether connecting to a point-to-point link, maximum transmission rate
(transmit limit), status of the root guard function (enabled or disabled), BPDU format, boundary
port/non-boundary port, hello time, max age, forward delay, message age, remaining hops, and
whether rapid state transition enabled for designated ports.
•
MSTI global parameters: MSTI ID, bridge priority of the MSTI, regional root, internal path cost, MSTI
root port, and master bridge.
•
MSTI port parameters: Port status, role, priority, path cost, designated bridge, designated port,
remaining hops, and whether rapid state transition enabled (for designated ports).
The statistics include:
•
The number of TCN BPDUs, configuration BPDUs, RST BPDUs and MST BPDUs sent from each port
•
The number of TCN BPDUs, configuration BPDUs, RST BPDUs, MST BPDUs and wrong BPDUs
received on each port
•
The number of BPDUs discarded on each port
Related commands:
reset stp
.
Examples
# Display the brief MSTP 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 Port Role STP State Protection
0 GigabitEthernet1/0/1 ALTE DISCARDING LOOP
0 GigabitEthernet1/0/2 DESI FORWARDING NONE
0 GigabitEthernet1/0/3 DESI FORWARDING NONE
0 GigabitEthernet1/0/4 DESI FORWARDING NONE