What Is DHCP (Dynamic Host Configuration Protocol)?

Related problems: Devices on a new network segment cannot get an IP address; Users get "IP address conflict" errors; Guest Wi-Fi ran out of addresses during an event; Nobody knows which device on the network hands out addresses

Dynamic Host Configuration Protocol (DHCP) is the network protocol that automatically gives a device an IP address and the other settings it needs to communicate when it joins a network. Laptops, phones, printers, cameras and IP phones ask for an address as they connect, and a DHCP server answers with one from a defined pool, along with the gateway and DNS servers to use and how long the device can keep the address. Without it, each device would need to be configured by hand.

At a glance

  • DHCP hands out IP addresses and network settings to devices automatically when they connect.
  • Addresses are leased for a set time and returned to the pool when no longer used.
  • A server, often the router, firewall or a dedicated system, manages a pool for each network segment.
  • Reservations let specific devices receive the same address every time while still being managed centrally.
  • Problems with DHCP, such as an exhausted pool or a rogue server, can stop devices from getting online.

What problem it solves

Every device on an IP network needs a unique address, a subnet, a gateway to reach other networks and DNS servers to look up names. Entering those by hand is slow, error-prone and hard to change: two devices with the same address conflict, and moving to a new gateway or DNS server would mean touching every device.

DHCP centralizes that work. IT defines the address ranges and settings once per segment, and devices configure themselves when they connect. Moving a laptop between floors, adding a guest network or changing DNS servers becomes a change on the server, not on hundreds of devices. In networks with large numbers of short-lived devices, such as guest Wi-Fi, manual assignment is not practical.

How it works

The exchange. A device joining the network broadcasts a request for an address. A DHCP server replies with an offer, the device requests that address, and the server confirms it. Network engineers often summarize this as discover, offer, request and acknowledge.

Scopes and leases. The server holds a pool of addresses, called a scope, for each subnet or VLAN. Each assignment is a lease with an expiry time; devices renew before it ends. Short leases suit busy guest networks, longer ones suit stable office segments.

Options. Beyond the address, DHCP options carry the gateway, DNS servers, domain name and vendor-specific settings, such as where IP phones download their configuration.

Relay across segments. Because the initial request is a broadcast, it does not cross routers on its own. In networks with many VLANs, the router or switch for each segment relays requests to a central DHCP server.

IPv6. IPv6 networks can use DHCPv6, stateless address autoconfiguration, or both, depending on design and device support.

DHCP design and monitoring are often part of a managed LAN or WAN service; see our Managed Network Services solution page.

When it matters for buyers

  • New offices and network refreshes. Decide where DHCP will run and how scopes map to VLANs before cutover, or devices may not get addresses on day one.
  • Guest and IoT networks. Large numbers of devices can exhaust a scope; size pools and lease times for peak use.
  • Moving to cloud-managed networking. Some platforms run DHCP on the access point or gateway, which changes where you troubleshoot.
  • Security reviews. Rogue DHCP servers and unmanaged devices are common findings; switch features such as DHCP snooping help.
  • Voice and specialty devices. IP phones, cameras and building systems often rely on DHCP options to find their servers.

Questions to ask vendors

  • Where will DHCP run for each site and segment, and is there a backup if that server fails?
  • How will scopes, lease times and reservations be documented and changed?
  • Will you configure DHCP relay for each VLAN, and DHCP snooping on the switches?
  • How do you alert on scopes running low on addresses?
  • Do our phones, cameras or other devices need specific DHCP options?
  • How will IPv6 addressing be handled?

How it differs from a static IP address

A static IP address is one that is fixed and does not change, either typed into the device or assigned permanently by a provider. DHCP assigns addresses dynamically from a pool. The line can blur: a DHCP reservation gives a device the same address every time, but it is still delivered by DHCP and managed centrally. In buying terms, “static IP” usually means public addresses from an internet provider for hosting services or allowing remote access, while DHCP usually describes how devices inside the network get their private addresses. Those private addresses are often translated to a public one by network address translation (NAT) at the edge.

Frequently Asked Questions

What does a DHCP server hand out?
At minimum, an IP address and subnet mask. It usually also provides the default gateway, the DNS servers to use and a lease time, and it can supply other options, such as settings that IP phones need to find their call server.
Where does the DHCP server usually run?
In small offices it is often the router or firewall. In larger networks it is commonly a Windows or Linux server, a dedicated IP address management platform, or a cloud-managed network controller.
What is a DHCP reservation?
A reservation tells the DHCP server to give a specific device the same address every time, based on its hardware (MAC) address. It is a common way to keep printers or cameras on fixed addresses while still managing them centrally.
Does my internet connection use DHCP?
Many broadband services assign the customer's router its public address by DHCP. Business services with static IP addresses are usually configured by hand or with a fixed assignment from the provider.
What is a rogue DHCP server?
It is an unauthorized device, such as a consumer router plugged into the office network, that starts handing out addresses. Devices that take its answers can lose connectivity or have their traffic misdirected. Many switches can block it with a feature called DHCP snooping.

You Don’t Need Another Sales Call. You Need an Answer.

30 minutes. No pitch. Just an honest conversation about where you are, what you need, and whether working together makes sense.

We use your details to set up and prepare for the call, and send the newsletter only if you ask for it. Privacy policy.