Port Security

Protecting the Layer 2 Access Edge

Switch Port Security limits the number of valid MAC addresses allowed on a port, effectively preventing unauthorized devices from joining the network.

Violation Modes

Sticky MAC Addresses

Instead of manually typing out MAC addresses, you can use the "sticky" feature to have the switch dynamically learn the first MAC address it sees and write it to the running-config.

Switch(config-if)# switchport port-security mac-address sticky
Related Lab: Lab 19: Port Security Next Blog: Standard ACLs Explained