Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

IP Source Guard Deep Reference

Direct answer

IP Source Guard makes an access port accept traffic only from the IP address assigned to the device on it. Packets with any other source address are dropped at the port.

When to use this

Use it to stop devices from using made-up or borrowed source addresses — and when a device has link but no connectivity at all, with nothing in the log.

First 30 seconds

1. show ip verify source interface <interface> — the device's real address, or deny-all?

2. deny-all → no binding: static address, or a lease from before DHCP snooping.

3. Static device → ip source binding <mac> vlan <id> <ip> interface <interface>.

4. DHCP device → renew the lease.

5. After a reload → configure ip dhcp snooping database so bindings survive.

Operational verification

DHCP snooping active on the VLAN → device obtains a lease, or a static binding exists → filter on the port permits that address → traffic from that address forwarded, anything else dropped

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Cisco IOS / IOS XE
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCisco IOS / IOS XE · Cisco IOS XE
Key commandip verify source
Scope / prerequisiteUse it to stop devices from using made-up or borrowed source addresses — and when a device has link but no connectivity…
Reference · 2
What next?3 suggested next steps
Catalog command links2
Evidence0
On this pageJump to a specific section
Cisco IOS / IOS XE first

Primary Commands

Configuration and operational commands for this Topic.

Verification

Show Commands

Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Operational verification Verify boundary
show ip verify source
show ip verify source interface GigabitEthernet1/0/10
show ip source binding
show ip dhcp snooping binding

show ip verify source lists each protected port with the filter type and the IP address — and MAC address, where checked — currently permitted. "deny-all" in the address column means there is no binding and all IP traffic is blocked. show ip source binding lists dynamic and static bindings together.

Known-good: the port shows the device's actual IP address as permitted, and the binding's MAC, VLAN and port match the device.

Step 2 Failure isolation workflow Narrow the fault
  • A device has link but no connectivity at all, and nothing is logged. The port shows deny-all: no binding. It has a static address, or the lease predates DHCP snooping.
  • A device with a static address stopped working when the feature was enabled. Add an ip source binding for it.
  • All devices on protected ports are cut off after a reload. The binding table was lost; store it with ip dhcp snooping database.
  • A device was given a new address by hand and went silent. The filter still permits only the leased address.
  • Enabled on an uplink. Everything behind it is dropped; remove it from that port.
  • A virtual machine host works for itself but not for its guests. Only the host's address is bound to the port.
Command lookup Jump straight to Cisco syntax
Key points

It uses the DHCP snooping binding table; with no binding the port blocks all IP traffic except DHCP, and drops are not logged. Devices with static addresses need ip source binding. Never on uplinks. If the binding table is lost at a reload, every protected device is cut off until it renews.

Key checks
  • show ip verify source — per protected port: filter type and the address permitted; "deny-all" means no binding.
  • show ip verify source interface <interface> — one port.
  • show ip source binding — dynamic and static bindings together.
  • show ip dhcp snooping binding — the DHCP-learned ones.
ReferenceWhat it is1 section · depth on demand

Mechanics & mental model

IP Source Guard makes an access port accept traffic only from the IP address that was assigned to the device on it. Packets with any other source address are dropped at the port.

ReferenceWhy it matters1 section · depth on demand

Why it matters operationally

Without it, a device can send packets with a made-up source address or simply take over a neighbour's address. IP Source Guard prevents both at the first switch port. Where Dynamic ARP Inspection checks ARP packets only, this filters all IP traffic — so a missing record for a device means it is completely silent, with nothing in the log to say why.

ReferenceHow it works1 section · depth on demand

How it works

Like ARP inspection, the feature uses the DHCP snooping binding table. When it is enabled on a port, the switch installs a filter there that permits only the IP address — and optionally the MAC address — recorded for that port.

ip dhcp snooping
ip dhcp snooping vlan 20
!
interface GigabitEthernet1/0/10
 ip verify source
CommandChecks
ip verify sourceSource IP address
ip verify source port-securitySource IP and MAC address; requires port security on the port

Until the device has a binding, the port lets through DHCP only, so the device can obtain an address. Once the lease is recorded, the filter is opened for that address.

Static addresses. A device without DHCP needs a manual binding:

ip source binding 0011.2233.4455 vlan 20 10.20.0.50 interface GigabitEthernet1/0/10

Where to use it. On access ports to end devices. Not on uplinks or ports towards other switches: many addresses appear there, and none of them has a binding on that port.

Things that follow from the design:

  • It works on Layer 2 ports and needs DHCP snooping active in the VLAN.
  • Dropped packets are not logged; the only evidence is the filter and the bindings.
  • If the binding table is lost — for example at a reload without a stored database — every protected device is cut off until it renews its lease.
  • Each binding consumes hardware filter resources, which limits how many ports can be protected on smaller switches.
ReferenceImportant terms & boundaries1 section · depth on demand

In depth

IP Source Guard

IP Source Guard stops hosts from using IP addresses they weren't given. It filters traffic on untrusted access ports by source address. Cisco's DAI and IPSG troubleshooting document explains the mechanism:

  • IPSG uses the DHCP snooping binding table, plus any static ip source binding entries.
  • When enabled, the port blocks all IP traffic except DHCP until a binding exists. Then it permits only that source IP.
  • ip verify source filters on the IP address only. ip verify source mac-check also checks the MAC address.
  • show ip verify source shows the active filter per port. deny-all means no binding exists.

Filter types

ConfigurationFilter typePermits
ip verify sourceipTraffic from the bound IP address
ip verify source mac-checkip-macTraffic from the bound IP and MAC pair
Static bindingip / ip-macA host with a fixed address
No bindingdeny-allOnly DHCP

Rolling out without outages (document)

StepReason
1. Enable DHCP snooping first and let clients renewThe binding table fills before IPSG starts filtering
2. Add static bindings for fixed-address hostsOtherwise they are cut off
3. Store the binding table on reliable storageA lost table after a reload blocks everyone
4. Enable IPSG on access ports onlyNever on uplinks
SW1(config)# ip source binding a4bb.6d55.0250 vlan 110 10.110.0.250 interface GigabitEthernet1/0/40
SW1(config)# ip dhcp snooping database flash:dhcp-snoop.db
SW1(config)# interface GigabitEthernet1/0/14
SW1(config-if)# ip verify source mac-check
SW1# show ip verify source interface GigabitEthernet1/0/14
Interface  Filter-type  Filter-mode  IP-address       Mac-address        Vlan
---------  -----------  -----------  ---------------  -----------------  ----
Gi1/0/14   ip-mac       active       10.110.0.64      a4:bb:6d:55:01:64  110
SW1# show ip verify source interface GigabitEthernet1/0/31
Gi1/0/31   ip           active       deny-all                            110
SW1# show ip source binding | include 10.110.0.250

Troubleshooting

A port showing deny-all is waiting for a DHCP exchange or a static binding. If the host has a valid lease but the port still shows deny-all, check that DHCP snooping is enabled for that VLAN, and that the DHCP reply came in through a trusted port.

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docCisco IOS / IOS XE Current documentation reviewed 2026-09-14

Authoritative/upstream documentation reviewed for bounded claims in Network & Protocols → IP Source Guard Deep Reference. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%
Technical changelog & impact

What changed and what may be affected

Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.

Related reference impactReview these references after material technical changes when their shared boundary is affected.
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
ip source guardipsgip verify sourcesource spoofing switch
Embedded quick reference

Operational notes

Former standalone Cheat Sheet content now lives directly inside the Topic where it belongs.

IP Source Guard — Fast Check

Access-port source identity

1. Correct port/VLAN.

2. show ip verify source.

3. Binding present.

4. Endpoint IP/MAC matches.

5. Generate traffic.

6. Check filter/drop state.

Confirmation

Confirm action

Continue?