
What is DHCP?
DHCP is the service that gives every device on a network an IP address automatically, along with the settings that go with it. Without it, someone would have to type an address into every laptop, phone and printer by hand.
What DHCP does
DHCP stands for Dynamic Host Configuration Protocol. The short answer to what is DHCP: an exchange between a device joining the network and a DHCP server that hands out addresses. The device receives an IP address, the subnet mask, the default gateway to other networks and the DNS servers it uses to look up names.
In an office, the DHCP server is rarely a separate box. It is a role on the firewall, the router, a layer 3 switch or a Windows server. At home, the router from your provider does it.
- Scope The range of addresses the server may hand out on a network, with the settings that belong to it.
- Lease An address is lent for a set time. The device renews it in good time; a device that leaves frees the address on its own.
- Reservation A fixed address for a particular device, tied to its hardware address. Useful for printers and cameras.
- Exclusion Addresses inside the range the server never hands out, because something with a static address already uses them.
The four steps: DORA
| Step | From | What happens |
|---|---|---|
| Discover | Device | Broadcasts to the whole network that it needs an address |
| Offer | DHCP server | Offers a free address, with gateway, DNS and lease time |
| Request | Device | Asks for the address it was offered |
| Acknowledge | DHCP server | Confirms; from now on the device may use the address |
That first step is a broadcast within one network, and a broadcast does not cross a router on its own. With several networks, for example a VLAN per group of devices, a DHCP relay on the router or switch forwards the request to the central server.
What goes wrong in an office
When DHCP falters, everyone notices, usually first thing in the morning.
The scope is full
A range sized for the desks fills up with phones and guest devices, and new devices get no address. A separate guest network and a sensible lease time prevent it.
Two servers hand out addresses
A router someone brought in, or one that is misconfigured, starts handing out addresses with the wrong gateway. Managed switches can block that with DHCP snooping.
One server, no backup
If the only DHCP server fails, existing devices carry on until their lease runs out and new ones cannot join. A second server in failover covers it.
Where our work stops
This is an explanation, not advice on a specific device. We set up and manage DHCP, DNS and the networks behind them; how that works when you outsource it is in Managed network, and the equipment we supply in Networking equipment. What separates the device that hands out addresses from the one that connects them is in Router vs switch. We also advise on, arrange and monitor the business internet connection, see Business internet; the operator’s network outside the building belongs to the operator, and a fault in it is fixed by the operator.
What it connects to
These pages cover the neighbouring part of the same environment.
Questions we get about this
The ones that come up most, answered briefly.
What is DHCP in simple terms?
The service that gives every device on a network an IP address automatically, together with the gateway and the DNS servers. Nobody has to set an address by hand on each device.
What is a DHCP server?
The device or service that hands out the addresses. In an office it is usually a role on the firewall, the router, a layer 3 switch or a Windows server, rather than a separate box.
What is the difference between a DHCP reservation and a static IP address?
With a reservation, the DHCP server always gives a device the same address and everything is kept in one central place. A static address is set on the device itself, and has to be excluded from the server’s range.
Do you also arrange the internet connection?
Yes. Alongside DHCP, DNS and the network, we advise on, arrange and monitor the business internet connection. The operator’s network outside the building remains the operator’s, and a fault in that network is fixed by the operator.
Curious what we would take over?
In a thirty-minute conversation we go through your current IT landscape and tell you honestly whether managed IT suits your situation.
Practical IT knowledge in your inbox
New guides on management, security and the workplace, written by the people doing the work. No sales talk, and you can unsubscribe in one click.