Configuring DHCP snooping, Dynamic ARP Inspection and IP Source Guard on Cisco switches
In short: DHCP snooping lets only trusted ports send DHCP server replies and records which IP and MAC address each client was given on which port. Dynamic ARP Inspection uses that binding table to drop forged ARP messages, and IP Source Guard drops traffic from source addresses a port was never given. Together they stop rogue DHCP servers, ARP spoofing and IP spoofing at the access layer.
What each feature stops
- DHCP snooping stops rogue DHCP servers, such as a home router plugged into a desk port or an attacker handing out their own gateway.
- Dynamic ARP Inspection (DAI) stops ARP spoofing, where an attacker claims to be the gateway so traffic flows through them.
- IP Source Guard stops a host using an IP address it was not given.
Step 1: DHCP snooping
ip dhcp snooping
ip dhcp snooping vlan 10,20,30
no ip dhcp snooping information option
!
interface TenGigabitEthernet1/1/1
description Uplink to distribution (DHCP comes from here)
ip dhcp snooping trust
!
interface range GigabitEthernet1/0/1 - 48
ip dhcp snooping limit rate 15
- All ports are untrusted by default: DHCP replies (Offer, Ack) arriving on them are dropped. Trust only the uplinks towards real DHCP servers or relays.
- Option 82: by default the switch inserts option 82 into requests. Some DHCP servers or relays reject requests with option 82 from an access switch, which makes DHCP fail for everyone. If your server does not use it, disable insertion as shown.
- Rate limiting stops a host flooding DHCP requests to exhaust the pool. A port exceeding the rate goes err-disabled.
Check with show ip dhcp snooping and show ip dhcp snooping binding. Wait until bindings appear for your clients before going further.
Step 2: Dynamic ARP Inspection
ip arp inspection vlan 10,20,30
ip arp inspection validate src-mac dst-mac ip
interface TenGigabitEthernet1/1/1
ip arp inspection trust
On untrusted ports, every ARP message is checked against the snooping binding table. A host can only claim the IP-to-MAC pair it was given by DHCP. Devices with static IPs (printers, servers) have no binding, so DAI drops their ARP. Add them with an ARP ACL:
arp access-list STATIC-HOSTS
permit ip host 10.10.20.10 mac host 0011.2233.4455
ip arp inspection filter STATIC-HOSTS vlan 20
DAI also rate-limits ARP on untrusted ports (15 packets per second by default), which can be too low for busy ports such as those connecting access points; raise it there.
Step 3: IP Source Guard
interface range GigabitEthernet1/0/1 - 48
ip verify source
The port then only accepts traffic from the IP addresses in the binding table for that port (add port-security to check the MAC as well). Use it on user access ports, not on uplinks or ports with many devices behind them.
Rolling out safely
- Enable snooping first on a few VLANs and check bindings for a day or two.
- List every static-IP device and decide: DHCP reservation (preferred) or ARP ACL.
- Use DAI's logging (
show ip arp inspection log) to catch problems before users do. - Save the binding table to flash (
ip dhcp snooping database flash:dhcp-snoop.db) so it survives a reboot; otherwise clients with long leases have no binding after a reload until they renew.
Real-world example: the classroom gateway
A student connected a laptop running ARP spoofing software in a computer lab, redirecting classmates' traffic through it. With DAI enabled on the lab VLAN, the switch dropped the forged ARP replies and logged the port, and nobody else was affected. Before DAI, the same test in an earlier audit had captured several staff passwords.
Practice
Which ports should be trusted for DHCP snooping?
Why might DAI break printers with static IP addresses?
Why save the DHCP snooping database to flash?
Key takeaways
- DHCP snooping blocks rogue DHCP servers and builds the binding table.
- DAI uses the table to drop forged ARP; add ARP ACLs for static devices.
- IP Source Guard blocks traffic from addresses a port was not given.
- Roll out in stages, handle option 82 and save the binding database.
Original content written by Mohamed Fayas for FM TecHub. © 2026 FM TecHub. You're welcome to share a link to this page; please don't copy the text elsewhere without permission.