CCNA 200-301 · Security Fundamentals · medium

An access switch port (FastEthernet0/5) is configured with Port Security (switchport port-security maximum 1). The security engineer wants the switch port to drop frames from unauthorized MAC addresses, increment the security violation counter, and send an SNMP trap / Syslog message, while keeping the port up/up for the legitimate workstation rather than placing the port into err-disabled. Which Port Security violation mode should be configured?

Published · Last updated · checked before publication — how we verify questions

Options

  • Aswitchport port-security violation protect
  • Bswitchport port-security violation restrictCorrect answer
  • Cswitchport port-security violation shutdown
  • Dswitchport port-security mac-address sticky

Answer: B. switchport port-security violation restrict

Cisco Port Security supports three violation modes: (B) protect drops unauthorized frames silently without logging or incrementing the counter; (C) restrict drops unauthorized frames, increments the violation counter, and sends a Syslog/SNMP alert while keeping the port active; and (D) shutdown (default) puts the port into err-disabled.

Why the other options are wrong

  • A. switchport port-security violation protect — protect drops frames from unknown MACs but does not send a Syslog/SNMP alert or increment the violation counter.
  • C. switchport port-security violation shutdown — shutdown immediately places the interface into the err-disabled state, cutting off the legitimate user as well.
  • D. switchport port-security mac-address sticky — sticky controls how legitimate MAC addresses are learned and saved to running-config, not the violation action.

All Security Fundamentals questions and the topic overview →

Cisco and CCNA are trademarks of Cisco Systems, Inc. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by Cisco Systems, Inc.