Dynamic ARP Inspection (DAI) is a network security feature that protects against ARP-based attacks by validating ARP packets against a trusted DHCP snooping binding database. This coverage walks through enabling and configuring DAI on a managed switch, including trust assignments and validation rules.
Dynamic ARP Inspection (DAI)
When many of these protocols were created, they weren't really created with security in mind. The idea when these were created wasn't that there's hackers out there trying to hack your network. So many of these protocols, such as ARP, are really insecure, and we have to figure out ways to lock down these protocols. Dynamic ARP inspection is one of those protocols that allows us to lock down the ARP protocol and make sure that there are only legitimate ARP replies that are happening on our network.
Dynamic ARP inspection uses the binding database with DHCP snooping, so the first thing that we have to do is turn on DHCP snooping. What I'm going to do is go into the global configuration mode on switch CP snooping to turn that on from a global perspective. Then I'll type in IP DHCP snooping, and we're going to turn it on for VLAN 10. And we'll do that for also VLAN 10.
So now it is turned on, but by default all of our ports are untrusted, so we need to start trusting some of those ports. I'm going to get into the interface, and for this I'm going to get into our port channels, so port channel, and then we'll do port channel 1 here. Inside this we're going to do IP DHCP snooping. This doesn't have to do specifically with DAI, but if we're going to trust it with DAI then we might as well do it with DHCP snooping as well. So I'm going to do that, and then I'm going to do an IP ARP inspection and trust this port as well. We want to do this maybe for some of my other ports on here as well.
So I've got that. Now one last command that we can take a look at is what we want it to inspect. So I can do an IP ARP inspection, and what do we want it to validate? I'll do a validate with a question mark, and I can do a destination-mac, an IP, or a source-mac. So it's going to validate these different components out of that ARP.
So what I'm going to do is, if I do a destination-mac and I hit enter here, it would just be the destination MAC. Then I can do IP also, but if I add this it's actually going to take the place of the destination MAC. So if I want to do multiple of these, then what I have to do is put all of them in there. I'm going to do destination-mac space IP space source-mac and then hit enter, and then all three of those are going to go into this device, and it's going to inspect all three of those. So now dynamic ARP inspection is turned on on this device.
TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.
Explore free tools and programs →