Field
Mode
display stp root
Syntax
display stp root [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
|: 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.
Description
Use display stp root to display the root bridge information of all MSTIs.
Examples
# In MSTP mode, display the root bridge information of all spanning trees.
<Sysname> display stp root
MSTID
Root Bridge ID
0
0.00e0-fc0e-6554
Table 30 Command output
Field
ExtPathCost
IntPathCost
Root Port
Description
MSTI mode:
•
Default—The default instance MSTI 0.
•
Static—The static MSTI.
ExtPathCost IntPathCost Root Port
200200
0
Description
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.
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 name (displayed only if a port of the device is the root port of MSTIs).
101
GigabitEthernet1/0/1