A structured lesson workspace with readable content, hands-on examples, and a clean path to completion.
A user brings in a personal Wi-Fi router and plugs it into a wall jack. The router has DHCP enabled by default and starts answering DHCP requests faster than the legitimate server. Devices connecting to that segment get IPs pointing to the personal router as their gateway. All internet traffic for those devices now flows through the user's home router — which is logging it, potentially modifying it, and definitely not secure. DHCP snooping stops this by refusing DHCP replies from any port except those explicitly trusted.
DHCP snooping works by classifying every port as trusted or untrusted. DHCP DISCOVER, REQUEST, and other client messages are allowed from untrusted ports. DHCP OFFER and ACK (server messages) are only allowed in from trusted ports. Since servers only respond, any OFFER arriving on an untrusted port is a violation — the frame is dropped and the port is logged.
The default is that every port is untrusted. When you enable DHCP snooping globally, the switch behaves as if every port might be hostile. You then explicitly trust the ports where legitimate DHCP servers sit — typically uplinks to distribution and direct connections to servers. Everything else stays untrusted.
! Enable DHCP snooping globallySW1(config)# ip dhcp snooping! Enable it on specific VLANsSW1(config)# ip dhcp snooping vlan 10,20,30! Trust the uplink to the distribution switch (where DHCP server is)SW1(config)# interface gigabitEthernet0/24SW1(config-if)# ip dhcp snooping trustSW1(config-if)# exit! Rate-limit DHCP packets on untrusted ports (prevents starvation)SW1(config)# interface range gigabitEthernet0/1 - 23SW1(config-if-range)# ip dhcp snooping limit rate 10SW1(config-if-range)# exit! VerifySW1# show ip dhcp snoopingSW1# show ip dhcp snooping binding
The rate limit on untrusted ports is critical. Without it, a client could flood DHCP DISCOVER messages at high speed, starving the DHCP server's request queue. Setting `ip dhcp snooping limit rate 10` means no more than 10 DHCP packets per second from any access port. That's plenty for legitimate use and stops starvation attacks cold.
The binding table maps MAC address, IP address, VLAN, and interface for every client that has received an IP from a trusted DHCP server. It's the authoritative source of 'who is on which port with which IP.' Two other features — Dynamic ARP Inspection and IP Source Guard — rely on this table to enforce policy at Layer 2.
DHCP snooping prevents rogue DHCP servers by enforcing trust boundaries. The binding table it builds is used by DAI and IP Source Guard. Rate limiting on untrusted ports stops starvation attacks. Next lesson covers Dynamic ARP Inspection.
Finish the lesson once you have worked through the material. This awards ★ 30 XP.