show spanning-tree
Syntax
show spanning-tree [detail] [vsx-peer]
Description
Shows the spanning tree mode and information on the RPVST instances and optionally shows details on the RPVST instances.
Command context
Operator (>
) or Manager (#
)
Parameters
detail
Specifies showing details on the RPVST instances.
[vsx-peer]
Shows the output from the VSX peer switch. If the switches do not have the VSX configuration or the ISL is down, the output from the VSX peer switch is not displayed.
Authority
Operators or Administrators. Users without administrator authority can execute this command from the operator context (>) only.
Examples
Showing spanning tree mode and RPVST instance information:
switch# show spanning-tree Spanning tree status : Enabled Protocol: RPVST Extended System-id : Enabled Ignore PVID Inconsistency : Enabled Path cost method : Long VLAN1 Root ID Priority : 32768 MAC-Address: 70:72:cf:31:c9:23 This bridge is the root Hello time(in seconds):2 Max Age(in seconds):20 Forward Delay(in seconds):15 Bridge ID Priority : 32768 MAC-Address: 70:72:cf:31:c9:23 Hello time(in seconds):2 Max Age(in seconds):20 Forward Delay(in seconds):15 Port Role State Cost Priority Type ------------ -------------- ---------- ------- ---------- ---------- 1/1/1 Designated Forwarding 0 128 point_to_point 1/1/5 Designated Forwarding 0 128 point_to_point
Showing spanning tree mode and detailed RPVST instance information:
switch#show spanning-tree detail Spanning tree status : Enabled Protocol: RPVST Extended System-id : Enabled Ignore PVID Inconsistency : Enabled Path cost method : Long VLAN1 Root ID Priority : 32768 MAC-Address: 70:72:cf:31:c9:23 This bridge is the root Hello time(in seconds):2 Max Age(in seconds):20 Forward Delay(in seconds):15 Bridge ID Priority : 32768 MAC-Address: 70:72:cf:31:c9:23 Hello time(in seconds):2 Max Age(in seconds):20 Forward Delay(in seconds):15 Port Role State Cost Priority Type ------------ -------------- ---------- ------- ---------- ---------- 1/1/1 Designated Forwarding 0 128 point_to_point 1/1/2 Designated Forwarding 0 128 point_to_point Topology change flag : False Number of topology changes : 1 Last topology change occurred : 33293 seconds ago Port 1/1/1 Designated Root Priority : 32768 Address: 48:0F:CF:AF:22:1D Designated Bridge Priority : 32768 Address: 48:0F:CF:AF:22:1D Designated Port : 1/1/1 Forwarding-State transitions : 0 BPDUs sent 1582, received 1506 Port lag1 Designated Root Priority : 32768 Address: 48:0F:CF:AF:22:1D Designated Bridge Priority : 32768 Address: 48:0F:CF:AF:22:1D Designated Port : lag1 Forwarding-State transitions : 0 BPDUs sent 1402, received 1316 Multi-chassis role : active