Spare links keep a network running when a cable or switch fails. But they also create switching loops, which can stop the whole network in seconds. Spanning Tree Protocol (STP) keeps the spare links and removes the loops. It blocks just the right ports, and unblocks them when something breaks.
Device key: SW1, SW2, SW3 (switch) · PC A, PC B (computer)
Lines show the example’s network connections. The coloured path and envelope follow the current step; its text identifies the sender, receiver and traffic type. Blocked: forwarding prevented by a port or policy. Down: failed link. Read the step for the cause.
- 1. One active path. Traffic follows the tree through the root bridge, SW1.
- 2. One backup path, blocked. The SW2–SW3 link is ready to use, but blocked, so there is no loop.
The course starts with why STP is needed and what it does, then follows the original Common Spanning Tree (CST): the algorithm, port roles, states, timers and topology changes. Next comes Cisco's Per-VLAN Spanning Tree (PVST+) and how to tune it, then Rapid PVST+ and the guard features that protect the tree. Two final labs bring it all together.
Most real STP problems come down to a root bridge nobody chose, or an access port that was not meant to see a BPDU, so the course spends time on both. Before starting, be comfortable with VLANs and how a switch learns MAC addresses.
Root Guard, Loop Guard, BPDU Filter and BPDU Guard are CCNA exam topics (2.5). UplinkFast, BackboneFast and UDLD are not; their lessons are marked Beyond CCNA for work or later study.
What's in this course
5 modules · 25 lessons · about 4 hours of reading
Module 1: STP Fundamentals
Why loops happen, what Spanning Tree does about them, and how it works.
Module 2: Common Spanning Tree (CST)
The original IEEE 802.1D tree: the algorithm, port roles, states, timers and topology changes.
- 2.1Introduction to Common Spanning Tree (CST)5 min · Intermediate5 min · Intermediate
- 2.2The Spanning Tree Algorithm9 min · Intermediate9 min · Intermediate
- 2.3Spanning Tree port roles6 min · Intermediate6 min · Intermediate
- 2.4Port states and timers7 min · Intermediate7 min · Intermediate
- 2.5Topology changes (TCN)6 min · Intermediate6 min · Intermediate
- 2.6Lab: manual STP computationLab20 min · Intermediate20 min · Intermediate
- 2.7Test: CST fundamentalsTest10 min · Intermediate10 min · Intermediate
Module 3: Per-VLAN Spanning Tree (PVST+)
One tree per VLAN: load balancing, configuration and tuning, and the edge and uplink features.
- 3.1Introduction to PVST+6 min · Intermediate6 min · Intermediate
- 3.2Configuring PVST+8 min · Intermediate8 min · Intermediate
- 3.3Lab: Spanning Tree customizationLab25 min · Intermediate25 min · Intermediate
- 3.4Packet Tracer lab: STP, Rapid PVST+ and PortFastLab25 min · Intermediate25 min · Intermediate
- 3.5PortFast5 min · Intermediate5 min · Intermediate
- 3.6UplinkFast and BackboneFastBeyond CCNA7 min · Advanced7 min · Advanced
Module 4: Rapid Spanning Tree (RSTP)
Fast convergence with Rapid PVST+, and the guard features that protect the tree.
- 4.1Introduction to Rapid PVST+8 min · Intermediate8 min · Intermediate
- 4.2Understanding RSTP synchronization7 min · Advanced7 min · Advanced
- 4.3Root Guard5 min · Intermediate5 min · Intermediate
- 4.4BPDU Guard5 min · Intermediate5 min · Intermediate
- 4.5BPDU Filter5 min · Intermediate5 min · Intermediate
- 4.6Loop Guard5 min · Intermediate5 min · Intermediate
- 4.7Unidirectional Link Detection (UDLD)Beyond CCNA6 min · Advanced6 min · Advanced
Module 5: Course Summary
Put everything together: build a protected campus design, then fix a broken one.