CompTIA Network+ N10-009 · Network Security · hard

A penetration tester plugs a single workstation into switch port Gi1/0/8 and runs the macof utility, generating 50,000 Ethernet frames per second with randomized source MAC addresses until the switch's Content-Addressable Memory (CAM) MAC address table overflows and begins flooding unicast traffic out all ports like a Layer 1 hub. Which two Layer 2 Port Security settings should the administrator configure on Gi1/0/8 to learn the workstation's legitimate MAC address into NVRAM and drop unauthorized MAC frames while generating a Syslog/SNMP trap without disabling the port? (Select two.)

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

Options

  • AConfigure violation protect so the switch sends SNMP traps and disables the access port
  • BEnable Port Security with sticky MAC learning and a max MAC limitCorrect answer
  • CEnable IP Source Guard without Port Security or DHCP Snooping on the switch trunk uplink
  • DConfigure violation restrict to drop unauthorized MACs and log alertsCorrect answer

Answers: B. Enable Port Security with sticky MAC learning and a max MAC limit; D. Configure violation restrict to drop unauthorized MACs and log alerts

To defeat MAC Flooding (CAM Table Overflow) on an access switch port: 1. Enable Port Security with sticky MAC learning (switchport port-security mac-address sticky and maximum 1 or 2), which dynamically binds the first legitimate MAC address(es) into the running configuration so any additional forged source MACs trigger a violation (B). 2. Set the Port Security violation mode to restrict (switchport port-security violation restrict), which drops frames from unauthorized source MACs, increments the security-violation counter, and sends an SNMP trap / Syslog message while keeping the port operational for the legitimate MAC (unlike shutdown, which puts the port into err-disabled, or protect, which drops frames silently without logging) (D).

Why the other options are wrong

  • A. Configure violation protect so the switch sends SNMP traps and disables the access port — protect mode silently drops frames from unauthorized MACs WITHOUT incrementing the violation counter or sending SNMP/Syslog alerts, and does not shut down the port.
  • C. Enable IP Source Guard without Port Security or DHCP Snooping on the switch trunk uplink — IP Source Guard filters Layer 3 source IPs using the DHCP snooping table; limiting Layer 2 source MAC floods requires Port Security.

All Network Security questions and the topic overview →

CompTIA and Security+ are trademarks of the Computing Technology Industry Association. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by CompTIA.