Spanning Tree: the loop killer
▶ Start the interactive lesson
Friday, 4:47pm. The whole office drops. Switch lights are flashing like a nightclub. Someone "tidied the cables" and plugged both ends of a spare cable into two switches. Maya unplugs it and everything comes back. "That's a broadcast storm. Let's make sure it can never happen again."
Key points
- Spanning Tree Protocol (STP) keeps backup links but blocks them so there's only one active path.
- 1. Elect a root bridge: the lowest Bridge ID (priority, default 32768, then lowest MAC). 2. Every other switch picks its root port: the lowest-cost path to the root. 3. Each link gets one designated port. 4. Everything else is blocked.
- If the active path fails, STP unblocks the backup. Use Rapid STP for fast convergence, PortFast on PC ports, and BPDU Guard so a rogue switch (or that cable) shuts the port instead of looping.
The full lesson has more: animations, a hands-on exercise, 3 quiz questions and spaced review cards. Open it free →