Dynamic ARP Inspection (DAI) is a Layer 2 security feature that helps protect switched Ethernet networks against ARP spoofing, ARP cache poisoning, and certain man-in-the-middle attacks.
When attackers manipulate Address Resolution Protocol (ARP) messages, they may convince other devices that an unauthorized MAC address belongs to a legitimate IP address. This can redirect traffic, disrupt connectivity, or allow an attacker to intercept communications.
Dynamic ARP Inspection reduces this risk by validating ARP packets received on untrusted switch interfaces. On Cisco switches, it commonly works alongside DHCP Snooping to verify that ARP sender information matches a known IP-to-MAC binding.
However, configuring DAI without understanding its dependencies can create serious connectivity problems. Static-IP hosts may become unreachable, uplinks may drop legitimate ARP packets, and aggressive ARP rate limits can place access ports into an error-disabled state.
This guide explains how Dynamic ARP Inspection works, how to configure it on Cisco Catalyst switches, and how to troubleshoot real-world deployment failures.
Dynamic ARP Inspection is a security mechanism that checks whether incoming ARP requests and replies contain legitimate address information.
The feature intercepts ARP traffic arriving on untrusted switch ports, evaluates that traffic against approved bindings or ARP access control lists (ACLs), and drops packets that fail validation.
DAI is designed for Layer 2 networks where attackers or unauthorized devices could attempt to impersonate other hosts by advertising false IP-to-MAC mappings.
For background on access switches, VLANs, and Layer 2 forwarding, see Routers, Switches and Network Devices Explained.
ARP allows an IPv4 device to discover the MAC address associated with another IPv4 address on the same local network.
For example, suppose a workstation needs to send traffic to its default gateway.
The workstation knows the gateway’s IP address but may not yet know its MAC address. It sends an ARP request asking which device owns that IP address.
The gateway responds with its MAC address, allowing the workstation to send Ethernet frames to the correct destination.
The weakness is that traditional ARP has no built-in authentication mechanism.
A malicious device may send deceptive ARP messages claiming that its MAC address belongs to the gateway or another host.
If a victim accepts the false mapping, traffic may be redirected toward the attacker.
Properly deployed DAI can help block several attacks and misconfigurations:
DAI is not a complete replacement for network segmentation, endpoint protection, encryption, or switch-port security.
It also does not validate ARP packets arriving on interfaces explicitly configured as trusted.
The standard Cisco deployment model uses DHCP Snooping to construct a database of legitimate endpoint bindings.
A binding identifies information such as the assigned IPv4 address, client MAC address, VLAN, and switch interface.
When a device sends an ARP packet through an untrusted port, the switch can compare the ARP sender information against those bindings.
Consider this example:
| Device | IP Address | MAC Address | Switch Port |
|---|---|---|---|
| Workstation A | 192.168.10.20 | 00:11:22:33:44:55 | Gi1/0/5 |
| Workstation B | 192.168.10.30 | 00:11:22:33:44:66 | Gi1/0/6 |
| Default gateway | 192.168.10.1 | 00:aa:bb:cc:dd | Uplink |
If Workstation A sends an ARP packet claiming that 192.168.10.20 belongs to 00:11:22:33:44:55, the packet is consistent with its binding.
If another device on an untrusted port sends an ARP packet claiming ownership of 192.168.10.20 but uses an unauthorized MAC address, the switch can reject it.
For ARP traffic arriving on a protected, untrusted port, the process is broadly:
Trusted interfaces bypass normal DAI inspection.
This behavior makes the selection of trusted ports one of the most important configuration decisions.
Cisco documents the underlying forwarding and validation behavior in its Dynamic ARP Inspection configuration guide.
DAI and DHCP Snooping address different security problems, but they are frequently deployed together.
DHCP Snooping protects the DHCP assignment process and maintains trusted binding information.
DAI validates ARP messages using trusted information such as those DHCP Snooping bindings.
| Feature | DHCP Snooping | Dynamic ARP Inspection |
|---|---|---|
| Primary purpose | Prevent unauthorized DHCP server responses | Prevent invalid ARP address claims |
| Main traffic inspected | DHCP | ARP |
| Binding database | Creates and maintains dynamic bindings | Can use those bindings for validation |
| Common deployment point | Access switches | Access switches |
| Typical trusted interfaces | Approved DHCP-server-facing paths | Carefully selected network-facing paths |
| Common failure | DHCP address assignment fails | ARP resolution and IPv4 connectivity fail |
Deploying DAI without an appropriate binding or ACL policy can cause valid ARP traffic to be dropped.
Before continuing, review DHCP Snooping Explained: Trusted Ports & Troubleshooting, which covers DHCP Snooping configuration, binding tables, and trusted interfaces in detail.
The following example uses a Cisco Catalyst access switch with a supported IOS or IOS XE software release.
The lab contains:
Example addressing:
| Component | Address |
|---|---|
| VLAN 10 subnet | 192.168.10.0/24 |
| VLAN 10 gateway | 192.168.10.1 |
| VLAN 20 subnet | 192.168.20.0/24 |
| VLAN 20 gateway | 192.168.20.1 |
Important: The examples below are intended for a lab or a reviewed maintenance change. Cisco command support and defaults vary across Catalyst families, software releases, switch stacks, and other Cisco platforms. Verify the configuration against documentation for your exact hardware and release before production deployment.
DAI commonly depends on DHCP Snooping bindings for dynamically addressed workstations.
Start by enabling DHCP Snooping globally and on the required VLANs.
enable
configure terminal
ip dhcp snooping
ip dhcp snooping vlan 10,20 Next, identify the interface through which authorized DHCP server responses are expected.
For this topology, that is the uplink.
interface GigabitEthernet1/0/48
description Uplink-to-Distribution
ip dhcp snooping trust
exit Host-facing interfaces should normally remain untrusted.
Example:
interface GigabitEthernet1/0/5
description Workstation-VLAN10
switchport mode access
switchport access vlan 10
exit
interface GigabitEthernet1/0/6
description Workstation-VLAN20
switchport mode access
switchport access vlan 20
exit Do not blindly trust all trunk ports. Trust should reflect the actual network topology and the security boundary.
Run:
show ip dhcp snooping
show ip dhcp snooping binding You should see DHCP Snooping enabled on the intended VLANs and, after clients receive valid DHCP leases, entries corresponding to those clients.
A representative binding could look like:
MacAddress IpAddress Lease(sec) Type VLAN Interface
------------------ --------------- ---------- ------------- ---- ---------
00:11:22:33:44:55 192.168.10.20 72000 dhcp-snooping 10 Gi1/0/5 The output format varies by switch and software release.
If the binding table is empty, investigate DHCP Snooping first. Enabling DAI on an active user VLAN before the expected bindings exist can interrupt connectivity.
Also review DHCP relay, Option 82 behavior, binding persistence, and switch restart behavior where applicable.
Once you have verified valid bindings, enable DAI on the VLANs to be protected:
configure terminal
ip arp inspection vlan 10,20
end This enables inspection for the selected VLANs on supported Cisco Catalyst platforms.
DAI operates on the VLANs you specify; it does not automatically protect every VLAN on the switch.
show ip arp inspection
show ip arp inspection vlan 10
show ip arp inspection vlan 20 Verify that the intended VLANs are listed and that the trust configuration matches your design.
Trust states determine which ingress ARP packets undergo validation.
An interface configured as trusted bypasses normal DAI inspection, so an incorrectly trusted user port can undermine the security feature.
In our topology, the distribution uplink is an approved trust boundary.
configure terminal
interface GigabitEthernet1/0/48
description Uplink-to-Distribution
ip arp inspection trust
exit
end Host-facing ports remain untrusted by default on the relevant Cisco platforms. Where needed, explicitly return an interface to the untrusted state:
configure terminal
interface GigabitEthernet1/0/5
no ip arp inspection trust
exit
end | Interface type | Typical DAI treatment | Reason |
|---|---|---|
| Workstation access port | Untrusted | Validate endpoint ARP claims |
| Printer access port | Untrusted, with static-binding planning | Prevent unauthorized claims |
| Distribution uplink | Trusted only when justified | Preserve traffic across a verified trust boundary |
| Unknown downstream switch | Do not trust automatically | May introduce unchecked ARP traffic |
| Hypervisor-facing port | Depends on workload and topology | Multiple VMs or virtual interfaces may require special handling |
Security warning: A DAI-trusted interface is not simply a port that connects to another switch. It is an interface on which the network design explicitly allows ARP traffic to bypass this switch’s DAI checks.
In multi-switch networks, DAI bindings may not be available on every switch. A trust decision that avoids false drops can also weaken protection. Validate the design end to end rather than applying uplink trust settings without review.
DAI supports optional checks that examine consistency between Ethernet headers and ARP fields, as well as certain invalid IP address values.
On supported Catalyst systems:
configure terminal
ip arp inspection validate src-mac dst-mac ip
end The options provide these checks:
src-mac: Compares the source MAC in the Ethernet header against the sender MAC address inside the ARP packet.
dst-mac: Performs destination MAC consistency checks on applicable ARP replies.
ip: Rejects certain invalid or unexpected IP address values in ARP packets.
These checks can provide additional protection, but they may also reject malformed or unusual packets from legitimate equipment.
Test them against devices such as firewalls, virtual appliances, embedded systems, and specialized network hardware.
Configuration detail: On supported Cisco platforms, issuing another ip arp inspection validate command replaces the previous selection of validation options. Include all required keywords in the same command.
A common deployment mistake is assuming that every legitimate endpoint will appear in the DHCP Snooping binding database.
Statically configured devices, such as printers, servers, firewalls, and management appliances, may not have DHCP-derived bindings.
If those devices send ARP traffic through untrusted ports and no valid alternative policy exists, DAI may drop the packets.
One solution on supported Cisco platforms is a manually configured ARP ACL.
Suppose a printer has:
IP address: 192.168.10.50
MAC address: 00aa.bbcc.ddee
VLAN: 10 Create an ARP ACL:
configure terminal
arp access-list VLAN10-STATIC
permit ip host 192.168.10.50 mac host 00aa.bbcc.ddee
exit
ip arp inspection filter VLAN10-STATIC vlan 10
end This permits the specified IP/MAC mapping in the ARP ACL.
However, do not assume that an ACL containing only the printer entry automatically permits every DHCP client.
On Cisco Catalyst platforms supporting this syntax, the optional static keyword changes fallback behavior. An ACL applied without static can permit explicitly matched mappings while allowing unmatched packets to be checked against DHCP Snooping bindings. An ACL applied with static can cause unmatched packets to be dropped instead of falling back to the binding database.
Verify this behavior for your software release before applying the ACL.
show arp access-list
show ip arp inspection
show ip arp inspection statistics Test the printer’s ability to communicate with its gateway and nearby hosts.
Confirm that dynamically addressed clients on the same VLAN still function correctly.
Some platforms support configuring static source bindings that may participate in relevant security features.
Support and interaction with DAI depend on the platform and release. Do not treat every ip source binding implementation as equivalent to a DAI ARP ACL.
Choose the approach explicitly documented for your switch.
Dynamic ARP Inspection can rate-limit ARP traffic arriving on interfaces.
This helps prevent excessive ARP traffic from overwhelming switch resources.
On many Catalyst platforms, the commonly documented default limit is 15 packets per second for untrusted ports, while trusted ports may have no limit by default.
These defaults must be checked against the actual switch model and release.
configure terminal
interface GigabitEthernet1/0/5
ip arp inspection limit rate 30
exit
end The example sets the rate limit to 30 ARP packets per second.
This is an illustrative value, not a universal production recommendation. Select the rate based on observed legitimate bursts, endpoint density, and the switch’s supported range.
On supported Cisco switches, an ARP rate-limit violation can place the interface into the error-disabled state.
This differs from a simple invalid ARP binding: an individual invalid ARP packet may be dropped while the port remains operational, whereas exceeding the configured rate limit may disable the port.
Verify the condition with:
show interfaces status err-disabled
show ip arp inspection interfaces
show logging Automatic recovery may be available for DAI rate-limit violations.
For example:
configure terminal
errdisable recovery cause arp-inspection
errdisable recovery interval 300
end This example configures recovery handling using a 300-second interval.
Before enabling it in production, confirm that your hardware and software support the commands and understand whether the original problem could recur.
Automatic recovery does not fix a broadcast storm, an abnormal endpoint, or an unsuitable ARP rate limit.
A recurring violation should be investigated rather than hidden by repeatedly re-enabling the port.
After enabling DAI, use the following commands to verify its operation.
| Command | Purpose |
|---|---|
show ip arp inspection | Display DAI status and configured VLANs |
show ip arp inspection interfaces | Inspect interface trust and rate-limit settings |
show ip arp inspection statistics | Review ARP forwarding and drop counters |
show ip dhcp snooping | Confirm DHCP Snooping status |
show ip dhcp snooping binding | Review dynamic address bindings |
show arp access-list | Examine ARP ACL definitions |
show interfaces status err-disabled | Identify disabled interfaces |
show logging | Look for DAI and related interface events |
Not all commands or output fields are identical across Cisco products. For example, a Catalyst IOS XE configuration differs from certain Nexus NX-OS or service-provider platforms.
The current Cisco Dynamic ARP Inspection guide is the appropriate starting point for supported Catalyst families.
Symptoms:
Possible causes:
Troubleshooting workflow:
Start by inspecting the binding database:
show ip dhcp snooping binding Then inspect DAI statistics:
show ip arp inspection statistics Check whether affected hosts have the expected IP, MAC, VLAN, and interface binding.
If the host is statically configured, confirm its ARP ACL policy.
For a DHCP client whose binding is missing, investigate DHCP Snooping configuration before changing DAI trust states.
Do not globally mark access ports as trusted simply to restore connectivity.
Not every dropped ARP packet represents an attacker.
A drop may indicate a legitimate device whose address information is absent or inconsistent.
Common scenarios include:
Review:
show ip arp inspection statistics
show ip dhcp snooping binding
show arp access-list Compare the switch’s expected binding with the host’s actual configuration.
If the discrepancy is legitimate, update the underlying binding or approved ACL policy instead of bypassing inspection.
Symptoms:
Check:
show interfaces status err-disabled
show ip arp inspection interfaces
show logging Determine whether the device generated an unusual burst of ARP traffic.
Possible causes include:
Increasing the limit without investigating the source can conceal a real problem.
If a temporary recovery is necessary, correct the underlying condition first and follow the platform’s documented interface-recovery procedure.
Check whether DAI and DHCP Snooping are enabled consistently for the affected VLAN.
show ip arp inspection
show ip dhcp snooping Then compare bindings across VLANs:
show ip dhcp snooping binding Confirm that access interfaces belong to the intended VLAN and that trunk links allow the required VLANs.
For a deeper explanation of tagged and untagged traffic, see VLAN Explained: Access and Trunk Ports.
DAI can become more complex when traffic passes through multiple switches.
A downstream switch may inspect traffic for which it has no relevant local DHCP Snooping binding.
Conversely, configuring every inter-switch link as trusted can create a path for unchecked ARP traffic.
Review the trust boundaries, binding visibility, VLAN topology, and any ARP ACL requirements across the entire switching path.
The correct design depends on where DHCP Snooping is performed and where untrusted endpoint traffic enters the network.
Inspect whether the affected static host has an explicitly permitted binding.
Verify the ARP ACL IP and MAC values carefully.
A small formatting or addressing mistake can cause legitimate ARP traffic to fail validation.
For important infrastructure devices, test access from multiple VLANs and document the approved address mappings.
Cisco access-layer security includes several features with different responsibilities.
| Feature | Main purpose |
|---|---|
| Dynamic ARP Inspection | Validate ARP address claims |
| DHCP Snooping | Control DHCP traffic and create bindings |
| IP Source Guard | Restrict unauthorized source IPv4 traffic on protected interfaces |
| Port Security | Restrict or learn permitted MAC addresses |
| BPDU Guard | Protect edge ports from unexpected BPDUs |
| Root Guard | Prevent unauthorized changes to the intended STP root placement |
These controls are complementary rather than interchangeable.
For example, BPDU Guard does not validate ARP packets, and DAI does not protect against unexpected spanning-tree BPDUs.
To understand those differences, read BPDU Guard vs Root Guard: Cisco Configuration & Troubleshooting.
Identify printers, servers, gateways, security appliances, industrial systems, and other endpoints that may not have DHCP Snooping bindings.
Prepare their permitted address mappings before enabling DAI.
Confirm that dynamic bindings are present and accurate.
If the switch does not know the legitimate address relationships, DAI may reject legitimate ARP packets.
Document which interfaces must be trusted and why.
Avoid trusting host-facing ports as a workaround for missing bindings.
Begin with a small, representative VLAN rather than immediately enabling DAI throughout the network.
Test dynamic clients, static devices, default-gateway communication, and inter-VLAN access.
After each deployment phase, inspect DAI statistics and switch logs.
An unexpected increase in ARP drops should trigger investigation.
Avoid assuming that the documented default rate will work for every access port.
Virtualized hosts and specialized equipment may generate different ARP patterns from ordinary workstations.
Before enabling DAI in production, save the current configuration and record the expected behavior.
On supported Catalyst platforms, a targeted rollback may use:
configure terminal
no ip arp inspection vlan 10,20
end This disables DAI for the specified VLANs. It should be used only as part of an authorized change and does not undo every related DHCP Snooping, ARP ACL, or interface setting.
A rollback plan should identify exactly which changes need reversal and how connectivity will be verified afterward.
Dynamic ARP Inspection is a Layer 2 security feature that validates ARP packets received on untrusted switch interfaces. It helps prevent unauthorized devices from advertising false IP-to-MAC address mappings.
DAI commonly uses the DHCP Snooping binding database to validate dynamically addressed clients. On supported Cisco platforms, ARP ACLs can provide validation information for static-IP devices. The exact requirements depend on the hardware and software implementation.
Trusted ports bypass normal DAI validation checks. ARP packets arriving on untrusted ports must satisfy the applicable validation policy before being forwarded.
Typical causes include missing DHCP Snooping bindings, static hosts without approved ARP ACL entries, incorrect trust boundaries, and mismatches between observed and expected IP-to-MAC address information.
Many Cisco Catalyst platforms document a default of 15 ARP packets per second for untrusted interfaces and no limit on trusted interfaces. Verify the defaults for the specific model and software release.
No. DAI can mitigate certain attacks involving false ARP address claims on protected untrusted ports. It does not prevent every interception technique, and trusted interfaces bypass its normal inspection checks.
No. DAI validates ARP traffic, while IP Source Guard restricts unauthorized source IPv4 traffic on protected interfaces. Both may use DHCP Snooping binding information, but they enforce different controls.
Dynamic ARP Inspection is an effective defense against ARP spoofing when it is deployed with accurate binding information, carefully defined trust boundaries, and appropriate operational monitoring.
The most important part of a successful Cisco DAI deployment is not simply enabling ip arp inspection vlan. It is ensuring that legitimate hosts can be validated, static-IP devices are accounted for, and interface rate limits do not disrupt normal traffic.
Start with a verified DHCP Snooping configuration, enable DAI on a controlled VLAN, inspect the results, and expand protection gradually.
For the broader access-layer security workflow, continue with DHCP Snooping configuration and troubleshooting and BPDU Guard vs Root Guard.
Introduction Border Gateway Protocol (BGP) is the routing protocol used to exchange network reachability information…
Introduction A Linux server can experience connection failures even when its network interface is working…
Introduction TCP retransmissions are an important indicator of network reliability and performance. When a Linux…
Open Shortest Path First (OSPF) is a link-state routing protocol widely used in enterprise networks…
Group Policy is one of the most important management features in Windows Server Active Directory…
Windows DNS servers play an essential role in Active Directory environments, allowing computers, servers, applications,…