Security Fundamentals

A policy requires an access port to drop frames from unauthorized MAC addresses, log each violation, and stay up. Which command sets this behavior?

Show the answer

Correct answerC. switchport port-security violation restrict

AWhy not this: Sticky learning saves learned MAC addresses to the configuration; it does not define a violation action.

BWhy not this: Protect drops offending frames silently, with no syslog message or violation counter increment.

CWhy this is right: Restrict drops offending frames, logs them, counts violations, and keeps the port up.

DWhy not this: Shutdown places the port in err-disabled state, so the port does not stay up.

Restrict mode drops frames from unauthorized MAC addresses, sends syslog messages, increments the violation counter, and leaves the port up. Protect also drops frames and keeps the port up, but it sends no log message and does not count violations.