3.12.25. show spanning-tree

Syntax

show spanning-tree

Parameter

Default

Mode

Privileged EXEC

Usage

To display the spanning tree configuration, use the command spanning-tree in the Privileged EXEC mode

Example

The following example shows the spanning tree configuration.

Switch# show spanning-tree
Spanning tree enabled mode RSTP
Default port cost method: long
Root ID Priority 32768
Address 1c:2a:a3:c4:02:92
This switch is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Number of topology changes 3 last change occurred 00:00:03 ago
Times: hold 0, topology change 0, notification 0
hello 2, max age 20, forward delay 15
Interfaces
Name State Prio.Nbr Cost Sts Role EdgePort Type
--------- -------- -------- --------
------ ---- -------------------------
gi1 enabled 128.1 20000 Frw Desg No P2P (RSTP)
gi15 enabled 128.15 200000 Frw Desg No P2P (RSTP)
gi25 enabled 128.25 200000 Frw Desg No P2P (RSTP)