Scenario
SW1 is an access switch in an open office. Fa0/1 serves a desk with a PC and a small desktop switch, so it may learn two addresses. When an unknown device shows up there, the switch should just drop its frames and log it. Fa0/2 is a reception PC: exactly one device, and anything else must take the port down. Ports start in their default state.
Topology
Requirements
- 1Fa0/1 is a static access port
- 2Port security is on at Fa0/1 with a maximum of 2 addresses
- 3Fa0/1 learns addresses as sticky
- 4A violation on Fa0/1 only drops and logs: restrict
- 5Fa0/2 is a static access port with port security on and a maximum of 1
- 6A violation on Fa0/2 shuts the port down (the default mode)
SW1 is a new switch with default settings. Type ? for the commands you can use. Start with: enable
SW1> show running-config
CCNA lab · about 10 min
Port security on access ports
Limit which devices can use two access ports: allow up to two sticky-learned addresses on one port with a quiet violation action, and lock the other to a single device that shuts the port down.
This lab is included in the CCNA plans and in the free trial.