DHCP Snooping Secrets: Fortifying Networks against Unauthorized Intruders
In a business or industrial Ethernet network, DHCP makes it easier to connect devices by automatically assigning IP addresses and other network configuration information. But DHCP can also create a security vulnerability if an unauthorized device begins responding to DHCP requests.
DHCP snooping is a security feature available on many managed network switches that helps prevent unauthorized DHCP servers from distributing false network configuration information. By identifying trusted DHCP connections and inspecting DHCP traffic arriving on untrusted ports, DHCP snooping can help protect networks against rogue DHCP servers, certain address-spoofing attacks, and DHCP-based denial-of-service attacks.
For organizations using managed Ethernet switches, DHCP snooping can be an important component of a broader network security strategy.

What Is DHCP Snooping?
Dynamic Host Configuration Protocol (DHCP) automatically provides devices with network configuration information such as an IP address, subnet mask, default gateway, and DNS server information.
Without DHCP, network administrators would have to manually configure these settings on individual devices. DHCP simplifies network administration, particularly in networks with many computers, cameras, access points, industrial devices, and other Ethernet-connected equipment.
The security concern is that a DHCP client does not inherently know which DHCP server is legitimate.
An unauthorized device connected to the network could potentially act as a rogue DHCP server and provide clients with incorrect network configuration information.
For example, a rogue DHCP server could provide:
- An incorrect default gateway
- A malicious or incorrect DNS server
- An inappropriate IP address
- Other unauthorized DHCP configuration information
DHCP snooping helps address this problem by allowing the network switch to distinguish between trusted and untrusted ports and filter DHCP traffic accordingly.
How Does DHCP Snooping Work?
DHCP snooping operates at the switch level.
Network administrators designate ports connected toward legitimate DHCP servers or trusted network infrastructure as trusted ports. Ports connecting to ordinary client devices are generally configured as untrusted ports.
The switch then examines DHCP messages received on those interfaces.
A simplified example looks like this:
Legitimate DHCP Server → Trusted Switch Port → Network Switch → Client Devices
A rogue device connected to an untrusted client port that attempts to send unauthorized DHCP server responses can be blocked by the switch.
This prevents the unauthorized device from presenting itself as a legitimate DHCP server to other devices on the network.
The switch can also build a DHCP snooping binding table containing information learned from DHCP transactions, such as the client's MAC address, assigned IP address, VLAN, and switch port.
That information can subsequently be used by other security features on supported switches.
What Threats Can DHCP Snooping Help Prevent?
DHCP snooping is not a complete network security solution, but it can mitigate several DHCP-related threats.
1. Rogue DHCP Servers
A rogue DHCP server is an unauthorized device that responds to DHCP client requests.
This is one of the primary threats addressed by DHCP snooping.
For example, an unauthorized computer could connect to an Ethernet network and begin answering DHCP requests. It could potentially provide clients with an incorrect gateway or DNS server.
By allowing administrators to identify which switch ports are trusted for DHCP server traffic, DHCP snooping can prevent unauthorized DHCP server responses from being forwarded from untrusted ports.
2. DHCP Starvation Attacks
A DHCP starvation attack attempts to consume the available IP address pool by generating large numbers of DHCP requests, potentially using different or spoofed client identifiers.
If the DHCP server runs out of available addresses, legitimate devices may be unable to obtain network connectivity.
Many managed switches that support DHCP snooping also provide DHCP rate-limiting capabilities that can help reduce the impact of excessive DHCP traffic arriving on a particular port.
3. Certain IP Address Spoofing Attacks
DHCP snooping can create a binding between a client's MAC address, assigned IP address, VLAN, and switch port.
On switches that support complementary security features such as IP Source Guard, this information can be used to help prevent devices from using unauthorized IP addresses.
It is important to distinguish between DHCP snooping itself and these related features. DHCP snooping provides the information and enforcement mechanisms needed for a broader Layer 2 security strategy, while additional features may use the resulting binding information for further traffic validation.
4. Some Man-in-the-Middle Attack Scenarios
A rogue DHCP server can be used as part of an attack in which a malicious device attempts to place itself between clients and legitimate network resources.
For example, an attacker could attempt to provide clients with a malicious default gateway or DNS server.
By blocking unauthorized DHCP server responses on untrusted ports, DHCP snooping can help prevent this type of DHCP-based attack.
Key Components of DHCP Snooping
Several concepts are central to understanding how DHCP snooping works.
Trusted and Untrusted Ports
The distinction between trusted and untrusted ports is fundamental.
Trusted ports are normally connected toward a legitimate DHCP server or trusted network infrastructure.
Untrusted ports are normally connected to client devices, workstations, cameras, access points, or other endpoints that should not be allowed to act as DHCP servers.
This distinction allows the switch to treat DHCP messages differently depending on where they originate.
Proper configuration is critical. If a legitimate DHCP server connection is incorrectly configured as untrusted, legitimate DHCP traffic can be blocked.
Conversely, incorrectly trusting a port connected to an unauthorized device can undermine the protection provided by DHCP snooping.
DHCP Binding Table
A DHCP snooping binding table records information learned from DHCP transactions.
Depending on the switch and configuration, entries can include:
- MAC address
- Assigned IP address
- VLAN
- Switch port
- Lease information
The binding table provides the switch with a record of which IP address was assigned to which device and where that device is connected.
This information can also support other security mechanisms available on managed switches.
DHCP Rate Limiting
DHCP rate limiting restricts the number of DHCP messages that can be received on a particular interface within a specified period.
This can help reduce the impact of DHCP starvation and other excessive DHCP traffic.
Rate limits should be configured carefully. Setting them too aggressively can interfere with legitimate network activity.
How to Configure DHCP Snooping
The exact configuration process varies by switch manufacturer, operating system, and model. However, the general process involves several steps.
1. Enable DHCP Snooping
First, enable DHCP snooping on the managed switch.
Some switch platforms enable the feature globally before it is applied to specific VLANs.
2. Identify Trusted Ports
Determine which switch ports lead to legitimate DHCP servers or trusted network infrastructure.
These ports should be configured as trusted according to the switch manufacturer's documentation.
3. Leave Client Ports Untrusted
Ports connected to normal network clients should generally remain untrusted.
This prevents devices on those ports from sending unauthorized DHCP server responses through the switch.
4. Enable DHCP Snooping on the Appropriate VLANs
If the network contains multiple VLANs, DHCP snooping may need to be enabled on each applicable VLAN.
The exact configuration depends on the network architecture and switch platform.
5. Configure Rate Limits
Where supported, configure DHCP rate limits on appropriate client-facing interfaces.
Rate limits can help protect the DHCP address pool from excessive DHCP traffic.
6. Verify the Binding Table
After DHCP clients obtain addresses, verify that the switch is learning the expected bindings.
This can help confirm that DHCP snooping is operating correctly and can also provide useful information when troubleshooting network problems.
DHCP Snooping and Other Switch Security Features
DHCP snooping is most effective when it is part of a broader network security strategy.
Managed switches may provide several complementary security features.
IP Source Guard
IP Source Guard can use DHCP snooping binding information to help restrict a port to an authorized IP address.
This can make it more difficult for a device to use an unauthorized source IP address.
Dynamic ARP Inspection
Dynamic ARP Inspection (DAI) can use DHCP snooping information to help validate ARP traffic.
This can help defend against certain ARP spoofing and ARP poisoning attacks.
Port Security
Port security can restrict which MAC addresses are allowed on a switch port.
This provides another layer of protection against unauthorized devices connecting to the network.
Together, these capabilities can provide a stronger Layer 2 security architecture than relying on DHCP snooping alone.
Why Managed Switches Matter for DHCP Snooping
DHCP snooping requires network intelligence that is generally associated with managed switches.
An unmanaged switch simply forwards Ethernet traffic according to its built-in switching behavior. A managed switch can provide administrators with configuration and security controls that allow the switch to inspect and regulate certain types of traffic.
For organizations that need greater control over network access, managed switches can provide features such as:
- VLAN configuration
- DHCP snooping
- Port security
- MAC address controls
- Rate limiting
- Dynamic ARP Inspection
- IP Source Guard
- Traffic monitoring
- Quality of Service (QoS)
The specific features available depend on the switch model and firmware.
Versitron offers managed fiber optic and Ethernet switches designed for networks that require greater control over traffic, VLANs, and network security. The appropriate switch should be selected based on the required port configuration, fiber interfaces, PoE requirements, management capabilities, and security features.
Benefits of DHCP Snooping
Improved Network Security
DHCP snooping can prevent unauthorized DHCP servers from distributing network configuration information to clients.
Protection Against Rogue DHCP Servers
By distinguishing trusted and untrusted switch ports, administrators can restrict where DHCP server responses are allowed to originate.
Mitigation of DHCP-Based Attacks
DHCP rate limiting and traffic inspection can help reduce the impact of DHCP starvation and excessive DHCP traffic.
Useful Network Visibility
The DHCP snooping binding table provides useful information about IP addresses, MAC addresses, VLANs, and switch ports.
Support for Additional Security Features
On compatible managed switches, DHCP snooping information can be used by features such as IP Source Guard and Dynamic ARP Inspection.
DHCP Snooping Best Practices
Proper implementation is important to ensure that DHCP snooping improves security without disrupting legitimate network traffic.
Carefully Identify Trusted Ports
Only ports that legitimately need to receive or transmit DHCP server traffic should be trusted.
Do not automatically trust an entire switch simply because it is part of the network infrastructure.
Monitor DHCP Binding Information
Review the DHCP snooping binding table and switch logs when troubleshooting unexpected DHCP activity.
Use Appropriate Rate Limits
DHCP rate limits should be high enough to accommodate legitimate devices while still limiting excessive traffic.
Segment the Network
VLAN segmentation can limit the scope of broadcast traffic and help separate different types of devices and users.
Combine DHCP Snooping with Other Security Controls
Where supported, consider combining DHCP snooping with port security, Dynamic ARP Inspection, IP Source Guard, and other appropriate controls.
Keep Switch Firmware Updated
Network switches should be maintained with current vendor-supported firmware and security updates when available.
Test Before Deployment
DHCP snooping can affect legitimate DHCP traffic if incorrectly configured. Test the configuration before deploying it across a production network.
Troubleshooting DHCP Snooping
If clients stop receiving IP addresses after DHCP snooping is enabled, configuration should be one of the first areas investigated.
Common issues include:
- A legitimate DHCP server port is not configured as trusted.
- DHCP snooping has not been enabled on the correct VLAN.
- A DHCP relay configuration requires additional consideration.
- DHCP rate limits are too restrictive.
- The switch configuration does not match the network topology.
- A trunk or uplink port has been incorrectly classified as trusted or untrusted.
When troubleshooting, first verify the DHCP path from the client to the legitimate DHCP server.
Then check the switch's DHCP snooping status, trusted interfaces, VLAN configuration, rate limits, and binding table.
Is DHCP Snooping Enough to Secure a Network?
No. DHCP snooping should be considered one component of a broader network security strategy, not a complete security solution.
DHCP snooping addresses specific DHCP-related threats. It does not replace firewalls, endpoint security, authentication, network segmentation, access controls, intrusion detection, or other appropriate security measures.
Its value comes from adding another layer of protection at the network switch.
For example, a managed switch could use DHCP snooping to control DHCP server responses, Dynamic ARP Inspection to validate ARP traffic, and IP Source Guard to help restrict unauthorized IP addresses.
This layered approach can make the network more difficult to compromise through common Layer 2 attack techniques.
Frequently Asked Questions About DHCP Snooping
What is the primary purpose of DHCP snooping?
The primary purpose of DHCP snooping is to prevent unauthorized DHCP servers from sending DHCP responses to network clients. It does this by allowing administrators to identify trusted and untrusted switch ports and filtering DHCP traffic accordingly.
Is DHCP snooping a firewall?
No. DHCP snooping is a switch-level security feature that focuses specifically on DHCP traffic. It does not replace a firewall or provide general network traffic filtering.
Does DHCP snooping prevent all man-in-the-middle attacks?
No. DHCP snooping can help prevent certain DHCP-based attack scenarios, including attacks involving rogue DHCP servers, but it does not prevent all forms of man-in-the-middle attacks.
Does DHCP snooping work on unmanaged switches?
DHCP snooping generally requires a managed switch that supports the feature because the switch must be capable of inspecting DHCP traffic and applying trusted/untrusted port policies.
Does DHCP snooping protect against DHCP starvation?
It can help mitigate DHCP starvation when combined with appropriate DHCP rate limiting. The exact capabilities depend on the switch.
What other switch features work with DHCP snooping?
Depending on the switch, DHCP snooping can work with features such as IP Source Guard, Dynamic ARP Inspection, and port security to provide additional network protection.
Protect Your Network with Managed Ethernet Switching
DHCP snooping is a relatively simple concept, but it provides an important security function: controlling where DHCP server responses are allowed to originate within a switched network.
By configuring trusted and untrusted ports, maintaining DHCP binding information, and applying appropriate traffic limits, network administrators can reduce the risk associated with rogue DHCP servers and certain DHCP-based attacks.
For organizations building or upgrading an Ethernet infrastructure, the capabilities of the network switch itself are an important consideration.
Versitron managed switches provide the management and network-control capabilities needed for a variety of commercial, industrial, security, and fiber optic networking applications. When selecting a managed switch, consider not only port count and fiber connectivity, but also the Layer 2 security, VLAN, PoE, management, and traffic-control features required by the network.
A properly selected and configured managed switch can serve as an important part of a layered network security architecture.
R.W. Tull