# Spanning Tree Protocol (STP)

> Master Spanning Tree Protocol (STP), root bridge election, RSTP convergence, and Layer 2 security features like BPDU Guard to prevent network loops.

Canonical: https://codelivly.com/rooms/spanning-tree-protocol-stp
Last updated: 2026-08-26

| | |
|---|---|
| Level | Beginner |
| Category | Networking |
| Lessons | 5 |
| Estimated time | 30 min |
| XP | 200 |

Dive into the critical mechanisms that keep Layer 2 networks stable and loop-free. This module breaks down the Spanning Tree Protocol (STP), explaining how switches elect a Root Bridge and transition through port states to prevent catastrophic broadcast storms. You will explore the evolution to Rapid Spanning Tree Protocol (RSTP) for faster network convergence, and learn essential STP security features like BPDU Guard and Root Guard to protect your network topology from malicious or accidental misconfigurations. The module culminates in a hands-on guided lab where you will diagnose and resolve a real-world STP loop scenario, solidifying your practical troubleshooting skills.

## Lessons

1. What Is Spanning Tree and Why Does It Matter (30 min)
2. STP Port States & Root Bridge Election (30 min)
3. RSTP and Rapid Convergence (30 min)
4. STP Security Features (30 min)
5. Guided Lab: Diagnosing and Fixing an STP Loop (30 min)

## Related

- [Learning path: Routing & Switching Fundamentals](https://codelivly.com/learning-paths/routing-switching-fundamentals)
- [All rooms](https://codelivly.com/rooms)
