IT lexicon › Networking › Port security

Port security

Networking På svenska → Updated: 2026-07-30

A switch feature that limits which MAC addresses can show up on a specific port — defence against MAC flooding and unauthorised devices.

Cisco syntax: switchport port-security maximum 2 (max 2 MACs), switchport port-security mac-address sticky (lock the first MAC seen), switchport port-security violation shutdown. Violation actions: shutdown (port disabled, manual reset), restrict (logs + drops), protect (just drops). Simpler than 802.1X but only defends against MAC spoofing, not more sophisticated attacks.

← Back to the lexicon