Octet

How does Dynamic ARP Inspection stop ARP spoofing?

Show the answer

Say this first

DAI intercepts every ARP request and reply arriving on untrusted ports in the VLANs where it is enabled, and checks the sender MAC and IP against the DHCP snooping binding table and any static ARP ACLs. If a host on Gi1/0/7 claims the gateway's IP and that pairing is not in the table for that port, the ARP is dropped and logged. Uplinks are set as trusted so ARPs from the gateway and other switches pass. Untrusted ports are limited to 15 ARP packets per second by default; going over err-disables the port.

Go deeper

Configuration

Cisco IOS
ip arp inspection vlan 10
ip arp inspection validate src-mac dst-mac ip
!
arp access-list STATIC-HOSTS
 permit ip host 10.10.10.5 mac host 0050.5689.0005
ip arp inspection filter STATIC-HOSTS vlan 10
!
interface GigabitEthernet1/0/48
 ip arp inspection trust

Extra validation

  • src-mac: the Ethernet source MAC must equal the sender MAC inside the ARP packet.
  • dst-mac: in replies, the Ethernet destination must equal the target MAC inside the ARP packet.
  • ip: rejects nonsense addresses such as 0.0.0.0, 255.255.255.255 and multicast. Give all three in one command. Each ip arp inspection validate line replaces the previous one.

What a drop looks like

Output
%SW_DAI-4-DHCP_SNOOPING_DENY: 1 Invalid ARPs (Res) on Gi1/0/7, vlan 10.([0050.5689.0bad/10.10.10.1/0050.5689.1a2b/10.10.10.51/09:12:44 UTC Tue Nov 10 2026])

Reading the bracket: sender MAC, sender IP, target MAC, target IP, time. A host at 0050.5689.0bad told 10.10.10.51 that it owns the gateway address 10.10.10.1.

Static ARP ACLs

Hosts with fixed addresses have no DHCP binding. An ARP ACL lists their IP and MAC. With the static keyword on the filter, only the ACL is used and the binding table is not consulted for that VLAN.

Traps

  • Enabling DAI before the binding table is populated. Hosts that got their lease earlier are not in the table yet and are cut off.
  • Forgetting to trust the uplink, which drops the gateway's own ARP replies.
How did you do?Book 3.3 Internet (IP)