display stp root

Use display stp root to display the root bridge information of spanning trees.

Syntax

display stp root

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-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           Ten-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           Ten-GigabitEthernet1/0/1

Table 43: 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).