Pcornel
Networking · Network Devices › Layer 2 Switch

STP (Spanning Tree Protocol)

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

Back to the Topic

Answer

On a Layer 2 switch, Spanning Tree Protocol blocks redundant paths so the switched network has no loops while keeping backup links ready to forward if the active path fails.

Remember

  • STP prevents Layer 2 loops by blocking redundant paths.
  • Rapid PVST+ and MST are the common modern variants.
  • Set the root bridge deliberately.

First checks

  • show spanning-tree summary — mode, root
  • show spanning-tree vlan <vlan> — roles

Verify in this order

BPDUs → root → roles → loop-free

Where it usually breaks

physical link → switchport/bundle membership → VLAN/instance state → STP/LAG decision → MAC forwarding → end-to-end frame path

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=854

Confirmation

Confirm action

Continue?