Table 30 Command output
Field
Format selector
Region name
Revision level
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
# 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
Description
Format selector defined by the spanning tree protocol. The default value is 0
and the selector cannot be configured.
MST region name.
Revision level of the MST region, which can be configured by using the
revision-level command and defaults to 0.
MSTI mode:
•
Default—The default instance MSTI 0. In PVST mode, the spanning tree
feature is disabled.
•
Static—The static MSTI.
•
Dynamic—The dynamically assigned MSTI, which only exists in PVST
mode.
ExtPathCost IntPathCost Root Port
200200
0
ExtPathCost IntPathCost Root Port
121
Ethernet1/0/1