Dynamic ARP Inspection
Cheat sheet · https://pcornel.dk/topic.php?topic=619
Answer
Dynamic ARP Inspection (DAI) checks every ARP packet on untrusted ports against the DHCP snooping binding table (or ARP ACLs) and drops ARP packets whose IP-to-MAC pairing is not legitimate, stopping ARP spoofing.
Remember
Enable with ip arp inspection vlan <list>; mark uplinks with ip arp inspection trust. Hosts with static addresses have no binding and are dropped — add an ARP ACL or static binding first. DAI rate-limits ARP on untrusted ports (15 pps by default) and err-disables ports that exceed it.
First checks
show ip arp inspection— VLANs, trust state and counters.show ip arp inspection statistics vlan <id>— forwarded, dropped and DHCP/ACL drops.show ip arp inspection interfaces— trust state and rate limit per port.show ip dhcp snooping binding— the bindings DAI checks against.show logging | include DAI— dropped packets with sender IP and MAC.
Commands
show ip arp inspection [vlan <vlan-id>]- Display Dynamic ARP Inspection configuration/statistics.
ip arp inspection vlan <vlan-list>- Enable Dynamic ARP Inspection for selected VLANs.
ip arp inspection trust- Trust ARP packets on this interface (uplinks); Dynamic ARP Inspection skips them.
ip arp inspection validate src-mac- Make DAI drop ARP packets whose sender MAC does not match the Ethernet source.
ip arp inspection validate dst-mac- Make DAI drop ARP packets whose destination MAC does not match the Ethernet header.
ip arp inspection validate ip- Make DAI drop ARP packets with invalid or unexpected IP addresses.
show ip arp inspection- Display Dynamic ARP Inspection status per VLAN.
show ip arp inspection interfaces- Display DAI trust state and rate limits per interface.
show ip arp inspection statistics- Display DAI forwarded and dropped packet counts.
show ip arp inspection logshow ip dhcp snooping binding
Verify in this order
DHCP snooping bindings in place → DAI enabled per VLAN → uplinks trusted → ARP on untrusted ports compared with bindings → valid ARP forwarded, spoofed ARP dropped and logged
Where it usually breaks
inspection absent/bypassed → missing or mismatched binding/static policy → validation or rate failure → downstream neighbor/frame path
DAI validation map
| Boundary | Typical input | Healthy evidence | Suspicious evidence |
|---|---|---|---|
| VLAN enabled | DAI configuration | intended VLAN inspected | affected VLAN absent |
| Interface trust | topology policy | access untrusted, intended uplink trusted | client edge trusted or server path design mismatch |
| Binding/source of truth | DHCP Snooping / supported static design | IP/MAC/VLAN/interface matches | missing/mismatched binding |
| Optional validation | src-mac / dst-mac / IP checks | fields internally consistent | malformed/inconsistent ARP |
| Statistics | DAI counters | expected forwarding, no unexplained drops | growing validation/drop counters |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=619