Pcornel
Networking · Switching › STP

Spanning Tree Fundamentals

Cheat sheet · https://pcornel.dk/topic.php?topic=606

Back to the Topic

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 states
  • show 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

DecisionPreferred value
Root bridgeLowest Bridge ID
Root port on non-root bridgeBest received BPDU / lowest total root path cost, then tie-breakers
Designated port on a segmentPort advertising the best path toward root, then tie-breakers
Redundant pathNon-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

Confirmation

Confirm action

Continue?