The display stp abnormal-interface command displays information about abnormal interfaces running the Spanning Tree Protocol (STP).
STP/RSTP/MSTP: display stp [ process process-id ] [ instance instance-id ] abnormal-interface
VBST: display stp [ vlan vlan-id ] abnormal-interface
Parameter | Description | Value |
---|---|---|
process process-id | Displays the ID of a specified multi service transport platform (MSTP) process. If process process-id is not specified, the status and statistics of the MSTP process with ID 0 will be displayed. |
The value is an integer in the range 1 to 31. |
instance instance-id | Displays the status and statistics of a specified spanning tree instance. If instance instance-id is not specified, the status and statistics of all spanning tree instances will be displayed in the sequence of the interface numbers. |
The value is an integer in the range 0 to 4094. The value 0 indicates a common
and internal spanning tree (CIST) instance.
NOTE:
instance-id ranges from 0 to 4094. Each process supports a maximum of 65 instances. |
vlan vlan-id | Displays information about abnormal ports running STP in a specified VLAN. If vlan vlan-id is not specified, information about abnormal ports running STP in all VLANs is displayed. NOTE:
If vlan vlan-id is specified, only information about abnormal ports running VBST is displayed. |
The value is an integer that ranges from 1 to 4094. |
Usage Scenario
If a device has many interfaces and the display stp command output displays vast information, viewing information about abnormal interfaces running STP is difficult.
You can use the display stp abnormal-interface command to view information about abnormal interfaces running STP.
Precautions
If you run this command in the system view without specifying an MSTP process, information about MSTP process 0 is displayed by default.
If you run this command in the MSTP process view without specifying an MSTP process, information about the MSTP process in this view is displayed by default.
In VBST, if NAC authentication is configured but user authentication fails on a port that is configured as an edge port and is in Active state, information about the port is not displayed.
# Display information about abnormal interfaces in process 0 running STP
<HUAWEI> display stp instance 0 abnormal-interface
MSTID Interface Status Reason 0 GigabitEthernet0/0/0 DISCARDING LOOP-Protected 0 GigabitEthernet0/0/1 DOWN BPDU-Protected 0 GigabitEthernet0/0/2 DISCARDING ROOT-Protected 0 GigabitEthernet0/0/3 DISCARDING LOOP-Detected
<HUAWEI> display stp vlan 5 abnormal-interface
VLAN Interface Status Reason 5 GigabitEthernet0/0/0 DISCARDING LOOP-Protected 5 GigabitEthernet0/0/1 DOWN BPDU-Protected 5 GigabitEthernet0/0/2 DISCARDING ROOT-Protected 5 GigabitEthernet0/0/3 DISCARDING LOOP-Detected
Item |
Description |
---|---|
MSTID |
MSTP instance ID |
Interface |
Interface type |
Status |
Status of an interface after the STP protection takes effect
|
Reason |
An interface running STP becomes abnormal due to one of
the following:
|
VLAN |
VLAN ID. |