Show the detailed information on STP configuration, information
on active or blocked ports.
- detail—show detailed information;
- active—show information on active ports;
- blockedports—show information on blocked ports;
- instance_id—MSTP instance identifier.
Example execution of commands
Enable STP support, set the spanning tree priority value to 12288, forward-time interval 20
seconds, 'Hello' broadcast message transmission interval 5 seconds, spanning tree lifetime 38
seconds. Show STP configuration:
console(config)# spanning-tree
console(config)# spanning-tree mode rstp
console(config)# spanning-tree priority 12288
console(config)# spanning-tree forward-time 20
console(config)# spanning-tree hello-time 5
console(config)# spanning-tree max-age 38
console(config)# exit
console# show spanning-tree
Spanning tree enabled mode RSTP
Default port cost method: long
Loopback guard: Disabled
Root ID Priority 12288
Address a8:f9:4b:f1:1d:00
This switch is the root
Hello Time 5 sec Max Age 38 sec Forward Delay 20 sec
Number of topology changes 3 last change occurred 00:00:10 ago
from gi1/0/11
Times: hold 1, topology change 58, notification 5
hello 5, max age 38, forward delay 20
Interfaces
Name State Prio.Nbr Cost Sts Role PortFast Type
--------- -------- -------- -------- ------ ---- -------- -----------------
gi1/0/1 enabled 128.49 2000000 Dsbl Dsbl No -
gi1/0/2 enabled 128.50 2000000 Frw Desg No P2P (RSTP
gi1/0/3 enabled 128.51 2000000 Dsbl Dsbl No -
gi1/0/4 enabled 128.52 2000000 Dsbl Dsbl No -
gi1/0/5 enabled 128.53 2000000 Dsbl Dsbl No -
gi1/0/6 enabled 128.54 2000000 Dsbl Dsbl No -
gi1/0/7 enabled 128.55 2000000 Dsbl Dsbl No -