Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

DHCP Snooping

Direct answer

DHCP snooping lets DHCP server messages in only on trusted ports, so a rogue DHCP server on an access port cannot hand out addresses. It also records each client's IP, MAC, VLAN and port in a binding table.

When to use this

Use it on access switches in every user VLAN, and when clients receive no address or an address from the wrong server.

First 30 seconds

1. show ip dhcp snooping — VLAN enabled? Uplink listed as trusted?

2. Client gets nothing → uplink untrusted, so offers are dropped.

3. Offers pass but server ignores requests → option 82 / giaddr issue.

4. show ip dhcp snooping binding — client binding created?

5. show ip dhcp snooping statistics — drops falling.

Operational verification

snooping enabled per VLAN → uplink to the server trusted → client DISCOVER forwarded → server OFFER/ACK accepted only on trusted port → binding created with IP, MAC, VLAN, port

Evidence · next step

Repeat one controlled DHCP exchange and verify trust/VLAN scope if the expected binding is absent or stale.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Protocol standard + deployed implementation
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.

PlatformProtocol standard · Cisco IOS / IOS XE · Cisco IOS XE
Key commandip dhcp snooping
Scope / prerequisiteUse it on access switches in every user VLAN, and when clients receive no address or an address from the wrong server.
Show · 3Reference · 4
What next?3 suggested next steps
Catalog command links7
Evidence4
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.

9 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 First 30 seconds Verify boundary

Immediate answer: Freeze client MAC, VLAN and ingress. Read operational snooping scope and trust, then correlate the approved DHCP exchange and resulting binding.

Verification chain: client/VLAN ingress → operational snooping scope → server ingress trust/policy → valid DORA/ACK → learned binding → dependent DAI/client checks

Boundary: A configuration line or a single local display does not show the downstream result. Preserve observations before any intervention.

Step 2 DHCP snooping: valid server versus rogue-server lab Verify boundary

Illustrative isolated lab: VLAN 20 has a legitimate server path on Gi1/0/48 and client edge Gi1/0/10. Enable snooping only after documenting the approved server ingress, option-82 behavior and expected client pool; keep client ingress untrusted. This is topology-specific intent, not a paste-ready configuration.

Observe one fresh DORA exchange and correlate the resulting binding: client MAC, assigned address, lease, VLAN 20 and Gi1/0/10. Verify the client accepts the expected gateway/DNS options; test gateway and resolver separately.

Negative test only on the isolated VLAN: send a controlled unauthorized server reply through another untrusted lab port. Confirm the drop at that ingress and that the legitimate client/server exchange still succeeds. A client timeout alone is insufficient evidence that rogue-server enforcement worked.

Save exact prior global/VLAN/trust/rate/option-82 configuration. Restore only test changes; do not clear all bindings or disable protection across unrelated VLANs. A removed dynamic binding requires a legitimate learning/restoration path, not a fabricated entry. Examples are authored expected results, not an executed lab or new Evidence.

Step 3 DHCP snooping: correlate binding and enforcement readback Verify boundary

Read show ip dhcp snooping, show ip dhcp snooping binding and, where supported, show ip dhcp snooping statistics. Compare the exact client/VLAN/interface tuple with the DHCP transaction and server-side lease. Inspect operational VLANs separately from configured VLANs, ingress trust separately from the port's access/trunk mode, and current counter deltas separately from historical totals.

If the client does not obtain a lease, locate the last observed DORA message and the first missing one. If it obtains a lease but DAI fails, compare the actual binding consumed by DAI. A correct snooping table alone cannot show ARP validation, DNS or routed application health. Follow the bounded legitimate/rogue-server lab in this Topic; preserve existing bindings and unrelated client traffic.

Step 4 Verification and output interpretation Verify boundary

Use show ip dhcp snooping to confirm global/VLAN enablement, trusted interfaces and operational policy, then show ip dhcp snooping binding to show that a known client produced the expected IP/MAC/VLAN/interface binding. For one controlled lease, correlate Discover/Offer/Request/ACK with the binding created on the access port. If DAI or IP Source Guard also exists, verify that they consume the same intended binding rather than assuming DHCP success automatically populated every dependent table. A healthy binding should match the client’s current lease and physical attachment; stale or absent entries require explanation before disabling protection features.

Step 5 Step-by-step troubleshooting Narrow the fault

Boundary rule: A global DHCP snooping setting does not show the VLAN is enabled, the uplink is trusted or a binding was learned.

Step 6 DHCP snooping: locate the failed lease boundary Narrow the fault

Follow one client MAC, VLAN and DHCP transaction in the same time window:

1. Client request absent: inspect access VLAN, link and VLAN carriage before changing snooping.

2. Legitimate Offer/ACK arrives but is dropped: check the ingress trust boundary, enabled VLAN and supported snooping statistics/logs. Compare the actual DHCP message and rate limits rather than trusting every uplink blindly.

3. Relay or option-82 transaction fails: compare the snooping switch, relay and server's information-option policy. Do not globally relax untrusted relay handling as a diagnostic shortcut.

4. Client has a lease but expected binding is absent/wrong: verify that this switch observed the ACK on the expected path, the VLAN/interface/MAC context is correct and the lease did not expire. Static addressing does not generate a DHCP-learned binding.

5. Bindings disappear after reload: inspect the configured database/persistence design and dependent features. Do not assume persistent storage is present or reload a production switch merely to test it.

DHCP snooping and DAI have distinct trust settings. A change in one does not justify bypassing the other.

Step 7 Verification & troubleshooting Narrow the fault

1. show ip dhcp snooping — confirm feature/VLAN/trusted-port state.

2. show ip dhcp snooping binding — confirm the client binding exists.

3. Verify the legitimate server/relay path is trusted and client edges are not.

4. If leases fail, separate a snooping drop from DHCP server/pool/relay failure.

5. If DAI also fails, verify the required snooping binding exists first.

Step 8 DHCP snooping failure signatures Narrow the fault

Investigate legitimate replies entering an untrusted path, snooping absent from the intended operational VLAN, option-82 incompatibility, rate-limit drops and missing/expired/wrong-interface bindings. A statically addressed host need not create a DHCP binding. Compare the failed client transaction with one permitted client on the same intended topology.

Use the packet, binding and supported counter observations to distinguish server/relay failure from ingress enforcement. Do not change gateway ownership or routing metrics to conceal a missing binding, and do not globally clear bindings as a first step. Follow the bounded valid-server/rogue-server lab and restore the exact prior scope after testing.

Step 9 DHCP snooping closure and proof boundary Narrow the fault

Confirm operational VLAN scope, intended server ingress trust and a bounded legitimate DHCP exchange that learns the expected MAC/IP/VLAN/interface binding. In an isolated negative test, confirm an unauthorized server reply is rejected without breaking the legitimate exchange. Verify dependent DAI and client connectivity separately.

Restore exact lab changes, compare original observations and recheck an unaffected client. Preserving a lease or seeing a local table is not a substitute for the chosen enforcement test. Authored examples and configuration intent are not captured Evidence, human review or technical verification dates; existing evidence/history records remain unchanged.

Evidence references

Evidence · 4 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

command output · 3other · 1
Command lookup Jump straight to Cisco syntax
Key points

Enable globally (ip dhcp snooping) and per VLAN (ip dhcp snooping vlan <list>), then ip dhcp snooping trust on uplinks towards the server. By default the switch inserts option 82; some servers or relays reject it — then use no ip dhcp snooping information option or configure the relay to trust it.

Key checks
  • show ip dhcp snooping — enabled VLANs, trusted ports, option 82 setting.
  • show ip dhcp snooping binding — learned bindings.
  • show ip dhcp snooping statistics — packets forwarded and dropped.
  • debug ip dhcp snooping packet — per-packet decisions (in a lab or briefly).
ReferenceWhat it is1 section · depth on demand

What it is

DHCP Snooping is a Layer 2 security feature that classifies switch ports as trusted or untrusted, permits DHCP server messages only from intended trust boundaries, and can build a binding table from valid client leases.

ReferenceWhy it matters1 section · depth on demand

Why it matters

Use DHCP Snooping to block rogue DHCP-server behavior on access ports and to create an IP/MAC/VLAN/interface source-of-truth that other features such as Dynamic ARP Inspection can consume.

ReferenceHow it works1 section · depth on demand

DHCP snooping: observation versus activation

Scope: Cisco IOS / IOS XE Catalyst, IPv4 DHCP snooping on an explicitly selected VLAN. Platform-specific stacking, relay/option-82 and persistence behavior must be checked for the deployed release.

ip dhcp snooping enables a feature in configuration mode. It is not a read-only diagnostic. VLAN enablement, interface trust and rate limits are separate configuration decisions. Read show ip dhcp snooping for configured versus operational VLANs, trust, rate and option-82 handling. Read show ip dhcp snooping binding for the selected client MAC, leased IP, lease time, VLAN and ingress interface.

A trunk is not automatically a trustworthy server path. Preserve the intended untrusted endpoint edge; trace where legitimate server replies actually enter this switch. A binding is learned transaction state, not a permanent identity assertion or evidence of the client's application path.

Reference: Cisco Catalyst 9000 DHCP snooping operations.

ReferenceImportant terms & boundaries8 sections · depth on demand

Key points

  • Enable DHCP Snooping globally and for the intended VLANs

- Client-facing access ports are normally untrusted

- Uplinks toward legitimate DHCP servers/relays are trusted deliberately

- The binding table records learned client identity and attachment information

- Rate limiting can protect the control path but an aggressive value can drop legitimate DHCP bursts.

Trusted versus untrusted

Trust is directional policy for DHCP server-originated messages. Client-facing ports should generally remain untrusted; the path toward an authorized DHCP server or relay is trusted only where required by topology. A trusted port bypasses important server-message enforcement, so trust scope matters.

In depth

DHCP snooping separates trusted DHCP servers from untrusted clients

The Catalyst 9300 DHCP guide gives the defaults: snooping is disabled globally and per VLAN, and all interfaces are untrusted. MAC address verification is on, and option 82 is inserted when snooping is enabled on the VLAN.

C9300(config)# ip dhcp snooping
C9300(config)# ip dhcp snooping vlan 20,30
C9300(config)# ip dhcp snooping database flash:dhcp-snoop.db
C9300(config)# ip dhcp snooping database write-delay 60
C9300(config)# interface TenGigabitEthernet1/1/1
C9300(config-if)# ip dhcp snooping trust
C9300# show ip dhcp snooping
Switch DHCP snooping is enabled
DHCP snooping is configured on following VLANs:
20,30
Insertion of option 82 is enabled
Verification of hwaddr field is enabled
Interface                  Trusted    Allow option    Rate limit (pps)
-----------------------    -------    ------------    ----------------
TenGigabitEthernet1/1/1    yes        yes             unlimited
C9300# show ip dhcp snooping binding
MacAddress          IpAddress        Lease(sec)  Type           VLAN  Interface
------------------  ---------------  ----------  -------------  ----  --------------------
00:50:B6:1A:2B:3C   10.20.0.64       27843       dhcp-snooping   20    GigabitEthernet1/0/10

What gets dropped (from the guide)

PacketWhy
OFFER, ACK, NAK or LEASEQUERY on an untrusted portServer messages must come from trusted ports
Source MAC differs from the client hardware addressMAC verification
RELEASE or DECLINE for a binding on another interfacePrevents releasing someone else's lease
Option 82 or non-zero relay address arriving on an untrusted portUnless allow-untrusted is configured
Snooping queue over 1000 packetsOverload protection

Binding database

The guide lists up to 64,000 bindings with IP, MAC, lease, interface and VLAN. They're kept only for untrusted ports. The database agent defaults to a 300 s write delay and a 300 s timeout.

Option 82 between switches

An edge switch inserting option 82 towards an aggregation switch that also snoops causes drops on the aggregation switch. Either trust the downlink or configure ip dhcp snooping information option allow-untrusted there, as the guide describes.

Guidelines

  • Trust only ports towards DHCP servers and other trusted switches.
  • Avoid Tx SPAN on DHCP snooping traffic, per the guide.
  • In a stack, the active member owns snooping; bindings can be lost on a stack merge.

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.

Binding table as evidence

The DHCP Snooping binding table associates a learned client MAC with leased IP address, VLAN and interface/lease information. It is operational evidence and can become an input for DAI. A binding is not a permanent identity database and ages/changes with DHCP state.

Quick reference

DHCP Snooping protects against rogue DHCP servers: ports facing real DHCP servers (or uplinks) are trusted, all others untrusted, and DHCP server messages arriving on untrusted ports are dropped. It also builds a binding table of IP, MAC, VLAN and port for each lease.

ip dhcp snooping
ip dhcp snooping vlan 20,30
no ip dhcp snooping information option   ! if the server rejects option 82
interface Te1/1/1
 ip dhcp snooping trust
show ip dhcp snooping binding

Documented example, not captured output.

The binding table feeds Dynamic ARP Inspection and IP Source Guard, so enable snooping first.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

DHCP snooping mechanics and state ownership

DHCP snooping controls DHCP server-message ingress and learns dynamic client attachment in operationally enabled VLANs. The relevant state is VLAN scope, trusted server path, client MAC/IP/interface and lease lifetime. A switchport being a trunk does not establish server trust, and a DHCP server's own lease record does not show this switch learned a binding.

Read the same tuple before and after a bounded client acquisition. Separate DHCP delivery, binding creation and dependent DAI enforcement. A client timeout can reflect the server, relay, VLAN path, rate limiting or snooping policy; identify the failed transaction boundary rather than disabling the protection.

State model and protocol mechanics

DHCP Snooping inserts a policy boundary into DHCP forwarding. Client-facing ports are normally untrusted, while only the path toward legitimate DHCP server or relay infrastructure is trusted. The switch examines DHCP message direction and can reject server-originated messages arriving on an untrusted port. During successful address assignment it learns bindings that associate client MAC, assigned IP, VLAN, interface and lease information. That table can become input to Dynamic ARP Inspection and IP Source Guard, so losing or failing to learn a legitimate binding can affect protocols beyond DHCP itself. Option 82 behavior may add relay-agent information depending on platform and design; whether it should be inserted, preserved or trusted must match the actual DHCP architecture.

Limits and common misconceptions

A correct binding shows the switch observed and accepted DHCP state for that client, but it does not show DNS, gateway or application reachability. An absent binding does not show the DHCP server failed—the client may be statically addressed, the binding may have aged, persistence may be absent, or the exchange may have bypassed the snooping observation point. Trusting a port fixes policy only when that port truly leads toward legitimate server infrastructure; broad trust is not a troubleshooting shortcut. DHCP Snooping is also not equivalent to a DHCP relay. Keep lease acquisition, snooping enforcement, binding creation and dependent DAI/IPSG policy as distinct state boundaries.

ReferenceConfiguration & state1 section · depth on demand

Design and configuration model

Enable DHCP Snooping only for the intended VLAN scope and explicitly identify every infrastructure-facing trusted port that can legitimately carry server replies. Trust is powerful: placing it on an endpoint-facing access port defeats a major protection boundary. Rate limiting on untrusted ports can protect the control path but should be sized for realistic boot storms and phone/AP behavior. If the environment uses a relay, DHCP server policies or Option 82, verify those components agree on the inserted information. Plan for binding persistence when dependent features require continuity across switch reloads. Treat trunk trust according to what the trunk actually connects to; “trunk” is not synonymous with “trusted”.

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 docProtocol standard + deployed implementation RFC 2131

Authoritative/upstream documentation reviewed for bounded claims in Switching → Layer 2 Security → DHCP Snooping. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.rfc-editor.org/rfc/rfc2131.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.
Embedded reference data

Quick lookup tables

DHCP Snooping trust model

Where trust normally belongs

Port roleNormal trustWhy
Client access portUntrustedblocks server-originated DHCP messages from endpoint edge
Uplink toward authorized server/relay pathTrustedpermits legitimate DHCP server responses through intended boundary
Unknown/unmanaged edgeUntrustedleast-trust default for DHCP server messages

DHCP Snooping troubleshooting boundary

Fast order when a client cannot obtain a lease

StepEvidenceQuestion
1VLAN/access stateIs the client in the intended VLAN?
2show ip dhcp snoopingIs Snooping active for this VLAN and is trust correct?
3server/relay pathAre OFFER/ACK responses entering through a trusted path?
4show ip dhcp snooping bindingWas a valid client binding learned?
5DHCP server/pool/relayIf Snooping is not the boundary, is DHCP itself healthy?

DHCP Snooping · operational reference

Compact state and interpretation boundaries for fast lookup.

ElementHealthy referenceRisk if wrong
VLAN scopeIntended client VLANs enabledNo enforcement/bindings where expected
Trusted portsOnly server/relay-facing paths trustedRogue server messages may be accepted
BindingMAC/IP/VLAN/interface matches leaseDAI/IPSG may reject legitimate host
Rate limitSupports expected client burstsLegitimate DHCP can be dropped

DHCP Snooping operational reference

Topic-specific bounded interpretation: known-good state, suspicious signatures and the next technical proof boundary.

BoundaryKnown-good for DHCP SnoopingSuspicious signatureNext proof
IntentMatches the DHCP trust boundary that blocks unauthorized server messages and builds bindings used by other Layer-2 security features designConfiguration differs from design/peerCompare effective configuration
Control/security stateStable expected neighbor/database/binding/election statelegitimate DHCP offer/ack arriving on an untrusted uplink, snooping enabled for the wrong VLAN set, missing bindings after static addressing or interrupted leases, excessive rate-limit drops, or DAI failing downstream because expected snooping bindings never formedInspect protocol/security detail and adjacent state
ForwardingExpected Layer-2 or RIB/FIB/gateway pathControl state exists but traffic path disagreesMAC/ARP/RIB/FIB/CEF proof
ClosureOriginal test passes for explained reasonSymptom moved, was bypassed or protection disabledRegression test
Confirmation

Confirm action

Continue?