Course contents

Spanning Tree

How switched networks keep spare links without loops: why STP exists, how it elects a root and blocks ports, PVST+ and Rapid PVST+, the guard features that protect the tree, and how to configure and troubleshoot it on Cisco switches.

Intermediate · 25 lessons

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.

Diagram
A loop-free spanning tree with a blocked backup path
A loop-free spanning tree with a blocked backup path
DPRPDPRPDPALTSW1priority 24576SW2priority 32768SW3priority 32768PC APC B

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. 1. One active path. Traffic follows the tree through the root bridge, SW1.
  2. 2. One backup path, blocked. The SW2–SW3 link is ready to use, but blocked, so there is no loop.
This three-switch network is used throughout the course.

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.

Module 3: Per-VLAN Spanning Tree (PVST+)

One tree per VLAN: load balancing, configuration and tuning, and the edge and uplink features.

Module 4: Rapid Spanning Tree (RSTP)

Fast convergence with Rapid PVST+, and the guard features that protect the tree.

Module 5: Course Summary

Put everything together: build a protected campus design, then fix a broken one.

Start the first lesson →