119
Predefined user roles
network-admin
network-operator
Examples
# In MSTP mode, display information about ports that are blocked by spanning tree protection
functions.
<Sysname> display stp abnormal-port
MST ID Blocked Port Reason
1 GigabitEthernet1/0/1 Root-Protected
2 GigabitEthernet1/0/2 Loop-Protected
12 GigabitEthernet1/0/3 Loopback-Protected
# In PVST mode, display information about ports that are blocked by spanning tree protection
functions.
<Sysname> system-view
[Sysname] stp mode pvst
[Sysname] display stp abnormal-port
VLAN ID Blocked Port Reason
1 GigabitEthernet1/0/1 Root-Protected
2 GigabitEthernet1/0/2 Loop-Protected
2 GigabitEthernet1/0/3 Loopback-Protected
Table 27 Command output
Field Description
MST ID MSTI of the blocked port.
VLAN ID VLAN of the blocked port.
Blocked Port Name of a blocked port.
Reason
Reason that the port was blocked:
• Root-Protected—Root guard function.
• Loop-Protected—Loop guard function.
• Loopback-Protected—Self-loop protection. A port in the MSTI receives a
BPDU that it sends.
• Disputed—Dispute protection. A port receives a low-priority BPDU from a
non-blocked designated port.
• InconsistentPortType-Protected—Inconsistent port type protection.
• InconsistentPvid-Protected—Inconsistent PVID protection.
display stp bpdu-statistics
Use display stp bpdu-statistics to display the BPDU statistics on ports.
Syntax
display stp bpdu-statistics [ interface interface-type interface-number [ instance instance-list ] ]
Views
Any view
Predefined user roles
network-admin