zNetLaB › Guided labs › Enterprise
Port security on the access edge
Enterprise Beginner 3 devices 4 checked tasks 100 points Free lab
Lock the access ports down: one MAC on the reception desk port, learned sticky, and two on the meeting-room port where a phone sits in front of the PC — with a violation mode that drops and counts rather than shutting the port. You build it in a browser, type real commands at each device, and every task below is
checked against the running configuration — so you find out it is wrong before anybody else does.
Open this lab in the simulator
The simulator runs in your browser with nothing to install. This is a free lab: it stays open on the free plan. It needs an account, which keeps your progress.
The scenario
Lock the access ports down: one MAC on the reception desk port, learned sticky, and two on the meeting-room port where a phone sits in front of the PC — with a violation mode that drops and counts rather than shutting the port.
Your role: a network engineer on the enterprise team. Level: Beginner Done when: all 4 goals show as passed (100 points).
Network status
Devices: 1 switch, 2 PCs, cabled as drawn. No Layer 1 or Layer 2 faults: every link is connected and up. SW-Access starts with and VLAN 10 already configured. Reception is a host with 10.10.0.11/24. MeetingRoom is a host with 10.10.0.12/24.
Known problems
None: nothing is misconfigured. The network is simply not finished: what the goals list is what you have to build or secure.
Goals
Both desk ports are access ports in VLAN 10 (20 pts) Reception allows exactly one MAC address (30 pts) The meeting room allows two (a phone and a PC) (25 pts) The two desks still reach each other (25 pts)
The activity, in order
Both desk ports are access ports in VLAN 10 On SW-Access, put FastEthernet0/1 in VLAN 10: interface FastEthernet0/1, switchport mode access, switchport access vlan 10. On SW-Access, put FastEthernet0/2 in VLAN 10: interface FastEthernet0/2, switchport mode access, switchport access vlan 10.Why: A VLAN is a separate broadcast domain; the port’s VLAN decides which devices can talk without a router. Verify with: show vlan brief Reception allows exactly one MAC address Turn on port security on FastEthernet0/1 of SW-Access with a maximum of 1 MAC address(es).Why: Port security stops somebody plugging an extra switch or laptop into a wall port. Verify with: show port-security The meeting room allows two (a phone and a PC) Turn on port security on FastEthernet0/2 of SW-Access with a maximum of 2 MAC address(es).Why: Port security stops somebody plugging an extra switch or laptop into a wall port. Verify with: show port-security The two desks still reach each other From Reception, ping 10.10.0.12. If it fails, walk the path hop by hop: gateway, then each router’s routing table, then the way back.Why: A ping needs a route in BOTH directions. This is the end-to-end proof that everything before it worked. Verify with: ping 10.10.0.12
Tips
Work in the order given: later goals depend on the earlier ones. After every change, run the verify command before moving on; do not guess. Stuck? Read the verify output first. It names the interface, neighbour or route that is wrong.
Why this matters
Lock the access ports down: one MAC on the reception desk port, learned sticky, and two on the meeting-room port where a phone sits in front of the PC — with a violation mode that drops and counts rather than shutting the port.
What you will be able to do
Both desk ports are access ports in VLAN 10
Reception allows exactly one MAC address
The meeting room allows two (a phone and a PC)
The two desks still reach each other
The network
Catalyst 2960-24TT, PC — 3 devices in all, already cabled.
Fa0/1 Fa0 Fa0/2 Fa0 SW-Access Reception 10.10.0.11/24 MeetingRoom 10.10.0.12/24 Drawn from this lab: devices, cables, ports and the addresses already set.
Device Model Address already set
SW-Access Catalyst 2960-24TT configure it
Reception PC 10.10.0.11 / 255.255.255.0
MeetingRoom PC 10.10.0.12 / 255.255.255.0
Cabling
SW-Access Fa0/1 ↔ Reception Fa0
SW-Access Fa0/2 ↔ MeetingRoom Fa0
What is configured at the start
These are already configured when the lab opens — including, where this is a troubleshooting lab, the fault itself:
SW-Access vlan 10
name STAFF
exit
Tasks, and how each one is checked
Every task is decided by reading the live network — a neighbour in FULL, a ping that succeeds, a line in the running configuration — not by looking for a keyword you typed. The same command shows you what the lab sees.
# Task Pts How to verify it yourself
1 Both desk ports are access ports in VLAN 10 20 On SW-Access: show vlan brief — Fa0/1 is an access port in VLAN 10. and On SW-Access: show vlan brief — Fa0/2 is an access port in VLAN 10.
2 Reception allows exactly one MAC address 30 On SW-Access: show port-security interface Fa0/1 — maximum 1.
3 The meeting room allows two (a phone and a PC) 25 On SW-Access: show port-security interface Fa0/2 — maximum 2.
4 The two desks still reach each other 25 On Reception: ping 10.10.0.12 must succeed.
Stuck? Ask the coach
Tell the coach what you see or what you tried. It gives you a hint, not the answer, the way a senior engineer would. Included with a free trial or any plan.
Ask the coach
Reference solution
Try it yourself first — the lab checks your work either way. This is one configuration that makes every task pass, device by device:
SW-Access interface Fa0/1
switchport mode access
switchport access vlan 10
switchport port-security
switchport port-security maximum 1
switchport port-security mac-address sticky
switchport port-security violation restrict
exit
interface Fa0/2
switchport mode access
switchport access vlan 10
switchport port-security
switchport port-security maximum 2
switchport port-security violation restrict
exit
Where this is examined
This lab practises these topics in the zNetLaB certification courses:
Related labs
Where to start
The lessons are open to everyone, all guided labs are listed by track, and
plans explains what is free and what is not.
CCNA®, CCNP® and Cisco® are trademarks of Cisco Systems, Inc. zNetLaB is not affiliated with or endorsed by Cisco.