< Home

display stp abnormal-interface

Function

The display stp abnormal-interface command displays information about abnormal interfaces running the Spanning Tree Protocol (STP).

Format

STP/RSTP/MSTP: display stp [ process process-id ] [ instance instance-id ] abnormal-interface

VBST: display stp [ vlan vlan-id ] abnormal-interface

Parameters

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.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

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.

Example

# 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
# Display information about abnormal ports running VBST in VLAN 5.
<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
Table 1 Description of the display stp abnormal-interface command output

Item

Description

MSTID

MSTP instance ID

Interface

Interface type

Status

Status of an interface after the STP protection takes effect
  • DOWN: indicates that the physical status of the interface is Down (including error-down).
  • DISCARDING: indicates the blocked interface after the topology of the spanning tree becomes stable.

Reason

An interface running STP becomes abnormal due to one of the following:
  • Root-Protected: indicates that the root protection takes effect.
  • Loop-Protected: indicates that the loop protection takes effect.
  • BPDU-Protected: indicates that the BPDU protection takes effect.
  • Loop-Detected: indicates that the loop detection takes effect.
  • PVID-Inconsistency: The PVID of the directly connected interface is inconsistent.

VLAN

VLAN ID.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >