Scenario

Ticket: the reception desk (Fa0/1) has a PC and, since last week, a network printer behind a small unmanaged switch. Fa0/1 went err-disabled and the desk is offline. Policy: Fa0/1 allows exactly those 2 devices, learned and kept (sticky), and a stranger must still shut the port down. Fa0/2 (one PC, one device allowed, shutdown on violation) works and must not change. Fa0/3 is the meeting-room wall socket: it has no port security yet. Policy for Fa0/3: one device, and a stranger is logged and dropped, but the port stays up (restrict).

Topology

SW1SW2

Requirements

  1. 1Fa0/1 allows 2 secure MAC addresses
  2. 2Fa0/1 is connected again and keeps both devices
  3. 3Fa0/1 keeps sticky learning and the violation action shutdown
  4. 4Fa0/2 is unchanged: one device, shutdown, and the port is connected
  5. 5Fa0/3 has port security with 1 device and the violation action restrict

SW1 has port security on some ports. Type ? for the commands you can use. Start with: enable

SW1> show running-config

CCNA lab · about 15 min

Troubleshoot: Fa0/1 is err-disabled by port security and Fa0/3 is unprotected

Three faults, a port shut down by port security with a limit that is too small, and a port with no port security, leave one desk offline and one wall socket open. Find them with show port-security.

This lab is included in the CCNA plans and in the free trial.

Start the free trial Try the free VLAN lab Today's free lab

All labs

About this lab

Ticket: the reception desk (Fa0/1) has a PC and, since last week, a network printer behind a small unmanaged switch. Fa0/1 went err-disabled and the desk is offline. Policy: Fa0/1 allows exactly those 2 devices, learned and kept (sticky), and a stranger must still shut the port down. Fa0/2 (one PC, one device allowed, shutdown on violation) works and must not change. Fa0/3 is the meeting-room wall socket: it has no port security yet. Policy for Fa0/3: one device, and a stranger is logged and dropped, but the port stays up (restrict).

About 15 minutes. Included in the CCNA plans and the free trial.

Questions about this lab

Is this a real Cisco switch?

No. It is a small simulator written by CertAce. It understands a handful of commands and keeps the state of one switch, so you can practise the ideas without lab gear. Real devices print more, and the exam may ask for things this lab does not cover. CertAce is not affiliated with Cisco.

What are the three violation modes?

Protect drops frames from unknown addresses silently. Restrict drops them and also counts and logs them. Shutdown (the default) puts the port in the err-disabled state.

What does sticky do?

Sticky learning stores the learned MAC addresses in the running configuration as secure addresses. If the configuration is saved, they are kept after a reload.

When does a violation happen?

When more than the maximum number of addresses try to use the port, or when a secure address learned on one port appears on another port in the same VLAN.

CertAce is not affiliated with or endorsed by Cisco Systems. CCNA and Cisco are trademarks of Cisco Systems, Inc. The simulator and every command output here were written by CertAce.