Open the lab
[ YOUR LAB FILE ]
Download the starting topology, then work through the lesson in SwitchLab.
- Save the .swlab file without renaming its extension.
- Open SwitchLab. Import and export controls currently require a desktop-width window. On a smaller screen, Tools → Fit brings the topology into view.
- Select Import Sandbox (folder icon), choose the downloaded file, and confirm the device and cable counts below.
- Select a device, then choose Open device on desktop or its name in the bottom bar on smaller screens. Select CLI for switches/routers or Desktop → Terminal for PCs. Enter
enableonly when the prompt ends in >. - Follow this page beside the simulator. Use a free account to export your work. Reimport the original download to restart; export any work you want to keep first.
Prerequisites
- Complete the VLAN and trunking progression.
- Understand that redundant Layer 2 paths need loop prevention.
Topology

7 devices · 7 links
Scenario
A small campus carries Users and Staff across a redundant triangle. Assign each VLAN to its preferred distribution root, keep a backup preference, and prove both departments survive a controlled link removal.
Objectives
- Determine the root from operational spanning-tree output.
- Verify explicit bridge priorities and converged host forwarding.
CCNA blueprint
200-301 v1.1 objectives — this lab covers the following specific skills, not every subtopic in the domain.
- 2.5 — Interpret Rapid PVST+ root election, port roles and steady-state redundancy.
Starting information
- VLAN 10 priorities: SW1=0, SW2=4096, SW3=32768. VLAN 20 priorities: SW2=0, SW1=4096, SW3=32768.
- PC1/PC2 use VLAN 10; PC3/PC4 use VLAN 20 on g0/2 of SW2/SW3. All trunks carry both VLANs.
- Use rapid-pvst mode already configured. This exercise proves steady-state roles and reachability, not real-time convergence speed.
| Host | IPv4 address | Mask | Gateway |
|---|---|---|---|
| PC1 | 192.168.10.10 | 255.255.255.0 | None |
| PC2 | 192.168.10.20 | 255.255.255.0 | None |
| PC3 | 192.168.20.30 | 255.255.255.0 | None |
| PC4 | 192.168.20.40 | 255.255.255.0 | None |
| Device / port | Device / port |
|---|---|
| SW1 / g0/7 | SW2 / g0/7 |
| SW1 / g0/8 | SW3 / g0/8 |
| SW2 / g0/8 | SW3 / g0/7 |
| PC1 / eth0 | SW2 / g0/1 |
| PC2 / eth0 | SW3 / g0/1 |
| PC3 / eth0 | SW2 / g0/2 |
| PC4 / eth0 | SW3 / g0/2 |
Tasks
- Audit both VLAN instances and write down the required primary and backup bridge for each.
- Apply the approved per-VLAN priorities while preserving trunks and access ports.
- Verify both roots and each department’s traffic. Explain why one physical switch can be root for one VLAN and not another.
- Shut g0/7 on both SW1 and SW2 to model that link unavailable. Inspect both spanning trees and test both departments. Restore both interfaces, verify again, then save/export.
Useful commands
show spanning-tree vlan 10
show running-config
show spanning-tree vlan 20
copy running-config startup-configProgressive hints
Hint 1
Check the bridge priority before using MAC addresses to break an election tie.
Hint 2
A working ping proves delivery but does not tell you whether the intended switch is the root.
Hint 3
Use show spanning-tree vlan 10 on each switch; set only the priorities specified in the approved plan.
Verification
- The intended root reports This bridge is the root for its assigned VLAN.
- Configured bridge priorities match the approved primary and backup design.
- Both directions of each department’s traffic succeed after the final restoration.
Solution / walkthrough
Show Solution
Use enable only from a > prompt; if already at #, begin with configure terminal.
SW1
Set a distinct primary and backup preference for each VLAN; preserve rapid-PVST and the existing trunk carriage.
enable
configure terminal
spanning-tree vlan 10 priority 0
spanning-tree vlan 20 priority 4096
end
copy running-config startup-configSW2
Set a distinct primary and backup preference for each VLAN; preserve rapid-PVST and the existing trunk carriage.
enable
configure terminal
spanning-tree vlan 10 priority 4096
spanning-tree vlan 20 priority 0
end
copy running-config startup-configSW3
Set a distinct primary and backup preference for each VLAN; preserve rapid-PVST and the existing trunk carriage.
enable
configure terminal
spanning-tree vlan 10 priority 32768
spanning-tree vlan 20 priority 32768
end
copy running-config startup-configRun every verification check above after the changes. A saved configuration alone does not prove packet delivery.