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
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.
More Network Security questions
- An attacker attempts a VLAN Hopping (Double-Tagging) attack by sending an Ethernet frame with two 802.1Q VLAN tags (an…
- A hospital network segments its devices into VLAN 10 (Electronic Health Records), VLAN 30 (Infusion Pumps / IoMT), and…
- A network security architect is choosing between RADIUS and TACACS+ for two distinct use cases: Use Case 1 is…
- A penetration tester plugs a single workstation into switch port Gi1/0/8 and runs the macof utility, generating 50,000…
CompTIA and Security+ are trademarks of the Computing Technology Industry Association. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by CompTIA.