CPSA ยท Network device management and Layer 2/3 protocols
ARP and DHCP security
ARP spoofing, rogue DHCP servers, starvation and defences like DHCP snooping and dynamic ARP inspection.
Key points
- ARP: maps IP to MAC with no authentication; forged replies make an attacker a man in the middle (ARP spoofing).
- DHCP: unauthenticated; a rogue server hands out a malicious gateway or DNS; starvation with fake requests exhausts the pool.
- DHCP snooping: trusted and untrusted ports, blocks server messages on untrusted ones, builds an IP-MAC-port binding table.
- Dynamic ARP inspection: checks ARP on untrusted ports against that table.
Practice questions
What does a DHCP starvation attack do?
- Redirects clients to a fake gateway
- Exhausts the pool of available leases
- Encrypts DHCP messages
- Poisons the switch MAC table with ARP
Show answer
Answer: B. Exhausts the pool of available leases
It requests many leases with spoofed client MACs until the pool is empty, so legitimate clients get no address. Rogue servers are a different attack.
Which features help prevent ARP spoofing and rogue DHCP servers on a switch?
- DHCP snooping
- CDP
- Dynamic ARP inspection
- VTP
- Telnet
Show answer
Answer: A. DHCP snooping, C. Dynamic ARP inspection
DHCP snooping and dynamic ARP inspection are the two purpose-built controls. CDP and VTP are discovery and VLAN protocols, not defences here.
Dynamic ARP inspection can validate ARP packets without any binding table or ARP ACL.
Show answer
Answer: False
False. DAI compares ARP packets with trusted IP-to-MAC bindings, normally from the DHCP snooping table or from ARP ACLs for static hosts.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
