Courseiva

CCNA 200-301 study guide · Part 2: Switching and Network Access

Chapter 12: Spanning Tree Fundamentals

Why Layer 2 loops are dangerous and how STP prevents them: bridge ID and root bridge election, port roles and states, manipulating the root, and diagnosing loops and blocked ports.

Redundant switch links prevent outages but create loops, and this chapter explains how Spanning Tree removes them. You learn why a Layer 2 loop causes broadcast storms and MAC table instability, and how the Spanning Tree Protocol builds a loop-free topology by blocking selected ports.

The election of the root bridge is covered in detail: the bridge ID, priority and MAC address comparison, and how that choice determines everything else. Port roles and states then follow, from root, designated and alternate ports to blocking, listening, learning and forwarding, with the path cost values that decide which link wins.

A lab has you manipulate the root bridge deliberately by changing priority, and two troubleshooting scenarios apply the theory: diagnosing a spanning tree loop and understanding why an unexpected port is blocked.

Practise working out the root, the root ports and the blocked ports on a diagram by hand. The exam regularly presents a topology and asks for exactly that, and the next chapter's Rapid PVST+ builds directly on these ideas.

6 lessons (3 concept, 1 lab, 2 troubleshooting) · about 2.5 hours · Johnson Ajibi

What you will learn

  • Explain how a loop forms and how STP stops it
  • Predict the root bridge election
  • Name port roles and states
  • Influence the root bridge with priority
  • Troubleshoot loops and unexpected blocked ports

Sections

Read in order: concepts first, then how to configure and verify, then troubleshooting and exam traps.

  1. 12.1
    Spanning Tree Protocol

    Chapter 11 covered bundling and discovering links between switches; chapter 12 explains how those redundant links are kept loop-free.

    Concept25m
  2. 12.2
    STP Root Bridge Election

    The previous section introduced STP as a whole; this one drills into its first and most important decision, the election of the root bridge.

    Concept25m
  3. 12.3
    STP Port States and Roles

    With the root bridge elected, every other port gets a role and moves through states; this section explains both.

    Concept25m
  4. 12.4
    Lab: Manipulate STP Root Bridge

    The previous section described port states and roles; in this lab you take control of the root bridge election and watch the roles follow.

    Lab25m
  5. 12.5
    Troubleshoot: Spanning Tree Loop

    The lab showed STP working as designed; this page covers what happens when it fails and a Layer 2 loop forms.

    Troubleshooting25m
  6. 12.6
    Troubleshoot: Unexpected STP Blocked Port

    The previous page dealt with STP failing to block a loop; this last page of the chapter covers the opposite, a port blocked when it should forward.

    Troubleshooting25m

Practice this in the sandbox

Type real IOS commands in your browser on a cabled-up network. Each lab checks what the network actually does.

Free practice: open the sandbox

Key terms

Practice

Check what you learned in this chapter with free CCNA 200-301 practice questions and full explanations.

CCNA 200-301 practice questions

↑ Up to Part 2: Switching and Network Access · Book contents