312-50 ยท Sniffing
MAC flooding and DHCP attacks
MAC flooding/CAM overflow, port security, DHCP starvation, rogue DHCP server, DHCP snooping.
Key points
- MAC flooding fills a switch's CAM table with fake source MACs so it may flood unicast frames like a hub.
- DHCP starvation drains the address pool, and a rogue DHCP server can then hand clients a hostile gateway or DNS.
- Port security limits MACs per port; DHCP snooping blocks server replies from untrusted ports.
Practice questions
What happens to many switches when the CAM table is completely filled by MAC flooding?
- Unknown unicast frames are flooded out of all ports like a hub
- The switch reboots and loses its configuration
- All VLANs are merged into one broadcast domain
- The switch starts encrypting frames on every port
Show answer
Answer: A. Unknown unicast frames are flooded out of all ports like a hub
With no free entries the switch cannot learn new MAC-to-port mappings and falls back to flooding, which lets an attacker see other hosts' frames. It does not erase config or merge VLANs.
Which are properties of DHCP snooping?
- Server replies such as Offer and Ack are dropped on untrusted ports
- It builds a binding table of MAC, IP, VLAN and port
- Uplinks toward the legitimate DHCP server are set as trusted
- It encrypts DHCP leases between client and server
- It blocks all client requests on trusted ports
Show answer
Answer: A. Server replies such as Offer and Ack are dropped on untrusted ports, B. It builds a binding table of MAC, IP, VLAN and port, C. Uplinks toward the legitimate DHCP server are set as trusted
Snooping separates trusted from untrusted ports, discards server messages from the latter and records leases it sees. It does not encrypt anything or stop clients on trusted ports.
True or false: DHCP starvation by itself lets the attacker read the victims' traffic.
Show answer
Answer: False
False. Starvation exhausts the pool, which is a denial of service. Interception needs a follow-up such as a rogue DHCP server that supplies its own gateway or DNS.
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.
