An interface moves through the states.
Figure 9: Spanning-Tree Interface States
When you power up the switch, spanning tree is enabled by default, and every interface in the switch, VLAN,
or network goes through the blocking state and the transitory states of listening and learning. Spanning tree
stabilizes each interface at the forwarding or blocking state.
When the spanning-tree algorithm places a Layer 2 interface in the forwarding state, this process occurs:
1
The interface is in the listening state while spanning tree waits for protocol information to move the
interface to the blocking state.
2
While spanning tree waits for the forward-delay timer to expire, it moves the interface to the learning state
and resets the forward-delay timer.
3
In the learning state, the interface continues to block frame forwarding as the switch learns end-station
location information for the forwarding database.
4
When the forward-delay timer expires, spanning tree moves the interface to the forwarding state, where
both learning and frame forwarding are enabled.
Blocking State
A Layer 2 interface in the blocking state does not participate in frame forwarding. After initialization, a BPDU
is sent to each switch interface. A switch initially functions as the root until it exchanges BPDUs with other
switches. This exchange establishes which switch in the network is the root or root switch. If there is only
one switch in the network, no exchange occurs, the forward-delay timer expires, and the interface moves to
the listening state. An interface always enters the blocking state after switch initialization.
An interface in the blocking state performs these functions:
•
Discards frames received on the interface
•
Discards frames switched from another interface for forwarding
•
Does not learn addresses
•
Receives BPDUs
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
217
Information About Spanning Tree Protocol
Summary of Contents for Catalyst 2960 Series
Page 96: ......
Page 196: ......
Page 250: ......
Page 292: ......
Page 488: ......
Page 589: ...P A R T VI Cisco Flexible NetFlow Configuring NetFlow Lite page 509 ...
Page 590: ......
Page 619: ...P A R T VII QoS Configuring QoS page 539 Configuring Auto QoS page 645 ...
Page 620: ......
Page 750: ......
Page 1604: ......
Page 1740: ......
Page 2105: ...P A R T XII Configuring Cisco IOS IP SLAs Configuring Cisco IP SLAs page 2025 ...
Page 2106: ......
Page 2118: ......
Page 2164: ......