124
Syntax
display stp root
Views
Any view
Predefined user roles
network-admin
network-operator
Examples
# In MSTP mode, display the root bridge information of all spanning trees.
<Sysname> display stp root
MST ID Root Bridge ID ExtPathCost IntPathCost Root Port
0 0.00e0-fc0e-6554 200200 0 GigabitEthernet1/0/1
# In PVST mode, display the root bridge information of all spanning trees.
<Sysname> display stp root
VLAN ID Root Bridge ID ExtPathCost IntPathCost Root Port
1 0.00e0-fc0e-6554 200200 0 GigabitEthernet1/0/1
Table 32 Command output
Field Description
ExtPathCost
External path cost. The path cost of a port is either automatically calculated by the
device or manually configured by using the
stp cost
command.
IntPathCost
Internal path cost. The path cost of a port is either automatically calculated by the
device or manually configured by using the
stp cost
command.
Root Port Root port name (displayed only if a port of the device is the root port of the MSTI).
display stp tc
Use display stp tc to display the incoming and outgoing TC/TCN BPDU statistics for ports.
Syntax
display stp [ instance instance-list | vlan vlan-id-list ] tc [ slot
slot-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
instance instance-list: Specifies a space-separated list of up to 10 MSTI items. Each item
specifies an MSTI or a range of MSTIs in the form of
instance-id1 [ to instance-id2 ]. The
value for
instance-id2 must be equal to or greater than the value for instance-id1. The
value range for the
instance-id argument is 0 to 4094, and the value 0 represents the CIST.
vlan vlan-id-list: Specifies a space-separated list of up to 10 VLAN items. Each item
specifies a VLAN or a range of VLANs in the form of
vlan-id1 [ to vlan-id2 ]. The value for