BeginnerPublished 2026-06-30
CCNA Port Security 2: Sticky Secure MAC Learning
Bundle lab
Two access-layer switches have a VLAN 20 connectivity problem: users in one wiring closet cannot reach users in the other. Diagnose and repair the issue, then deploy sticky secure MAC learning on the host-facing access ports so each port dynamically learns and persists its connected host's MAC. Verify sticky entries in show commands and confirm same-VLAN host connectivity end-to-end.
Learning objectives
- Identify and fix a trunk allow-list drift that prevents a user VLAN from traversing between switches
- Configure port security on host-facing access ports so each one automatically learns and locks onto its connected device’s MAC address (sticky learning)
- Set a secure address maximum per port and verify sticky learning in show port-security and running-config
- Validate same-VLAN host connectivity across an 802.1Q trunk
Troubleshooting focus
ping 10.20.20.20from CLIENT-A fails: Check the trunk on both ends for VLAN 20 in the allowed list withshow interfaces trunk. Fix any drift.; Confirm the native VLAN on the trunk is 999 on both ends.; Ensure the client-facing ports are access ports in VLAN 20, not the default VLAN 1 or another VLAN.show port-security addresslists no sticky MAC for the port: Make sure port-security is enabled on the interface and that maximum is at least 1.; Generate traffic with a ping so the port learns the MAC.; If violation mode is shutdown and a mismatch occurred, the port may be err-disabled. Clear it withshut/no shutand correct the cause.- A second device's frames are dropped on a secured port: with sticky learning and maximum 1 that is the intended behaviour. Check
show port-security interfacefor the violation counters. show port-security interface <interface>does not reportPort Security: Enabledeven though the sticky, violation and maximum lines are present: an interface accepts those options while the feature itself is off.
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.