BeginnerPublished 2026-07-02
STP 2: Controlling the Root Bridge with Priority
Bundle lab
Beginner CCNA STP lab on a three-switch triangle with two hosts in VLAN 20. You will deliberately control the Spanning Tree root election using the root primary/secondary macros so SW1 is the active root and SW2 is the standby. The baseline already provides VLANs and trunks; your job is to set root priorities deterministically and verify the resulting roles and port states without introducing any Layer-3.
Learning objectives
- Understand how STP elects a root bridge and why deterministic control matters
- Use the spanning-tree vlan <N> root primary/secondary macros to set bridge priority
- Verify root, designated, and non-designated port roles and states in a triangle topology
- Confirm that host connectivity in the user VLAN persists across whichever link STP leaves forwarding
- Cross-check the numeric priorities produced by the macros in the running configuration
Troubleshooting focus
- If SW1 is not the root for VLAN 20, ensure VLAN 20 exists and the trunks actually carry it so SW1 can hear other BPDUs.
- If ports are inconsistent across the triangle, check that only one link blocks and the blocked port is consistent with the final root.
- If hosts cannot ping, verify both access ports are in VLAN 20 and that trunks permit VLAN 20 end-to-end.
Topology
Subscribe to preview this lab's topology.
See plansGrade your work
How this lab is graded
- Build it your way. Where a lab lets you choose a value — a VLAN name, an interface description — grading checks that you configured it, not which name you picked. Names that another line has to reference, like an ACL applied with
access-class, are stated in the guide and do have to match. - Addresses, modes and protocol keywords are exact. An IP address, a subnet mask,
switchport mode trunk, an encapsulation — these carry the meaning of the lab, so they are graded as written in the guide. - Grading reads your saved configuration. Export the lab from CML after you have configured it, and make sure anything you set is in the running-config — a change that only exists in a terminal session never reaches the grader.
- You can submit as many times as you like. Your best score stands, and each attempt tells you which checks passed so you can work the gaps.
- Scored something you believe is correct? Use Report an issue on this page — that is exactly how the grading fixes in the changelog got found.
Create a free account to submit your lab for grading.
Create a free accountFound a problem with this lab?
Please sign in to report a problem — tying it to your attempts lets us reproduce and fix it faster.