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

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 35: 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).