Specifications
2-765
Catalyst 4500 Se ries S wit ch C is co IO S C om mand R efer ence —Re lease I OS XE 3 .3.0 XO(1 5.1 (1)XO)
OL_28738 -01
Chapter 2 Cisco IOS Commands for the Catalyst 4500 Series Switches
show spanning-tree
PortFast BPDU Guard is disabled
EtherChannel misconfiguration guard is enabled
UplinkFast is disabled
BackboneFast is disabled
Default pathcost method used is short
Name Blocking Listening Learning Forwarding STP Active
-------------------- -------- --------- -------- ---------- ----------
VLAN1 0 0 0 1 1
VLAN2 0 0 0 1 1
-------------------- -------- --------- -------- ---------- ----------
2 VLANs 0 0 0 2 2
Switch#
This example shows how to display the total lines of the spanning-tree state section:
Switch# show spanning-tree summary totals
Root bridge for:VLAN1, VLAN2.
PortFast BPDU Guard is disabled
EtherChannel misconfiguration guard is enabled
UplinkFast is disabled
BackboneFast is disabled
Default pathcost method used is short
Name Blocking Listening Learning Forwarding STP Active
-------------------- -------- --------- -------- ---------- ----------
2 VLANs 0 0 0 2 2
Switch#
This example shows how to determine whether any ports are in root inconsistent state:
Switch# show spanning-tree inconsistentports
Name Interface Inconsistency
-------------------- -------------------- ------------------
VLAN1 FastEthernet3/1 Root Inconsistent
Number of inconsistent ports (segments) in the system:1
Switch#
Related Commands Command Description
spanning-tree backbonefast Enable s BackboneFast on a span ning-tree VLAN.
spanning-tree cost Calculates the path cost of STP on an interface.
spanning-tree guard Enables root guard.
spanning-tree pathcost method S ets the path cost calculation method.
spanning-tree portfast default Enables PortFast by default on all access ports.
spanning- tree po rtfast (i nter face
configuration mode)
Enables PortFast mode.
spanning-tree port-priority Prioritizes an interface when two bridges compete for
position as the root bridge.
spanning-tree uplinkfast Enables the UplinkFast feature.
spanning-tree vlan Config ures STP on a per-VLAN basis .