Updated October 2026: I re-tested DAI and IPSG in my home lab on IOSv-L2 and IOL-L2. DAI enforcement, the static-host blackout, and the ARP ACL fix all reproduced. The old "virtual IOL-L2 never enforces" claim does not hold on 17.18.2. Details are in the new section before Troubleshooting.
ARP is the most trusting protocol in the building. A host asks "who has 10.10.10.1?" and believes whatever answer comes back, with no verification of any kind. So an attacker replies "I do" - claiming to be your default gateway - and every host on the subnet starts sending its off-net traffic to the attacker. That is ARP spoofing, and it is the basis of most Layer 2 man-in-the-middle attacks.
Dynamic ARP Inspection and IP Source Guard are the two features that fix ARP's and IP's respective trust problems, and both are built on the DHCP snooping binding table. This article covers both, with real output from my home lab and an honest note on which virtual images actually enforce. For the fundamentals, start at the complete VLAN and switching guide. This builds directly on DHCP snooping, so read that first. The config and output snippets in the first half of this article use example values (VLAN 10, 10.10.10.0/24, Ethernet0/x, 5254… MACs). The values I actually captured in my October 2026 re-test (VLAN 144/145, 10.144.0.0/24 and 10.145.0.0/24) are in the re-test section.
Dynamic ARP Inspection
DAI intercepts every ARP packet on an untrusted port and checks it against the snooping binding table. The question it asks is simple: does this ARP packet claim an IP-to-MAC mapping that matches a binding for that VLAN?
- A host sends an ARP reply saying "10.10.10.10 is at 5254.004e.11c0" (example values), and that IP-to-MAC pair matches a binding in the VLAN. DAI permits it.
- An attacker sends "10.10.10.1 (the gateway) is at my-MAC", and no binding matches that IP-to-MAC pair. DAI drops it and logs the violation.
The attacker cannot forge a binding, because bindings are created only by real DHCP transactions (or a deliberate static entry). So the gateway-impersonation attack simply fails.
That is the theory, and it is worth watching happen. The forged ARP reply DAI refuses takes about six lines of Scapy to build, and there is a full write-up of the attack this is stopping, alongside the switch log that names the attacker's real MAC as it drops the frame.
Configuration
! Enable per VLAN
ip arp inspection vlan 10
! Trust the uplinks and inter-switch trunks (same ports as DHCP snooping trust)
interface Ethernet0/0
ip arp inspection trust
interface Ethernet0/1
ip arp inspection trust
! Rate-limit ARP on untrusted access ports (ARP flooding defence)
interface Ethernet0/2
ip arp inspection limit rate 15The trust model mirrors DHCP snooping exactly: uplinks and inter-switch trunks trusted, host access ports untrusted. This makes sense - a legitimate ARP from another switch has already been validated by that switch, so you do not re-inspect it.
The rate limit matters because DAI punts ARP to the CPU for inspection. An attacker flooding ARP could turn DAI itself into a denial of service by overwhelming the CPU. The rate limit caps that, and a port exceeding it is err-disabled. Cisco documents 15 pps as the default on untrusted ports, but I did not test the default: in my re-test I set ip arp inspection limit rate 15 explicitly.
Operational state
SW3#show ip arp inspection vlan 10
Vlan Configuration Operation ACL Match Static ACL
10 Enabled Active
Vlan ACL Logging DHCP Logging Probe Logging
10 Deny Deny OffEnabled / Active on VLAN 10, using the DHCP binding table (DHCP Logging: Deny means it logs denied packets). This is DAI operational and watching.
IP Source Guard
Where DAI protects ARP, IP Source Guard (IPSG) protects the IP source address itself. It applies a dynamic port ACL that permits only the IP address (and optionally MAC) bound to that port in the snooping table. Any packet with a different source IP is dropped.
This stops a host from spoofing its source IP - claiming to be another machine to bypass an ACL, evade logging, or launch a spoofed-source attack.
interface Ethernet0/2
ip verify sourceAdd ip verify source port-security to also enforce the source MAC, tying the port down to exactly one (IP, MAC) pair. I did not test that MAC mode in my re-test.
SW3#show ip verify source
Interface Filter-type Filter-mode IP-address Mac-address Vlan
Et0/2 ip active 10.10.10.10 10In that example, the only source IP permitted on Et0/2 is 10.10.10.10, the address bound to that port, and packets from any other source IP should be dropped. In my re-test that held on IOL-L2 17.18.2 only with a static source binding: 8 of 8 valid packets reached the receiver and 0 of 8 spoofed ones did. On IOSv-L2, IPSG blocked valid traffic too, even with a static binding. I did not test what happens when a lease expires or a host moves, so check show ip verify source after either event instead of assuming the filter follows it.
The complete stack, in order
The dependency is strict and one-directional. If DHCP snooping is broken, DAI and IPSG are broken, because they have no table to consult. When DAI blocks a legitimate host, the usual fault is a missing binding, not DAI itself. Debug the binding table first.
Handling non-DHCP hosts
Not every device uses DHCP. Servers, printers, and network gear often have static IPs, and they have no snooping binding - so DAI would drop their ARP and IPSG would drop their traffic. Two ways to accommodate them:
A static source binding. Static entries show up in show ip source binding, not in show ip dhcp snooping binding. This is the exact line I used on IOL-L2:
ip source binding 0200.0045.0010 vlan 145 10.145.0.100 interface Ethernet0/2show ip source binding
MacAddress IpAddress Lease(sec) Type VLAN Interface
02:00:00:45:00:10 10.145.0.100 infinite static 145 Ethernet0/2
Total number of bindings: 1
show ip dhcp snooping binding
MacAddress IpAddress Lease(sec) Type VLAN Interface
Total number of bindings: 0An ARP ACL for DAI, which permits specific IP-to-MAC pairs regardless of the binding table (example values; the real ACL from my run is in the re-test section):
arp access-list STATIC-HOSTS
permit ip host 10.10.10.50 mac host 0011.2233.4455
!
ip arp inspection filter STATIC-HOSTS vlan 10Every static host needs one of these, or it goes dark the moment you enable DAI. Inventory your static devices before you turn DAI on, not after the help desk lights up.
Platform note: honest reporting
DAI and IPSG are meant to be forwarding-plane features. An earlier version of this article said virtual IOL-L2 reported Enabled / Active with zero drop counters and no live enforcement. That needs a correction. In my October 2026 re-test, IOL-L2 17.18.2 dropped forged ARPs and filtered IPSG when the host had a static source binding. IOSv-L2 also enforced DAI with real %SW_DAI syslog. What still failed on IOL-L2 was dynamic DHCP-snooping learning from a successful lease. The historical zero-counter capture below is left as that older observation:
SW3#show ip arp inspection statistics vlan 10
Vlan Forwarded Dropped DHCP Drops ACL Drops
10 0 0 0 0Zero in that older capture, but that is not what IOL-L2 17.18.2 did in my re-test. By the end of the IOL-L2 run it had counted 36 DHCP drops on VLAN 145 and logged the forged gateway replies, and with a static source binding for the client, none of the 8 forged replies reached it. IOSv-L2 dropped and logged too. Here is a real line from the IOL-L2 run, a forged reply claiming 10.145.0.1 arriving on the attacker port Et0/3:
*Oct 21 17:51:25.498: %SW_DAI-4-DHCP_SNOOPING_DENY: 2 Invalid ARPs (Res) on Et0/3, vlan 145.([0200.0045.0066/10.145.0.1/0200.0045.0010/10.145.0.100/17:51:25 UTC Wed Oct 21 2026])We still refuse to invent counters. The re-test section below has the real drops, syslog and packet counts from Containerlab.
Re-tested in my home lab (October 2026)
I rebuilt this stack in my home lab in Containerlab on VLAN 144 (10.144.0.0/24). SW1 was IOSv-L2 (L2-20200929), R1 was Cisco IOL 17.18.2 running IOS DHCP, and three Alpine hosts sat on untrusted access ports: a DHCP client at 10.144.0.100, an attacker at 10.144.0.66, and a static server at 10.144.0.50 with no lease. A second IOL-L2 17.18.2 probe on VLAN 145 checked whether that image would enforce.

DAI drops a forged gateway reply
Without DAI, eight low-rate forged ARP replies from the attacker poisoned the client neighbor entry to 02:00:00:44:00:66. With ip arp inspection vlan 144 and the R1 uplink trusted, the same eight forgeries produced DHCP drops and %SW_DAI syslog, and the client kept the real gateway MAC:
10.144.0.1 lladdr 02:00:00:44:00:66 REACHABLE 144 Enabled Active
144 Deny Deny Off
144 4 8 8 0
*Oct 21 17:54:02.296: %SW_DAI-4-DHCP_SNOOPING_DENY: 2 Invalid ARPs (Res) on Gi0/3, vlan 144.([0200.0044.0066/10.144.0.1/0200.0044.0010/10.144.0.100/17:54:02 UTC Wed Oct 21 2026])IOL-L2 on the probe VLAN produced the same class of drops and syslog once the client had a static source binding (its dynamic DHCP-snooping table stayed empty after a successful lease).
Break it: DAI blacks out a static host
With only the DHCP client in the binding table, the static server at 10.144.0.50 had no authorization. Its ARP was dropped on Gi1/0, and client-to-server pings failed both ways:
144 13 20 20 0
*Oct 21 17:54:44.342: %SW_DAI-4-DHCP_SNOOPING_DENY: 1 Invalid ARPs (Res) on Gi1/0, vlan 144.([0200.0044.0050/10.144.0.50/0200.0044.0010/10.144.0.100/17:54:43 UTC Wed Oct 21 2026])An ARP ACL restored the static host without trusting its port. Spoofed gateway replies were still dropped afterward:
permit ip host 10.144.0.50 mac host 0200.0044.0050
ip arp inspection filter STATIC-HOSTS vlan 1444 packets transmitted, 4 received, 0% packet loss, time 3005ms
4 packets transmitted, 4 received, 0% packet loss, time 3004msIPSG: IOL-L2 yes, IOSv-L2 not useful here
On IOL-L2, with ip verify source and a static source binding, eight valid UDP packets sourced from the bound address reached the receiver and zero of eight spoofed-source packets did:
VALID_SEND_COUNT=8 SPOOF_SEND_COUNT=8
...
8 packets captured
8 packets received by filterOn IOSv-L2, show ip verify source showed the correct active address, but the receiver captured zero packets for both the valid and spoofed bursts. Ordinary pings failed too until IPSG was removed. Treat that image as config-complete but not a useful IPSG enforcement proof in this lab.
Gi0/2 ip active 10.144.0.100 144 Two more honesty notes from the same run. DAI accepted four ARP replies that used the real client IP/MAC when they were injected on the attacker port, so do not read DAI as proof of exact ingress-port association on these images. And a 60-reply ARP burst against the 15 pps limit I had configured err-disabled the attacker port (err-disabled arp-inspection). A manual shut/no shut recovered it; I did not test errdisable auto-recovery.
Troubleshooting
- DAI dropping a legitimate host? Check
show ip dhcp snooping bindingfirst, andshow ip source bindingfor static entries. In my experience a missing binding is the usual cause. Static host? It needs a static source binding or an ARP ACL. - IPSG blocking a host? Same - the binding is missing or wrong.
show ip verify sourceshows what IPSG thinks the port is allowed to use. - Port err-disabled by DAI? ARP rate limit exceeded. Either a flood/attack or a legitimate burst. Raise the limit if it is a false positive. In my re-test a manual shut/no shut recovered the port; errdisable auto-recovery is an option I did not test.
- Everything Active but nothing enforced (in a lab)? Retest the image. In my run, IOSv-L2 and IOL-L2 both enforced DAI; IOL-L2 also enforced IPSG with a static source binding. Dynamic DHCP learning on IOL-L2 still failed.
- Static hosts unreachable after enabling DAI? They have no binding. Add ARP ACLs or static source bindings (
ip source binding, listed inshow ip source binding) for every static device before enabling.
Key takeaways
- ARP and IP both trust the sender blindly. DAI fixes ARP spoofing; IPSG fixes IP spoofing.
- Both read the DHCP snooping binding table. Break snooping and you break both. When DAI/IPSG blocks a legitimate host, debug the binding table first.
- DAI trust mirrors snooping trust: uplinks and inter-switch trunks trusted, host ports untrusted. Rate-limit untrusted ARP to protect the CPU.
- IPSG (
ip verify source) installs a per-port filter permitting only the bound source IP. Theport-securityoption also binds the MAC; I did not test that mode. - Static (non-DHCP) hosts have no binding. Give each one a static source binding or an ARP ACL before enabling DAI, or they go dark.
- Image behavior varies: in my re-test, IOL-L2 and IOSv-L2 both enforced DAI with real counters and syslog; IOL-L2 also enforced IPSG with a static source binding, while IOSv-L2 IPSG blocked valid traffic too. We report what each image actually did.
Next: switch administration - SDM templates, errdisable recovery, and CAM aging. The full cluster index lives on the VLAN and switching pillar, and the security features cross-link to infrastructure security.