IP Source Guard is configured on Cisco switches using DHCP snooping as the binding database or manually defined static IP-to-MAC bindings, with a single interface-level command enabling traffic verification.
IP Source Guard Config
Let's take a look at some of the configurations for IP Source Guard. Not much of a surprise that it's very similar to how we set up something like dynamic ARP inspection. What I'm going to do is jump on switch 2 here and just show you how to configure some of this.
What we're going to do is I'm going to set up DHCP binding. I can actually statically set up my different bindings, but since I want this to be dynamic, I'm going to set up DHCP snooping.
So what I'm going to do is I'm going to get into the global configuration mode, configure ip dhcp snooping, and then we will do snooping for VLAN, and let's do one of our other VLANs, so we're going to do it for VLAN 30.
Then I'm going to get into the interface, so I'm going to do an interface, I'll just do a random one here, we'll say fa, how about 0 3, and hit enter on that. And then I'm going to say ip verify source. That's really the only command that we need to enable this from IP Source Guard on the switch. So I'm going to hit enter, and now I have it configured, so it's going to verify the IP addresses.
Now it's going to verify it based off of either the DHCP snooping database, the binding database, or what I can do is I can set up a static, so I can do an ip source binding. I actually got it copied over here because there's quite a bit to it.
What I'm doing is I'm binding the MAC address with the VLAN, and so maybe I'd bind that to VLAN 30, let's bind it to VLAN 30, with the IP address, maybe it's a machine on here, so we're going to do 10.1.30.34, and interface, and let's say zero three, so we'll do zero three. And then that's how to set up a static binding on it.
So just a few commands to set this up, to verify the IP address.
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 →