Usage Scenario
If a device has many interfaces, running the display stp command displays a large amount of information, which is challenging to query wanted information and global information quickly. Running the display stp brief command displays only information about spanning trees on interfaces, but not global information.
To view global STP information conveniently, run the display stp global command.Precautions
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. If you run this command in the other view without specifying an MSTP process, information about MSTP process 0 is displayed by default.
The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> display stp global Protocol Status : Enabled Bpdu-filter default : Disabled Tc-protection : Disabled Tc-protection threshold : 1 Tc-protection interval : 2s Edged port default : Enabled Pathcost-standard : Dot1t Timer-factor : 3 Transmit-limit : 10 Bridge-diameter : 7 -------[CIST Global Info][Mode MSTP]------- CIST Bridge :61440.00e0-fc12-3456 Config Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20 Active Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20 CIST Root/ERPC :61440.00e0-fc12-3456 / 0 CIST RegRoot/IRPC :61440.00e0-fc12-3456 / 0 CIST RootPortId :0.0 BPDU-Protection :Disabled TC or TCN received :85 TC count per hello :0 STP Converge Mode :Normal Time since last TC :0 days 9h:12m:34s Number of TC :13 Last TC occurred :GigabitEthernet0/1/4
Item | Description |
---|---|
Protocol Status | Spanning Tree Protocol (STP) status:
|
Bpdu-filter default | Whether the function of configuring device interfaces as bridge protocol data unit (BPDU) filter interfaces is enabled:
|
Tc-protection | Topology change (TC) protection status:
|
Tc-protection threshold | Maximum number of TC BPDUs that the MSTP device can process within a specified time. |
Tc-protection interval | Time taken by MSTP to process the maximum number of TC BPDUs and immediately refresh forwarding entries. |
Edged port default | Whether the function of configuring all ports of the device as edge ports is enabled:
|
Pathcost-standard | Method of calculating the MSTP path cost. |
Timer-factor | Multiplier of Hello time. |
Transmit-limit | Maximum number of BPDUs that the current interface can send each Hello time. For details, see stp transmit-limit. |
Bridge-diameter | Network diameter of the MSTP. |
CIST Bridge | Common and internal spanning tree (CIST) bridge ID.
|
CIST Root/ERPC | CIST root bridge ID/Cost of the external path (path from the switch to the CIST root bridge). |
CIST RegRoot/IRPC | ID of the CIST region root bridge/Cost of the internal path (path from the switch to the CIST region root bridge). |
CIST RootPortId | ID of the CIST root port. 0.0 indicates that the switch is the root bridge and does not provide any root port. |
Config Times | Manually configured BPDU parameters:
|
Active Times | BPDUs parameters that are being used:
|
BPDU-Protection | Whether BPDU protection is enabled:
|
TC or TCN received | Number of received TC or TCN BPDUs. |
TC count per hello | Number of TC BPDUs received each Hello time. |
STP Converge Mode | STP convergence mode, which can be fast or normal. |
Mode | STP mode:
|
Time since last TC | Time past since the last topology changed. |
Number of TC | Number of topology changes. |
Last TC occurred | Interface that causes the last topology change. This parameter is not displayed when Number of TC is 0. |