STP/RSTP/MSTP: display stp [ process process-id ] bridge { root | local }
VBST: display stp [ vlan vlan-id ] bridge { root | local }
Parameter | Description | Value |
---|---|---|
process process-id | Multiple Spanning Tree Protocol (MSTP) process ID If process process-id is not specified, details about the spanning tree of MSTP process 0 will be displayed. |
The value is an integer ranging from 1 to 31. |
root | Displays details about the spanning tree of the root bridge. | - |
local | Displays details about the spanning tree of the local bridge. | - |
vlan vlan-id | Displays details about the spanning tree of a bridge in a specified VLAN. If vlan vlan-id is not specified, details about the spanning trees of bridges in all VLANs are displayed. NOTE:
If vlan vlan-id is specified, only information about bridges running VBST is displayed. |
The value is an integer that ranges from 1 to 4094. |
Usage Scenario
When a device provides many interfaces, running the display stp command displays a large amount of information, and it is difficult to find information about the spanning trees of the root and local bridges.
Using the display stp bridge command, you can easily view details about the spanning trees of the root and local bridges.
Precautions
If you run this command in the system view without specifying an MSTP process ID, information about MSTP process 0 is displayed by default.
If you run this command in the MSTP process view without specifying an MSTP process ID, information about the MSTP process in this view is displayed by default.
# Display details about the spanning tree of the root bridge of MSTP process 0 when STP/RSTP/MSTP is running.
<HUAWEI> display stp bridge root
MSTID Root ID Root Cost Hello Max Forward Root Port
Time Age Delay
----- -------------------- ---------- ----- --- ------- -----------------
0 61440.781d-ba56-f06c 0 2 20 15
1 61440.781d-ba56-f06c 0 2 20 15
<HUAWEI> display stp vlan 5 bridge root VLAN-ID Root ID Root Cost Hello Max Forward Root Port Time Age Delay ----- -------------------- ---------- ----- --- ------- ----------------- 5 32773.5489-9876-a2b0 20000 2 20 15 GigabitEthernet0/0/5
Item |
Description |
---|---|
MSTID |
MSTP instance ID |
Root ID |
Root bridge ID |
Root Cost |
Root path cost |
Hello Time |
Interval at which Bridge Protocol Data Units (BPDUs) are sent from the root switch. To specify the parameter, run the stp timer hello command |
Max Age |
Maximum TTL of a BPDU. To specify the parameter, run the stp timer max-age command |
Forward Delay |
Delay in interface status transition. To specify the parameter, run the stp timer forward-delay command |
Root Port |
Root interface |
VLAN-ID |
VLAN ID. |