DHCP makes network connectivity easier by automatically providing devices with information such as:
- IPv4 address
- Subnet mask
- Default gateway
- DNS servers
- Lease duration
However, ordinary DHCP clients initially have little ability to determine whether a DHCP response came from the organization’s legitimate server or from an unauthorized device.
This creates several security concerns.
An attacker or accidentally misconfigured device may attempt to operate as a:
Rogue DHCP Server
Another attacker may generate large numbers of DHCP requests to attempt to consume:
The available DHCP address pool
This is commonly called:
DHCP Starvation
Managed switches can help protect the Layer 2 DHCP environment using a security feature called:
DHCP Snooping
DHCP snooping examines DHCP traffic passing through the switch and applies trust and validation rules before allowing DHCP messages to continue.

Why DHCP Snooping Is Needed
DHCP depends on a client-server exchange.
During initial DHCPv4 address allocation, the client commonly performs:
DHCPDISCOVER
DHCPOFFER
DHCPREQUEST
DHCPACK
A newly connected client sends DHCPDISCOVER because it does not yet know which DHCP server is available.
Any DHCP server receiving that request may potentially attempt to respond.
Consider this network:
Client VLAN:
VLAN 10
Client Network:
192.168.10.0/24
Legitimate DHCP Server:
10.10.10.20
Default Gateway:
192.168.10.1
Now imagine someone connects another device to an access port and starts a DHCP service.
That unauthorized device could respond to DHCPDISCOVER messages.
Rogue DHCP Server
A rogue DHCP server could provide clients with incorrect values such as:
IP Address:
192.168.10.100
Default Gateway:
192.168.10.250
DNS Server:
192.168.10.251
The client may successfully receive an address while still receiving dangerous or incorrect network configuration.
A rogue DHCP server can potentially cause:
- Loss of network connectivity
- Incorrect routing
- Incorrect DNS resolution
- Traffic redirection
- Man-in-the-middle opportunities
- Application failures
DHCP Starvation
Another DHCP-related attack attempts to exhaust the server’s available address pool.
Conceptually:
Attacker
|
+-- Fake Client 1 → DHCP Request
+-- Fake Client 2 → DHCP Request
+-- Fake Client 3 → DHCP Request
+-- Fake Client 4 → DHCP Request
+-- ...
v
DHCP Server
Available Address Pool
↓
Exhausted
An attacker can generate many DHCP requests using fabricated client identities.
If the DHCP pool becomes exhausted, legitimate devices may no longer receive addresses.
For example:
DHCP Pool:
192.168.10.50 - 192.168.10.200
Available Addresses:
151
After Attack:
0 Available Addresses
DHCP snooping can contribute to defending the access network through mechanisms such as DHCP message validation, trusted/untrusted boundaries, and DHCP message rate limiting on supported platforms.
However, DHCP snooping should not be thought of as a single feature that automatically eliminates every form of starvation attack.
Defense also depends on the switch platform, configuration, port-security design, DHCP server behavior, and other first-hop security controls.
Trusted and Untrusted Ports
The most important DHCP Snooping concept is:
Trust
Switch interfaces are normally classified as:
- Trusted
- Untrusted
Trusted Port
A trusted interface is a port through which legitimate DHCP server responses are expected.
Examples may include:
- Uplink toward the DHCP server
- Port directly connected to a legitimate DHCP server
- Uplink toward a DHCP relay or trusted distribution infrastructure
Conceptually:
DHCP Server
|
|
Trusted Port
|
DHCP Snooping Switch
Legitimate DHCP server messages can arrive through the trusted path.
Untrusted Port
Client-facing access interfaces should normally remain:
Untrusted
Examples:
PC
|
Untrusted Port
|
Switch
or:
Printer
|
Untrusted Port
|
Switch
or:
Attacker
|
Untrusted Port
|
Switch
Client DHCP requests are expected on these interfaces.
DHCP server responses are normally not expected there.
What Happens to a Rogue DHCPOFFER?
Suppose an attacker connects a laptop to:
GigabitEthernet1/0/20
and starts a DHCP server.
The attacker’s server sends:
DHCPOFFER
through an untrusted interface.
DHCP snooping can identify that DHCP server-originated traffic is arriving from an untrusted source and discard it.
Conceptually:
Rogue DHCP Server
|
| DHCPOFFER
v
Untrusted Port
|
X
BLOCKED
Meanwhile:
Legitimate DHCP Server
|
| DHCPOFFER
v
Trusted Uplink
|
v
ALLOWED

Do Not Trust Every Uplink Automatically
An interface should be trusted because the network design requires legitimate DHCP server traffic through that path.
Do not mark interfaces as trusted simply because they are:
- Trunks
- Uplinks
- High-speed interfaces
- Connected to another switch
The trust configuration should follow the actual DHCP path.
DHCP Snooping Binding Database
DHCP snooping can do more than filter DHCP server responses.
It can also learn information about DHCP clients and maintain a:
DHCP Snooping Binding Database
The database associates information learned from legitimate DHCP exchanges.
A typical binding can contain information such as:
- Client MAC address
- Assigned IPv4 address
- Lease information
- VLAN
- Switch interface
Conceptually:
| MAC Address | IP Address | VLAN | Interface |
|---|---|---|---|
| 00:11:22:33:44:55 | 192.168.10.50 | 10 | Gi1/0/10 |
| 00:11:22:33:44:66 | 192.168.10.51 | 10 | Gi1/0/11 |
| 00:11:22:33:44:77 | 192.168.20.50 | 20 | Gi1/0/15 |
How a Binding Is Learned
Consider a successful DHCP transaction:
Client
|
| DHCPDISCOVER
v
Switch
|
v
DHCP Server
DHCP Server
|
| DHCPACK
v
Switch
|
v
Client
The switch can inspect the legitimate DHCPACK and learn the relationship between:
Client MAC:
00:11:22:33:44:55
Assigned IP:
192.168.10.50
VLAN:
10
Interface:
GigabitEthernet1/0/10
This information becomes a DHCP snooping binding.
Why the Binding Database Matters
The binding database is important because other Layer 2 security features can use DHCP snooping information.
Examples on supported platforms include:
- Dynamic ARP Inspection
- IP Source Guard
- Source-address validation
- Additional first-hop security features
This creates a security chain:
DHCP Snooping
|
v
Trusted IP/MAC/Port Binding
|
+----> Dynamic ARP Inspection
|
+----> IP Source Guard
|
+----> Other Validation

Option 82 and DHCP Snooping
DHCP snooping may also interact with:
DHCP Option 82
Option 82 is formally called:
Relay Agent Information Option
RFC 3046 defines Option 82 as information inserted by trusted network infrastructure into client-originated DHCP messages. It can contain sub-options such as Circuit ID and Remote ID.
Circuit ID
Circuit ID can identify the circuit or attachment point where the client DHCP packet entered the trusted infrastructure.
Depending on the device and implementation, this may relate to information such as:
- Switch interface
- VLAN
- Access circuit
Remote ID
Remote ID can provide an additional identifier associated with the relay or access network.
The exact content and format are implementation dependent.
Conceptually:
Option 82
Circuit ID:
VLAN10-GigabitEthernet1/0/10
Remote ID:
Access-Switch-01
DHCP Snooping and Option 82 Insertion
On supported switches, DHCP snooping may insert Option 82 information into DHCP requests before forwarding them toward the DHCP server.
The flow can look like:
DHCP Client
|
| DHCPDISCOVER
v
Access Switch
DHCP Snooping
|
| Insert Option 82
v
DHCP Server
The DHCP server can potentially use this information for:
- Address assignment
- Access policies
- Subscriber identification
- Troubleshooting
- Logging
- Location-aware policies
RFC 3046 specifies that a server supporting the Relay Agent Information Option can echo the option in the reply, and the network element that inserted it removes it before forwarding the response to the client.
Option 82 Is Not the Binding Database
These concepts are related but different.
DHCP Snooping Binding Database
Records information such as:
IP address MAC address VLAN Switch interface Lease
Option 82
Carries additional access/relay information inside DHCP packets.
Option 82 Trust Matters
Option 82 information is useful only when the infrastructure generating it is trusted.
RFC 3046 explicitly describes a model where relay/access infrastructure is trusted and DHCP clients are treated as untrusted sources.
A client should not normally be allowed to forge trusted Option 82 information simply by inserting it into its own DHCP packets.
Behavior varies by switch platform and configuration, so always verify vendor-specific Option 82 handling.

Rogue DHCP and Starvation Defense
DHCP snooping is especially valuable because DHCP itself was not designed around strong authentication of every ordinary endpoint and server exchange.
Rogue DHCP Server Attack
The normal attack sequence can look like:
Client
|
| DHCPDISCOVER
v
Legitimate DHCP Server
|
| DHCPOFFER
v
Rogue DHCP Server
|
| Malicious DHCPOFFER
v
Client
Without controls, the client might accept an unwanted offer.
With DHCP snooping:
Legitimate Server
|
Trusted Port
|
v
ALLOWED
Rogue Server
|
Untrusted Port
|
X
BLOCKED
This is one of DHCP snooping’s most important protections.
DHCP Starvation Attack
A starvation attack tries to consume DHCP leases.
Conceptually:
Attacker
|
+-- MAC 00:AA:00:00:00:01
+-- MAC 00:AA:00:00:00:02
+-- MAC 00:AA:00:00:00:03
+-- MAC 00:AA:00:00:00:04
+-- Thousands More
|
v
DHCP Server
|
v
Pool Exhaustion
RFC 3046 discusses DHCP address exhaustion as an attack in which requests using fabricated client MAC addresses attempt to consume available addresses.
DHCP Message Rate Limiting
Many managed switch platforms allow DHCP snooping rate limits on untrusted interfaces.
Conceptually:
Client Access Port:
GigabitEthernet1/0/10
DHCP Request Rate Limit:
Configured by administrator
If a port begins sending DHCP packets at an abnormal rate, the switch may take action according to platform behavior and configuration.
This can help limit the impact of DHCP flooding or starvation attempts originating from a single access interface.
DHCP Snooping Does Not Replace Every Security Control
DHCP snooping should be part of a broader Layer 2 security design.
Consider combining it with appropriate features such as:
- Port security
- Dynamic ARP Inspection
- IP Source Guard
- 802.1X
- Network Access Control
- VLAN segmentation
- DHCP server security
- Monitoring and logging

Configuring DHCP Snooping
The exact commands vary between switch vendors and software releases.
The following Cisco-style example demonstrates the general concept.
Assume:
Client VLAN:
10
DHCP Server:
Reached through GigabitEthernet1/0/48
Client Ports:
GigabitEthernet1/0/1 - 24
Enable DHCP Snooping
A common configuration pattern is:
configure terminal
ip dhcp snooping
ip dhcp snooping vlan 10
This enables DHCP snooping globally and for the required VLAN.
Configure the Trusted Interface
The uplink carrying legitimate DHCP server traffic can be configured as trusted:
interface GigabitEthernet1/0/48
ip dhcp snooping trust
Client access ports normally remain untrusted by default on platforms where this behavior applies.
Example Client Port
interface GigabitEthernet1/0/10
switchport mode access
switchport access vlan 10
Do not configure:
ip dhcp snooping trust
on a normal user access port unless the design specifically requires it.
DHCP Rate Limit Example
On supported Cisco platforms, an untrusted interface can commonly be given a DHCP rate limit.
Example:
interface GigabitEthernet1/0/10
ip dhcp snooping limit rate 15
Verifying DHCP Snooping
Configuration should always be followed by verification.
Check DHCP Snooping Status
A common Cisco command is:
show ip dhcp snooping
Review information such as:
- DHCP snooping enabled or disabled
- Enabled VLANs
- Trusted interfaces
- Rate limits
- Option 82 behavior
Check the Binding Database
Use:
show ip dhcp snooping binding
A simplified output might resemble:
MacAddress IpAddress Lease Type VLAN Interface
----------------- ------------- ----- ------- ---- ----------
0011.2233.4455 192.168.10.50 7200 dhcp 10 Gi1/0/10
0011.2233.4466 192.168.10.51 6800 dhcp 10 Gi1/0/11
This confirms that legitimate DHCP bindings are being learned.
What Should You Verify?
Check:
- Is DHCP snooping enabled globally?
- Is it enabled on the correct VLAN?
- Is the DHCP server-facing path trusted?
- Are client interfaces untrusted?
- Are legitimate bindings appearing?
- Are rate limits appropriate?
- Is Option 82 behaving as expected?
- Are DHCP packets being dropped unexpectedly?
Common DHCP Snooping Problems
DHCP snooping is powerful, but incorrect configuration can block legitimate DHCP.
Client Sends DISCOVER but Gets No OFFER
Packet capture:
DHCPDISCOVER
DHCPDISCOVER
DHCPDISCOVER
Possible problem:
The legitimate DHCPOFFER is entering through an interface that DHCP snooping considers untrusted.
Check:
- DHCP server path
- Trusted interface configuration
- VLAN configuration
- Trunks
- Relay path
Wrong Port Is Trusted
Suppose:
Gi1/0/48:
DHCP Server Uplink
Gi1/0/20:
User Access Port
but the administrator accidentally trusts:
Gi1/0/20
A rogue DHCP server connected to that interface may now be able to send server responses.
Trust configuration must therefore be audited carefully.
Snooping Enabled on the Wrong VLAN
Example:
DHCP Snooping Enabled:
VLAN 20
Actual Client VLAN:
VLAN 10
The intended VLAN may not receive the expected protection.
Binding Is Missing
A client has an IP address, but:
show ip dhcp snooping binding
does not show the client.
Investigate:
- Was the address statically configured?
- Was the DHCP exchange observed by the snooping switch?
- Did the client obtain the lease before snooping was enabled?
- Did traffic take another path?
- Is the correct VLAN being inspected?
Static IP Devices
A device with a manually configured address may not automatically create a DHCP snooping dynamic binding because it did not obtain its address through the DHCP exchange.
This becomes important when features such as:
- Dynamic ARP Inspection
- IP Source Guard
depend on DHCP snooping bindings.
Static hosts may require additional configuration depending on the security design and platform.
Option 82 Causes DHCP Failure
A server may reject or mishandle DHCP packets containing unexpected relay information.
Check:
- Whether Option 82 insertion is enabled
- Server support
- Server policy
- Circuit ID format
- Remote ID format
- Trusted boundaries
Rate Limit Too Low
Possible symptoms:
- Some clients obtain addresses
- Others fail during mass startup
- DHCP works intermittently
- Port security actions appear during boot events
This may occur when many legitimate clients generate DHCP requests through one physical interface.

DHCP Snooping with DAI and IP Source Guard
DHCP snooping becomes even more powerful when combined with other first-hop security features.
Dynamic ARP Inspection
Dynamic ARP Inspection, or DAI, can use trusted binding information when validating ARP traffic.
Conceptually:
DHCP Snooping Binding
192.168.10.50
00:11:22:33:44:55
Gi1/0/10
|
v
Dynamic ARP Inspection
|
v
Validate ARP Claims
If a device claims an unexpected IP-to-MAC relationship, the security policy may reject it depending on configuration.
IP Source Guard
IP Source Guard can also use binding information to restrict unexpected source IP traffic on access interfaces.
Conceptually:
DHCP Snooping
|
v
IP + MAC + Port Binding
|
v
IP Source Guard
|
v
Source Validation
Trusted vs Untrusted Quick Reference
| Behavior | Trusted Port | Untrusted Port |
|---|---|---|
| Typical Location | DHCP server/uplink path | Client-facing access port |
| Client DHCP Requests | Allowed | Allowed subject to policy |
| DHCP Server Responses | Allowed | Normally blocked |
| Rogue Server Protection | Trusted path must be controlled | Unauthorized responses blocked |
| Rate Limiting | Platform/configuration dependent | Commonly applied |
| Security Level | Infrastructure trust | Endpoint-facing/untrusted |
Key Takeaways
- DHCP Snooping is a Layer 2 security feature that monitors and validates DHCP traffic.
- Its most important design concept is the separation of interfaces into trusted and untrusted ports.
- Legitimate DHCP server responses should normally arrive through trusted infrastructure paths.
- Client-facing switch ports should generally remain untrusted.
- A rogue DHCP server connected to an untrusted port can have its server-originated DHCP responses blocked.
- DHCP snooping can maintain a binding database associating information such as client MAC address, assigned IP address, VLAN, interface, and lease information.
- The binding database can support other Layer 2 security features such as Dynamic ARP Inspection and IP Source Guard on compatible platforms.
- DHCP starvation attempts to consume available DHCP addresses using large numbers of client requests or fabricated identities.
- DHCP message rate limiting on untrusted ports can help control abnormal DHCP request rates on supported switches.
- Rate limits must be designed carefully so legitimate multi-client interfaces are not disrupted.
- Option 82 can add network attachment information such as Circuit ID and Remote ID to DHCP messages. RFC 3046 defines these as initial Relay Agent Information sub-options.
- Option 82 and the DHCP Snooping binding database are related concepts but are not the same thing.
- DHCP snooping depends heavily on a correct trust boundary.
- Incorrectly trusting client ports can weaken rogue-server protection.
- Forgetting to trust the legitimate DHCP server path can cause clients to send DHCPDISCOVER repeatedly without receiving usable offers.
DHCP snooping should not be treated simply as a command that is enabled on a switch.
It is a security architecture built around:
- Correct VLAN selection
- Trusted infrastructure
- Untrusted endpoints
- DHCP packet validation
- Binding information
- Rate controls
- Option 82 handling
- Monitoring
A secure deployment therefore starts by understanding the actual DHCP traffic path.
Ask:
Where does DHCPDISCOVER enter the network?
Which path does it take toward the legitimate server?
Where does DHCPOFFER return?
Which interfaces should be trusted?
Are bindings being created?
Is Option 82 expected?
Are rate limits appropriate?
When those questions are answered correctly, DHCP snooping becomes one of the most useful first-hop security controls available in a managed Layer 2 network.
Useful Links and References
SanchitGurukul Resources
Official Technical References
Your feedback matters
Was this post helpful?
Discussion
0 approved comments
No approved comments yet. You can start the discussion below.
Leave a Comment
No login is required. Name and email are used for moderation/security. Your email is never displayed publicly. All comments require administrator approval.
Discover more from SanchitGurukul
Subscribe to get the latest posts sent to your email.
