CompTIA Network+ N10-009 · Network Security · hard

A penetration tester plugs a laptop into an access switch port and floods the switch with thousands of Ethernet frames containing random, bogus source MAC addresses (macof) every second. Within seconds, the switch's CAM (MAC address) table fills to capacity, causing the switch to fail open and broadcast all unicast frames out of every port like a Layer 1 hub so the tester can sniff traffic in Wireshark. What is this attack called, and which Layer 2 switch feature prevents it?

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

Options

  • AThe attack is a MAC Flooding (CAM Table Overflow) attack turning the switch into a hubCorrect answer
  • BThe attack is a DNS Amplification (Reflective DDoS) attack over UDP 53
  • CMitigate by enabling Port Security (maximum MAC limit + sticky + shutdown)Correct answer
  • DMitigate by disabling Spanning Tree Protocol (no spanning-tree vlan 1) on all switch ports

Answers: A. The attack is a MAC Flooding (CAM Table Overflow) attack turning the switch into a hub; C. Mitigate by enabling Port Security (maximum MAC limit + sticky + shutdown)

Overflowing a switch's CAM table with bogus source MAC addresses so unknown unicast traffic floods all ports is a MAC Flooding (CAM Table Overflow) attack (A). Configuring Port Security (switchport port-security) limits the maximum number of learned MAC addresses per port (e.g., maximum 1 or 2 with sticky MAC learning) and triggers a violation action (shutdown / err-disabled, restrict, or protect) when exceeded (C).

Why the other options are wrong

  • B. The attack is a DNS Amplification (Reflective DDoS) attack over UDP 53 — DNS amplification floods a target IP with large UDP DNS responses; it does not overflow a local switch's Layer 2 CAM table.
  • D. Mitigate by disabling Spanning Tree Protocol (no spanning-tree vlan 1) on all switch ports — Disabling STP creates catastrophic Layer 2 broadcast loops and does not limit source MAC learning.

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.