BeginnerPublished 2026-06-22
Compact Branch LAN: Two VLANs, ROAS & Sticky Port Security
Archive lab
Configure a compact branch LAN with router-on-a-stick inter-VLAN routing, two access switches, and two user VLANs. Implement VLANs, 802.1Q trunks with a hardened native VLAN, secure user-facing ports with port-security, and verify end-to-end reachability from the hosts. Includes realistic troubleshooting of VLAN assignment, trunk allow-lists, and port-security violations.
Learning objectives
- Create and name VLANs and map them to IP subnets in a branch LAN
- Configure access and trunk ports, including native VLAN hardening and allowed VLAN lists
- Implement sticky MAC port-security on user-facing access ports with proper violation handling
- Verify and troubleshoot VLAN, trunk, and port-security issues from end hosts
Troubleshooting focus
- A host cannot reach its gateway: Check the access port VLAN on the connected switchport. A VLAN mismatch (e.g. Users PC on VLAN 20) isolates the host.; Verify the trunk allow-list includes the host's VLAN end-to-end.
- Verify the trunk native VLAN matches across router and switch, and that VLAN 1 is pruned.
- A secured access port shuts down:
show port-security interfaceconfirms the violation. Clear it with shut/no shut, and remove the sticky MAC if you intentionally moved devices.; Ensure only one device/MAC is present behind each secured port. - The management SVI stays down: ensure VLAN 100 is created and allowed on all trunks. The SVI stays down until the VLAN is active on the switch.
show port-security interface <interface>reportsPort Security: Disabledalthough the options are all configured: An interface accepts violation mode, sticky learning and maximum addresses even when port security itself is off, so a port reads as configured while it is not protected.; Add the command that turns the feature on; the grading check fails withoutPort Security: Enabled.
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.