Spanning Tree Fundamentals
Cheat sheet · https://pcornel.dk/topic.php?topic=606
Answer
Classic STP builds a loop-free tree by electing a root, selecting roles and using timers to age information and move ports through transitional states. Timer values propagate from the root in standard operation.
Remember
Do not tune hello, max-age or forward-delay independently to “make STP faster” without validating diameter and platform constraints. RSTP accelerates convergence with different mechanisms rather than simply shrinking 802.1D timers.
First checks
show spanning-tree vlan <vlan>— root, timers, port statesshow spanning-tree vlan <vlan> detail | include changes|occurr— topology changes
Commands
show spanning-tree
Verify in this order
root election → root ports → designated ports → blocked ports → timers → forwarding
Where it usually breaks
physical link → switchport/bundle membership → VLAN/instance state → STP/LAG decision → MAC forwarding → end-to-end frame path
STP election and role quick map
| Decision | Preferred value |
|---|---|
| Root bridge | Lowest Bridge ID |
| Root port on non-root bridge | Best received BPDU / lowest total root path cost, then tie-breakers |
| Designated port on a segment | Port advertising the best path toward root, then tie-breakers |
| Redundant path | Non-forwarding role/state until needed |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=606