Skip to main content

CNiC Solutions

IT professional working on a business network switch and structured cabling in a server closet

Every device on a network needs a unique IP address to communicate, the same way every building on a street needs its own address for mail to arrive. Someone, or something, has to hand out those addresses and make sure no two devices get the same one. On almost every business network, that job belongs to DHCP. It works silently in the background every time a laptop opens, a phone joins the Wi-Fi, or a new printer is plugged in. This guide explains what DHCP is, the four-step process it uses to assign an address, what else it configures beyond the IP, how leases work, how it differs from DNS (the two are constantly confused), and why getting it right matters for a business network.

Key Takeaways

  • DHCP hands out IP addresses automatically. Without it, an administrator would configure every device by hand.
  • It uses a four-step exchange called DORA: Discover, Offer, Request, Acknowledge.
  • It assigns more than an IP. It also delivers the subnet mask, default gateway, and DNS servers a device needs to actually communicate.
  • Addresses are leased, not permanent. Devices renew automatically, and unused addresses return to the pool.
  • DHCP and DNS are different jobs. DHCP gets a device onto the network; DNS helps it find other things by name.
  • It is a security surface too. A rogue DHCP server can hijack traffic, which is why business networks harden it.

What’s in This Guide

What DHCP Is

DHCP stands for Dynamic Host Configuration Protocol. It is a client/server system that automatically provides a device (the client) with an IP address and the other settings it needs to operate on a network. It is defined as an internet standard by the IETF in RFC 2131, and it builds on the older Bootstrap Protocol (BOOTP).

The word “dynamic” is the key. Before DHCP, an administrator had to assign every device a fixed IP address by hand, keep a spreadsheet of which address went where, and reclaim addresses when machines left. On a network of any size that is tedious and easy to get wrong, and two devices accidentally sharing an address will knock each other offline. DHCP automates the whole thing: a server holds a pool of available addresses, leases one to each device as it connects, and returns addresses to the pool when they are no longer in use.

In a small business, the DHCP server is often built into the internet router or firewall. In larger environments it usually runs on a dedicated server (for example, the DHCP Server role in Windows Server) so that addressing can be managed centrally across multiple locations and subnets.

How DHCP Works: The DORA Process

When a device joins a network, it does not yet have an IP address, so it cannot just ask a specific server for one. Instead, DHCP uses a four-step exchange that networking professionals remember by the acronym DORA: Discover, Offer, Request, Acknowledge. Here is what happens in the fraction of a second after you connect:

  1. Discover: The device broadcasts a “DHCP Discover” message to the entire local network, essentially asking, “Is there a DHCP server out there, and can I get an address?”
  2. Offer: Any DHCP server that hears the request replies with a “DHCP Offer,” proposing an available IP address from its pool along with the other settings the device will need.
  3. Request: The device selects one offer (there may be more than one on larger networks) and broadcasts a “DHCP Request” message stating that it accepts that specific address.
  4. Acknowledge: The server confirms with a “DHCP Acknowledge” (ACK) message, finalizing the lease. The device applies the configuration and is ready to communicate.

The exchange uses UDP, with the server listening on port 67 and the client on port 68. Because the first messages are broadcasts, they normally stay within the local network segment. When a DHCP server sits on a different subnet, a DHCP relay agent forwards these requests across, which is what lets one central server handle addressing for an entire multi-subnet office without a server on every segment. For the exact message formats, Microsoft’s documentation notes that DHCP is defined by RFCs 2131 and 2132.

 

 

IT network and DHCP process diagram for cybersecurity and infrastructure management by CNiC Solutions.
DHCP assigns an address in four steps, DORA: Discover, Offer, Request, Acknowledge.

 

 

What DHCP Assigns Besides the IP Address

People think of DHCP as “the thing that gives you an IP address,” and it does, but an IP address alone is not enough for a device to actually communicate. DHCP delivers a small bundle of settings, called DHCP options, in the same exchange. The most important ones are:

  • IP address: The unique address the device uses on the network.
  • Subnet mask: Tells the device which portion of the network it belongs to, so it knows which other addresses are local versus remote. (This is closely tied to how a network is divided into subnets.)
  • Default gateway: The address of the router that traffic goes through to reach other networks and the internet. Microsoft’s documentation lists this DHCP option under its formal name, “Router.”
  • DNS servers: The addresses of the servers that translate names like cnicsolutions.com into IP addresses, so the device can browse by name.
  • Lease duration: How long the device may keep the address before renewing.

Additional options can include the domain name, time (NTP) servers, and vendor-specific settings. The takeaway is that DHCP does not just place a device on the network; it hands over everything the device needs to find its way around once it is there.

 

 

Infographic showing the settings DHCP assigns: IP address, subnet mask, default gateway, DNS servers, and lease time
DHCP delivers more than an IP: the subnet mask, default gateway, DNS servers, and lease a device needs to communicate.

 

 

DHCP vs DNS: Clearing Up the Confusion

DHCP and DNS are the two protocols people most often mix up, partly because they work together and both deal with IP addresses. They do completely different jobs. The simplest way to keep them straight: DHCP gets a device onto the network; DNS helps it find things once it is there.

  DHCP DNS
What it does Assigns a device its IP address and network settings Translates names into IP addresses
When it runs When a device joins the network Every time you reach a site or service by name
Question it answers “What is my address?” “What address is example.com?”
Analogy Assigning your house its street number The phone book that looks up an address by name

They connect at one point worth knowing: DHCP is what tells your device which DNS servers to use. So DHCP configures the setting that DNS then relies on. One hands out the address; the other resolves names using a server address that was itself handed out by DHCP.

CNiC Solutions — Networking Services

DHCP Leases and Renewal

DHCP does not give a device an address permanently. It leases it for a set period, commonly anywhere from a few hours to several days depending on how the network is configured. Leasing is what keeps the address pool healthy: when a device leaves and its lease expires, that address is freed up for the next device that needs one.

Renewal happens automatically and invisibly. A device does not wait until its lease is up to act. It normally tries to renew at about halfway through the lease period by contacting the server that gave it the address. If that succeeds, and it usually does, the device keeps the same IP address and extends the lease. If the original server cannot be reached, the device tries again later in the lease window (a stage called rebinding) by broadcasting to any available server. Only if the lease fully expires with no server reachable does the device lose the address.

Dynamic vs Static: When to Use a Reservation

DHCP is the right default for the large majority of devices, laptops, phones, tablets, and workstations, that come and go and do not need to be found at a fixed address. Set-and-forget is exactly the point.

Some devices, though, are better off with a consistent address. A file server, a network printer, a security camera, a firewall, or a point-of-sale system is something other devices need to reach reliably, and chasing a changing address makes that harder. There are two ways to give a device a stable address:

  • Static IP: The address is configured manually on the device itself and never changes. It works, but it lives outside DHCP’s records, so it has to be tracked carefully to avoid conflicts.
  • DHCP reservation: The DHCP server is told to always hand the same address to one specific device, identified by its hardware (MAC) address. The device still uses DHCP normally, but it gets the same address every time. This gives you the stability of a static IP while keeping every address managed in one place.

For most business networks, reservations are the cleaner choice: you get predictable addresses for the devices that need them without maintaining a separate, hand-kept list that DHCP knows nothing about. Getting this split right is part of designing a network that stays organized as it grows, which is why it comes up early when setting up a business network from scratch.

DHCP and Network Security

Because DHCP quietly configures every device that joins, it is also a point attackers target. Two risks are worth understanding.

The rogue DHCP server problem. DHCP has no built-in way for a device to verify that an Offer came from a legitimate server. If an attacker (or even a misconfigured home router someone plugged in) starts answering Discover messages, devices may accept its settings, including a malicious default gateway or DNS server that routes their traffic through the attacker. This is a real man-in-the-middle risk on an unprotected network.

The other common issue is far more mundane: pool exhaustion. If the pool of available addresses is too small for the number of devices, or an attacker floods the server with fake requests to drain it (a “DHCP starvation” attack), legitimate devices stop getting addresses and cannot connect at all.

Managed networks address both with switch-level protections such as DHCP snooping, which lets the network trust DHCP replies only from the port where the real server lives and drop replies from anywhere else. Combined with proper network segmentation and monitoring, that closes off the rogue-server path. These controls are standard practice in a well-run environment, and they are the kind of detail that separates a network that merely works from one that is genuinely resilient. This is a natural extension of broader segmentation using VLANs.

Why DHCP Matters for Your Business

For most business owners, DHCP is invisible, and that is exactly how it should be. When it works, people plug in, connect, and get to work without a thought. The reasons it matters become obvious only when it is designed poorly or fails:

  • It scales your network without manual work. Adding devices, opening a new office, or supporting a fleet of laptops that move between sites all happen automatically instead of requiring hand configuration for each one.
  • It prevents address conflicts. Centralized assignment means two devices never end up fighting over the same address, one of the more frustrating and hard-to-diagnose network problems.
  • It makes troubleshooting faster. When addressing is managed in one place, an administrator can see what has an address, what is reserved, and what is failing, rather than hunting through individually configured machines.
  • It is a security control, not just a convenience. Properly hardened DHCP, with snooping, authorized servers, and sensible pool sizing, closes off a whole class of attacks that an unmanaged setup leaves wide open.

The gap between “DHCP happens to be turned on in our router” and “our addressing is designed, reserved, and secured” is where a lot of small networks quietly carry risk. CNiC Solutions designs and manages business networks so that addressing, segmentation, and security work together rather than being left to defaults, through our business networking services. For organizations that want their entire IT environment monitored and maintained, that networking work fits within fully managed IT support.

Talk to CNiC about designing and securing your business network

 

 

IT professional configuring managed network equipment for a small business
Well-run networks treat DHCP as something to design and secure, not just leave switched on by default.

 

 

Frequently Asked Questions

What is DHCP?

DHCP (Dynamic Host Configuration Protocol) is a client/server protocol that automatically assigns a device its IP address and related settings, such as the subnet mask, default gateway, and DNS servers, when it joins a network. It replaces slow, error-prone manual configuration with centralized, automatic addressing.

How does DHCP assign an IP address?

DHCP uses a four-step exchange known as DORA: the device broadcasts a Discover message, the server responds with an Offer, the device sends a Request to accept it, and the server confirms with an Acknowledgement. The device then uses the assigned address for the length of its lease.

What is the difference between DHCP and DNS?

DHCP assigns a device its IP address and network settings when it connects. DNS translates human-readable names like example.com into the IP addresses computers use to reach each other. DHCP gets a device onto the network; DNS helps it find other things once it is there.

What is a DHCP lease?

A DHCP lease is the fixed period a device is allowed to use an assigned IP address before it must renew. Devices typically renew automatically at about half the lease time, so the same address is usually kept, and unused addresses return to the pool for reassignment.

Should a device use DHCP or a static IP address?

Most devices, including laptops, phones, and workstations, should use DHCP for simplicity and fewer errors. Servers, printers, routers, and cameras that other systems must reach at a fixed address benefit from a static IP or a DHCP reservation, which pins a consistent address to one device.

About This Guide and Sources

The definitions and mechanics in this guide, DHCP as a client/server protocol, the four-step DORA exchange (Discover, Offer, Request, Acknowledge), the DHCP options for subnet mask, default gateway (Router) and DNS servers, the lease and renewal model, DHCP relay agents, reservations, and the fallback to a 169.254.x.x link-local address, reflect the internet standard defined by the IETF in RFC 2131 and RFC 2132 and are consistent with vendor documentation such as Microsoft’s Windows Server DHCP overview. Specific lease durations, pool sizes, and renewal timers vary by network and configuration; the figures described here (such as renewal at roughly half the lease) are standard default behavior, not fixed values for every network. Security practices such as DHCP snooping and server authorization are widely established mitigations for rogue-server and starvation attacks.

 

author avatar
David McFarlene Founder & CEO
David McFarlene is the owner and founder of CNiC Solutions, a trusted IT services and cybersecurity company serving the Houston, TX area. With over 20 years of experience in managed IT, infrastructure design, cloud solutions, and data security, David helps businesses and homeowners stay protected and productive through dependable, personalized technology support. He leads the CNiC Solutions team with a focus on reliability, transparency, and long-term relationships, ensuring clients always have a knowledgeable expert they can trust.
back to blog