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.
| Component | Role | Typical configuration |
|---|---|---|
| DHCP snooping binding table | Supplies dynamic IP-MAC-port bindings | Enabled per VLAN before DAI |
| ARP access control list | Defines bindings for statically addressed hosts | Servers, printers, gateways |
| Trusted port | Bypasses inspection entirely | Uplinks and links to other switches |
| Untrusted port | Subject to full inspection | Access ports facing end hosts |
| Rate limit | Caps ARP packets per second per port | Often 15 packets per second by default |
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.
| Threat | Stopped by DAI | Explanation |
|---|---|---|
| ARP cache poisoning | Yes | Forged sender bindings fail validation |
| Gateway impersonation | Yes | Only the true gateway MAC matches the gateway IP |
| ARP flooding | Partly | Rate limiting shuts down abusive ports |
| MAC flooding | No | Requires port security instead |
| Rogue DHCP server | No | Requires DHCP snooping trust settings |
| IPv6 neighbor spoofing | No | IPv6 uses neighbor discovery, not ARP |
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.
| Feature | What it validates | Relationship to DAI |
|---|---|---|
| DHCP snooping | DHCP server messages and leases | Provides the binding table DAI uses |
| IP source guard | Source IP of all data traffic | Uses the same bindings for IP packets |
| Port security | Number and identity of MAC addresses | Complements DAI against MAC flooding |
| 802.1X | Identity of the connecting device or user | Authenticates before DAI inspects |
| RA guard and ND inspection | IPv6 router and neighbor messages | IPv6 counterpart to DAI |
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.
- Enable DHCP snooping on the target VLANs and mark uplinks toward legitimate DHCP servers as trusted.
- Allow time for the binding table to populate, or force clients to renew leases.
- Create ARP ACLs for every statically addressed device, including routers and servers.
- Mark switch-to-switch links as trusted ports to avoid inspecting the same packets twice.
- Enable DAI per VLAN, starting with a pilot VLAN and watching drop logs.
- 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.
| Symptom | Likely cause | Fix |
|---|---|---|
| Static server unreachable | No ARP ACL entry | Add a static binding |
| Access port in error-disabled state | ARP rate limit exceeded | Raise the limit or find the flooding host |
| Clients fail after switch reboot | Binding table not persisted | Store the snooping database externally |
| Inspection drops between switches | Uplink left untrusted | Trust inter-switch links |
| High switch CPU load | Large ARP volume punted to CPU | Limit protected VLANs and tune rates |
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.