102
Examples
# In MSTP mode, display the root bridge information of all spanning trees.
<Sysname> display stp root
MSTID Root Bridge ID ExtPathCost IntPathCost Root Port
0 0.00e0-fc0e-6554 200200 0 Ethernet1/0/1
# In PVST mode, display the root bridge information of all spanning trees.
<Sysname> system-view
[Sysname] stp mode pvst
[Sysname] display stp root
VLAN Root Bridge ID ExtPathCost IntPathCost Root Port
1 0.00e0-fc0e-6554 200200 0 Ethernet1/0/1
Table 29 Command output
Field Description
ExtPathCost
External path cost. The device automatically calculates the default path cost of
a port. Or, you can use the
stp cost
command to configure the path cost of a
port.
IntPathCost
Internal path cost. The device automatically calculates the default path cost of a
port. Or, you can use the
stp cost
command to configure the path cost of a
port.
Root Port
Root port name (displayed only if a port of the device is the root port of MSTIs).
display stp tc
Syntax
display stp
[
instance
instance-id
|
vlan
vlan-id
]
tc
[
slot
slot-number
] [
|
{
begin
|
exclude
|
include
}
regular-expression
]
View
Any view
Default level
0: Visit level
Parameters
instance instance-id
: Displays the statistics of TC/TCN BPDUs received and sent by all ports in a
particular MSTI. The value of
instance-id
ranges from 0 to 16, where 0 represents the CIST.
vlan
vlan-id
: Displays the statistics of TC/TCN BPDUs received and sent by all ports in the specified
VLAN, in the range of 1 to 4094.
slot
slot-number
: Specifies the ID of a switch. The value can only be 1.
|
: Filters command output by specifying a regular expression. For more information about regular
expressions, see
Fundamentals Configuration Guide
.
begin
: Displays the first line that matches the specified regular expression and all lines that follow.
exclude
: Displays all lines that do not match the specified regular expression.
include
: Displays all lines that match the specified regular expression.
regular-expression
: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.