Dynamic ARP inspection

On this page 7

Dynamic ARP inspection (DAI) is a switch security feature that intercepts ARP packets on untrusted ports and drops any whose IP-to-MAC mapping does not match a trusted binding table. In network security, it is the standard defense against ARP spoofing and ARP cache poisoning, the attacks that let a host on the same VLAN impersonate a gateway and intercept traffic.

DAI closes a gap built into the Address Resolution Protocol itself. ARP has no authentication: any host can announce that an IP address belongs to its MAC address, and neighbors accept the claim. By enforcing bindings at the access layer, the switch turns ARP from an honor system into a verified exchange.

How Dynamic ARP inspection validates ARP traffic

DAI works by redirecting ARP requests and replies to the switch CPU on every untrusted port in the protected VLANs, comparing the sender IP and sender MAC against a list of legitimate pairs, and forwarding only packets that match. Packets that fail the check are dropped and logged, so a forged reply never reaches the victim’s ARP cache.

The list of legitimate pairs normally comes from the DHCP snooping binding table, which the switch builds by watching DHCP exchanges. Each entry records the leased IP address, the client MAC address, the VLAN, the switch port and the lease time. For hosts with static IP addresses, administrators define ARP access control lists that DAI consults in addition to, or instead of, the snooping table.

The table below describes the main components that take part in the inspection.

ComponentRoleTypical configuration
DHCP snooping binding tableSupplies dynamic IP-MAC-port bindingsEnabled per VLAN before DAI
ARP access control listDefines bindings for statically addressed hostsServers, printers, gateways
Trusted portBypasses inspection entirelyUplinks and links to other switches
Untrusted portSubject to full inspectionAccess ports facing end hosts
Rate limitCaps ARP packets per second per portOften 15 packets per second by default
Building blocks of Dynamic ARP inspection

Optional additional validation checks compare fields inside the ARP payload with the Ethernet header. The source MAC check rejects packets whose Ethernet source differs from the ARP sender MAC, the destination MAC check applies the same logic to replies, and the IP check discards invalid addresses such as 0.0.0.0, broadcast and multicast.

Attacks that DAI stops and attacks it does not

DAI is effective against attacks that depend on forged ARP messages within a broadcast domain, but it is not a general-purpose intrusion prevention tool. Understanding its scope prevents a false sense of security.

ThreatStopped by DAIExplanation
ARP cache poisoningYesForged sender bindings fail validation
Gateway impersonationYesOnly the true gateway MAC matches the gateway IP
ARP floodingPartlyRate limiting shuts down abusive ports
MAC floodingNoRequires port security instead
Rogue DHCP serverNoRequires DHCP snooping trust settings
IPv6 neighbor spoofingNoIPv6 uses neighbor discovery, not ARP
Threat coverage of Dynamic ARP inspection

Because a man-in-the-middle position on a LAN usually starts with ARP poisoning, DAI removes the most common first step of local interception tools. It does not encrypt anything, so traffic remains readable to anyone with legitimate access to the path; protocols such as TLS or MACsec still provide confidentiality.

DAI among other access-layer protections

DAI is one of a family of first-hop security features that protect the access layer, and it depends on at least one of them to function. Each feature addresses a different identity in the frame: MAC address, IP address or DHCP role.

FeatureWhat it validatesRelationship to DAI
DHCP snoopingDHCP server messages and leasesProvides the binding table DAI uses
IP source guardSource IP of all data trafficUses the same bindings for IP packets
Port securityNumber and identity of MAC addressesComplements DAI against MAC flooding
802.1XIdentity of the connecting device or userAuthenticates before DAI inspects
RA guard and ND inspectionIPv6 router and neighbor messagesIPv6 counterpart to DAI
Related first-hop security features

A typical hardened access switch runs DHCP snooping, DAI and IP source guard together. Snooping learns who received which address, DAI ensures that ARP claims match those leases, and IP source guard ensures that data packets use them. Combined with network segmentation, these controls keep a compromised host from reaching beyond its own identity.

Configuring Dynamic ARP inspection safely

Successful deployment depends on correct trust boundaries and complete bindings. Enabling DAI on a VLAN where bindings are missing immediately breaks connectivity for affected hosts, because their legitimate ARP replies are discarded.

  1. Enable DHCP snooping on the target VLANs and mark uplinks toward legitimate DHCP servers as trusted.
  2. Allow time for the binding table to populate, or force clients to renew leases.
  3. Create ARP ACLs for every statically addressed device, including routers and servers.
  4. Mark switch-to-switch links as trusted ports to avoid inspecting the same packets twice.
  5. Enable DAI per VLAN, starting with a pilot VLAN and watching drop logs.
  6. Tune rate limits on ports serving many hosts, such as links to virtualization hosts.

Persisting the snooping database to flash or a remote server is strongly recommended. Without it, a switch reboot erases all bindings, and clients holding valid leases are blocked until they renew, which can take hours with long lease times.

Common mistakes and operational limits

Most DAI incidents are self-inflicted outages rather than missed attacks. The table below pairs frequent symptoms with their usual causes and fixes.

SymptomLikely causeFix
Static server unreachableNo ARP ACL entryAdd a static binding
Access port in error-disabled stateARP rate limit exceededRaise the limit or find the flooding host
Clients fail after switch rebootBinding table not persistedStore the snooping database externally
Inspection drops between switchesUplink left untrustedTrust inter-switch links
High switch CPU loadLarge ARP volume punted to CPULimit protected VLANs and tune rates
Troubleshooting Dynamic ARP inspection

DAI only protects hosts attached to switches that run it, and only within the VLANs where it is enabled. Wireless clients need equivalent protection on the wireless controller, and IPv6-only segments require neighbor discovery inspection instead.

In plain words

On a local network, devices find each other by shouting questions such as who owns a given address. Any device can shout back a false answer, and the others simply believe it. An attacker can use this trick to pretend to be the router and secretly read traffic.

Dynamic ARP inspection puts the network switch in charge of checking those answers. The switch already knows which device received which address, so it compares every answer with its records and throws away the lies. It works like a receptionist who checks a visitor list before passing on a message.

A real-world example

A regional hospital runs 60 access switches serving workstations, nurse stations and medical carts on separate VLANs. A penetration test shows that a laptop plugged into a waiting-room port can poison the ARP cache of nearby workstations and intercept unencrypted traffic to an older records system.

The network team enables DHCP snooping on all user VLANs, adds ARP ACLs for 140 statically addressed printers and servers, trusts the uplinks and turns on DAI one VLAN at a time over two weeks. During the pilot, logs reveal three printers missing from the ACL, which are added before rollout continues. In the retest, every forged ARP reply is dropped at the access port, and the attack laptop’s port is shut down by the rate limit when it floods ARP packets.