Pcornel
Networking · Switching › Layer 2 Security

Dynamic ARP Inspection

Cheat sheet · https://pcornel.dk/topic.php?topic=619

Back to the Topic

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 log
show 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

BoundaryTypical inputHealthy evidenceSuspicious evidence
VLAN enabledDAI configurationintended VLAN inspectedaffected VLAN absent
Interface trusttopology policyaccess untrusted, intended uplink trustedclient edge trusted or server path design mismatch
Binding/source of truthDHCP Snooping / supported static designIP/MAC/VLAN/interface matchesmissing/mismatched binding
Optional validationsrc-mac / dst-mac / IP checksfields internally consistentmalformed/inconsistent ARP
StatisticsDAI countersexpected forwarding, no unexplained dropsgrowing 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

Confirmation

Confirm action

Continue?