Bitzu

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

Single choice

What happens to many switches when the CAM table is completely filled by MAC flooding?

  1. Unknown unicast frames are flooded out of all ports like a hub
  2. The switch reboots and loses its configuration
  3. All VLANs are merged into one broadcast domain
  4. 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.

Select all that apply

Which are properties of DHCP snooping?

  1. Server replies such as Offer and Ack are dropped on untrusted ports
  2. It builds a binding table of MAC, IP, VLAN and port
  3. Uplinks toward the legitimate DHCP server are set as trusted
  4. It encrypts DHCP leases between client and server
  5. 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

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.

Download on the App StoreGet it on Google Play

More 312-50 topics in this module