Study FAQ
Why can switch port security block a legitimate device after it moves?
Also asked as 2
- How do secure MAC limits and violation modes affect a device move?
- What should you check when port security blocks a replacement or relocated device?
Answer
Port security limits source MAC addresses allowed on a switch port. A replacement or moved device can violate policy if the destination port has reached its secure address limit or if the same secure MAC is already bound to another secure interface in that VLAN. Check whether the old or new port still has an entry that conflicts with the move.
On Catalyst 9300 with IOS XE 17.15.x, addresses can be configured statically, learned dynamically, or learned as sticky entries in the running configuration. Sticky addresses can persist across a reload if the configuration was saved. Violation behavior depends on the mode. Protect drops frames from unknown source addresses without notifying you of a violation. Restrict drops them and reports the violation. Shutdown puts the interface in an error-disabled state.
Check the mode, limit, and violation count with show port-security interface <interface-id> and inspect the secure address list with show port-security address. Reconcile the authorized devices and the learned or saved state under the port's existing policy. Test connectivity after the change. Port security enforces an address policy. Use a separate authentication control when the requirement is to verify an endpoint or user identity.
References
Full explanation
ACLs, Layer 2 Security, and Wireless Security Controls
Study guide · 200-301
Read the full explanation