Concepts / Switch security

Switch security

Port security

Also called err-disable, errdisable, sticky MAC, secure MAC address, switchport port-security, violation shutdown

A limit on how many MAC addresses one switch port accepts; one more is a violation that drops the frame or shuts the port.

One address too many is a violation
One address too many is a violation

The port takes frames from its secure MAC address only. What happens to the extra one depends on the mode: by default the whole port shuts down, and stays down.

Port security limits how many MAC addresses one switch port accepts, often one. A frame from one address too many is a violation: shutdown (the default) puts the port in err-disabled, down until an administrator brings it back; restrict drops and logs; protect drops silently. Sticky addresses are saved in the configuration as they are learned. It stops [[mac-flooding]] and a second device plugged in behind a desk.

See it on real machines

Read next

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Sign in with Google or email to start.

Start this lab