Use this when a rogue DHCP server hands out malicious settings.
DHCP Spoofing
DHCP spoofing runs a rogue DHCP server that hands out a malicious gateway or DNS server. DHCP snooping on switches allows DHCP offers only from trusted ports.
1. DHCP spoofing: rogue server hands out attacker gateway/DNS.
2. DHCP snooping with trusted ports only.
3. Detect rogue servers.
4. Port security.
5. Feeds DAI and IP Source Guard.
rogue DHCP offer → dropped on untrusted port
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
show ip dhcp snoopingVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Checks Verify boundary
show ip dhcp snooping
show ip dhcp snooping statistics
show ip dhcp snooping binding
Ports toward real DHCP servers must be ip dhcp snooping trust; all access ports untrusted. A rising Packets dropped from untrusted ports counter shows rogue DHCP offers being blocked.
Step 2 Common mistakes Narrow the fault
- DHCP snooping without trusted uplinks configured.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
show ip dhcp snooping binding— bindingsshow ip dhcp snooping statistics— drops- Rogue DHCP detection (dhcp_probe/nmap broadcast-dhcp-discover) — unknown servers
ReferenceHow it works1 section · depth on demand
How it works
A rogue DHCP server (or a misconfigured home router plugged in) answers DHCPDISCOVER faster than the real server and hands out its own gateway and DNS, giving the attacker a MitM position. DHCP starvation (exhausting the real server's pool with fake MACs) is often used first. Port security and DHCP snooping rate limits stop both.
ReferenceConfiguration & state1 section · depth on demand
Configuration
ip dhcp snooping
ip dhcp snooping vlan 10,20
no ip dhcp snooping information option ! if the DHCP server rejects option 82
interface GigabitEthernet1/0/48
description Uplink to DHCP server side
ip dhcp snooping trust
Documented example, not captured output. All other ports are untrusted and drop DHCP offers. show ip dhcp snooping binding shows learned leases.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Common Attacks → DHCP Spoofing. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://attack.mitre.org/techniques/enterprise/ · confidence 94%