What is DHCP?Why it mattersHow DHCP worksStatic vs. dynamicLease managementDHCPv4 vs DHCPv6SecurityEnterprise DHCPFAQ
DHCP Explained

What is DHCP?

DHCP is the silent workhorse of every network — automatically assigning IP addresses to every device that connects, reclaiming them when they leave, and making large-scale network management possible.

What is DHCP?

Dynamic Host Configuration Protocol (DHCP) is a network protocol that automatically assigns IP addresses and essential configuration parameters to devices the moment they connect to a network.

DHCP stands for Dynamic Host Configuration Protocol. "Dynamic" refers to how IP addresses are assigned automatically and temporarily, rather than being fixed manually. "Host Configuration" refers to the full set of network parameters — not just the IP address — that DHCP provides. "Protocol" refers to the standardized rules governing the exchange between a client and a DHCP server.

When a device joins, it sends out a request; the DHCP server responds within milliseconds with everything that device needs to communicate — no manual intervention, no configuration files, no room for human error. Beyond IP addresses, DHCP also assigns subnet masks, default gateways, and DNS server addresses. It was originally defined in RFC 2131 as an enhancement of the older BOOTP protocol and remains the backbone of IP address management in virtually every modern network.

Why is DHCP important?

DHCP makes network management scalable. Without it, every device that joins a network requires manual configuration — slow, error-prone, and unworkable at enterprise scale.

Reduced overhead

Devices are ready to communicate the moment they connect — no manual setup required.

♻️
Optimized IP utilization

Addresses are leased temporarily and reclaimed when devices leave — preventing exhaustion.

➡️
Seamless mobility

Users move between floors, offices, or VLANs and DHCP issues new configuration automatically.

These benefits become especially significant as networks grow. The rise of BYOD policies, IoT devices, remote work, and 5G has dramatically increased the number of endpoints organizations must manage. DHCP is the foundational protocol that makes this growth manageable.

How DHCP works — the DORA process

When a device connects, it has no IP address and no way to communicate with a specific server. DHCP solves this through a four-step process known as DORA: Discover, Offer, Request, and Acknowledge. The entire exchange typically completes in under a second.

Discover

The client broadcasts a DHCPDISCOVER message to 255.255.255.255 to locate any available DHCP server on the local segment. The message includes the client's MAC address.

  • Broadcast to 255.255.255.255
  • Sent before the client has any IP address
  • Includes the client's MAC address
DORA step 1 of 4
Message typeDHCPDISCOVER
Server portUDP 67
Client portUDP 68

Offer

Any available DHCP server replies with a DHCPOFFER containing a proposed IP address, lease duration, subnet mask, gateway, and DNS servers.

  • Proposed IP address
  • Lease duration + subnet mask
  • Default gateway and DNS servers
DORA step 2 of 4
Message typeDHCPOFFER
Server portUDP 67
Client portUDP 68

Request

The client broadcasts a DHCPREQUEST accepting one offer, simultaneously notifying other servers that their offers were not selected so they can return those addresses to their pools.

  • Accepts a single offer
  • Notifies non-selected servers
  • Frees unused offered addresses
DORA step 3 of 4
Message typeDHCPREQUEST
Server portUDP 67
Client portUDP 68

Acknowledge

The selected server sends a DHCPACK confirming the lease. The client configures its network interface and begins communicating.

  • DHCPACK confirms the lease
  • Client configures its interface
  • Device begins communicating
DORA step 4 of 4
Message typeDHCPACKNOWLEDGE
Server portUDP 67
Client portUDP 68

What ports does DHCP use? DHCP uses two UDP ports — the server listens on UDP 67 and the client receives responses on UDP 68. These port numbers are defined in RFC 2131 and have remained unchanged since the protocol was introduced.

Relay agents & reservations

Relay
The DHCP relay agent
Serving multiple subnets from one server

Because DHCP discovery messages are broadcast-based, they cannot cross subnet boundaries on their own. A relay agent sits at the network layer and forwards DHCP messages between clients on remote subnets and a centralized DHCP server — allowing a single server to serve a multi-subnet enterprise network.

Reservations
DHCP reservations
The best of both worlds

A reservation maps a specific IP address to a device's MAC address, ensuring that device always receives the same IP while keeping the address within the DHCP management system. Unlike static configuration, reservations are managed centrally, documented, and visible in lease logs.

Enterprise
DHCP in the enterprise
An operational necessity

Working alongside Dynamic DNS (DDNS), DHCP makes BYOD, IoT, and 5G scale manageable. Integrated DDI platforms (DNS, DHCP, and IP address management) provide a single management plane with real-time visibility into every lease, scope, and device on the network.

Static vs. dynamic IP addresses

Static IPDynamic IP (DHCP)
AssignmentManually configured by adminAutomatically assigned by DHCP server
PermanenceFixed, never changesTemporary, renewed after lease expires
IP exhaustion riskHigh — address held even when device is offlineLow — address reclaimed after lease expires
Best forServers, printers, routers, critical infrastructureEnd-user devices, laptops, phones, guests
ScalabilityPoor for large networksScales easily to thousands of devices

DHCP lease management

A DHCP lease is the time-limited assignment of an IP address to a client device. When a lease reaches its halfway point (T1) the client renews with its assigned server; at 87.5% (T2) it broadcasts to any server; if it expires the client restarts DORA.

1
0% · Lease granted
DHCPACK received, IP assigned
2
50% — T1 · Renew (unicast)
Client renews with original server
3
87.5% — T2 · Rebind (broadcast)
Client asks any available server
4
100% · Expired
Address reclaimed, restart DORA

DHCPv4 vs. DHCPv6

DHCPv4
DHCPv4

Uses 32-bit addresses in the familiar dotted-decimal format. Defined in RFC 2131. The dominant protocol for client configuration on most enterprise networks today.

Example address192.168.1.100
DHCPv6
DHCPv6

Defined in RFC 8415. Serves the same function for IPv6's 128-bit addresses. Operates in stateful mode (assigning specific addresses) or stateless mode (parameters only, self-assigned via SLAAC). Most enterprises run dual-stack.

Example address2001:db8::1000

DHCP security

DHCP's automatic, trust-based nature makes it a target. Understanding the common threats — and their defenses — is essential for any network administrator.

🛡️
Rogue DHCP servers

An unauthorized DHCP server — set up maliciously or accidentally by a misconfigured home router. If it responds faster than the legitimate server, it can route traffic through an attacker-controlled gateway, provide a malicious DNS server, or enable a man-in-the-middle attack.

🌊
DHCP starvation attacks

A starvation attack floods a DHCP server with DISCOVER requests using spoofed MAC addresses until the address pool is exhausted. Legitimate devices can no longer obtain IPs — often followed by standing up a rogue server to serve the now-unresponsive network.

🔒
DHCP snooping

A switch security feature that classifies each port as trusted (legitimate servers and uplinks) or untrusted (end-device ports). Server responses on untrusted ports are dropped and DISCOVER messages are rate-limited — neutralizing both rogue server and starvation attacks.

Best practices

Separate DHCP from DC

Running DHCP on a domain controller increases blast radius. Use dedicated DHCP servers.

Implement failover

Configure primary and secondary servers in a failover pair to maintain availability.

Monitor lease logs

Review history regularly — devices cycling through many IPs may signal a starvation attack.

Fingerprinting for NAC

Combine DHCP fingerprinting with NAC policies to enforce device-type rules automatically.

Frequently asked questions

Common questions about DHCP servers, leases, scopes, security, and ports.

A DHCP server is a network server that automatically assigns IP addresses and configuration parameters to devices on a network. It maintains a pool of available IP addresses, issues leases to connecting clients, tracks active assignments, and reclaims addresses when leases expire. DHCP servers can be dedicated physical or virtual appliances, software running on a network device, or a service within an integrated DDI management platform.
DHCP is important because it automates IP address assignment across a network, eliminating the need for manual configuration of each device. Without DHCP, every device would need to be individually configured with a static IP address, subnet mask, gateway, and DNS settings — a process that is unscalable and error-prone on any network with more than a handful of devices. DHCP also improves IP address efficiency by reclaiming addresses from devices that disconnect, preventing exhaustion.
The DORA process is the four-step sequence by which a DHCP client obtains an IP address from a DHCP server. DORA stands for Discover (client broadcasts a request), Offer (server responds with an available address), Request (client accepts the offer), and Acknowledge (server confirms the assignment). The entire process typically completes in under a second and is initiated automatically each time a device connects to a network.
A DHCP lease is the time-limited assignment of an IP address to a client device. Every lease has a configured duration, commonly 24 hours, after which the client must renew the lease or the address is returned to the available pool. Lease management is a critical aspect of network administration because it directly affects IP address availability, network documentation accuracy, and security audit capability.
A DHCP scope is the defined range of IP addresses that a DHCP server can assign within a specific subnet, along with associated configuration parameters such as subnet mask, default gateway, DNS servers, and lease duration. Each subnet in a network typically has its own scope. Administrators can define exclusion ranges within a scope to reserve specific addresses for static assignment, and can configure scope-level options that override server defaults for devices on that subnet.
A rogue DHCP server is an unauthorized DHCP server operating on a network, either deployed maliciously by an attacker or accidentally introduced by a misconfigured device such as a home router connected to the corporate network. A rogue server can respond to client DISCOVER messages before the legitimate server, providing fraudulent IP configuration data that redirects traffic, enables man-in-the-middle attacks, or disrupts network connectivity. DHCP snooping on managed switches is the primary defense against rogue DHCP servers.
DHCP uses two UDP ports. UDP port 67 is used by the DHCP server to receive requests from clients. UDP port 68 is used by the DHCP client to receive responses from the server. These port numbers are defined in RFC 2131 and are standardized across all DHCP implementations. Note that DHCP uses UDP (not TCP) because the initial client broadcast occurs before the client has an IP address, making a connection-oriented protocol like TCP impossible at that stage.

Ready to take control of your IP address space?

Experience DHCP-driven IP automation with ManageEngine DDI Central.