An attacker is launching a DHCP starvation attack by sending a large number of DHCP discover messages with spoofed MAC addresses. This exhausts the DHCP pool and causes legitimate clients to fail to obtain IP addresses. Which security feature should be implemented on the switch to mitigate this attack?
DHCP snooping is a critical security feature implemented on network switches that inspects DHCP traffic to prevent rogue DHCP servers and DHCP starvation attacks. It classifies switch ports as trusted (for legitimate DHCP servers) or untrusted, dropping DHCP server messages received on untrusted ports. Crucially, it can enforce rate limiting on untrusted ports to prevent an attacker from flooding the network with excessive DHCP DISCOVER requests, thereby mitigating DHCP starvation by limiting the number of requests. It also builds and maintains a DHCP snooping binding table, mapping MAC addresses to IP addresses, which can be used by other security features.
Why this answer
DHCP snooping is the correct mitigation because it filters untrusted DHCP messages on access ports. By default, it only allows DHCP server responses (OFFER, ACK, etc.) on trusted ports (typically uplinks to the legitimate DHCP server) and drops them on untrusted ports, preventing a rogue or spoofed server from replying. Additionally, DHCP snooping builds a DHCP snooping binding table that tracks valid MAC-to-IP address mappings, which can be used to rate-limit DHCP discover messages and detect starvation attacks.
Exam trap
CompTIA often tests DHCP snooping as the answer for DHCP starvation attacks, but candidates confuse it with DAI because both rely on the DHCP snooping binding table, forgetting that DAI only validates ARP packets, not DHCP messages.
Why the other options are wrong
Port security limits the number of MAC addresses per port but does not inspect DHCP messages or prevent DHCP pool exhaustion from spoofed MAC addresses.
Dynamic ARP Inspection (DAI) validates ARP packets to prevent ARP spoofing and man-in-the-middle attacks, but it does not prevent DHCP starvation attacks, which target DHCP address exhaustion.