INFINITE UPSIDE

Technology and operations

How Does DHCP Give a Device an IP Address?

A network address can be temporary and still be perfectly normal.

A printer was working yesterday. Today the computer cannot find it, even though the printer has power and the network name looks familiar. The address saved in the computer may no longer lead to that printer. That is one possible explanation, not a diagnosis—and it starts with understanding how the address was assigned.

Dynamic Host Configuration Protocol, or DHCP, automatically supplies devices with network configuration, commonly including an IP address for a limited lease period. It can also provide settings such as a default gateway and DNS servers. A router, dedicated server or other configured device may provide the service. Cisco’s DHCP guide describes the address pool, lease and exchange. The exact options and behavior depend on the network.

The address is part of a larger set of instructions

An IP address identifies a network interface for communication on an IP network. The subnet information helps the device determine which destinations it treats as local. The default gateway identifies where it can send traffic intended for other networks. DNS settings help it look up names. Getting an address alone does not prove that every one of those pieces is correct or that a website will load.

Imagine a fictional office network configured to assign private IPv4 addresses from a defined range. A laptop joins and receives an available address and other settings from the DHCP service. Another laptop should not be offered that same active lease by the same correctly functioning server. The address is a local network configuration, not a guaranteed identity for the laptop across every network it visits.

IP networking also uses IPv6, and a device may have more than one address or interface. This guide uses a simple IPv4 example because it makes the pool and lease easier to picture. It does not imply that IPv6 works identically or that all traffic leaves through the same interface.

Discover, offer, request, acknowledge

One common initial IPv4 exchange has four messages, often shortened to DORA. The client broadcasts a discovery message seeking a DHCP server. A server can offer an address and configuration. The client requests an offered configuration, and the server acknowledges the lease. The client can then use the acknowledged settings, subject to the network’s rules.

That sequence is a useful model, not a literal description of every packet in every renewal, relay arrangement or address-family implementation. A DHCP relay can carry requests between a client network and a server located elsewhere. More than one server can be designed into a network, but uncoordinated servers or conflicting configurations can also cause trouble. Find out how the actual network is intended to work before treating an unfamiliar device as the culprit.

The Cisco overview of the exchange and lease renewal is useful background. Its configuration examples concern a particular product; an office using another platform should follow its own documentation and change process.

A lease is not a countdown to disconnection

A lease states how long a client may use an assigned address under the server’s terms. Clients normally attempt to renew before the lease expires. If renewal succeeds, the same address can remain in use across successive lease periods. A lease duration does not mean the server necessarily changes everyone’s address at the end of each period.

Suppose a fictional network uses a 24-hour lease. A laptop receives an address at 9 a.m. on Monday and successfully renews it later according to its client and server behavior. It may still have the same address on Tuesday and afterward. If it leaves, the lease expires and the address becomes eligible for reuse under the server’s rules, the server may later assign that address to another device. The exact timing depends on the implementation and what the server knows about the lease.

Lease length is an operating choice. A short lease can return unused addresses to a busy guest network sooner, but it can also increase renewal activity and make a server outage more consequential over a given period. A longer lease reduces some churn but does not create an unlimited pool. The sensible setting depends on device turnover, address capacity and the reliability of the DHCP service—not a universal number copied from a forum.

Count the pool before blaming the printer

Imagine a fictional DHCP pool contains 100 usable addresses after the administrator has already excluded the gateway, fixed-address devices and any other reserved space. If 86 are currently leased and 8 more are reserved for devices that are not currently connected, the capacity picture depends on how that particular server treats reservations and reports availability. If those eight addresses are withheld from general assignment, only six addresses remain in the general pool: 100 minus 86 minus 8.

That example is deliberately explicit about the server’s accounting. A dashboard might count reservations within an “in use” figure or show expired leases differently; subtracting every number on screen without checking definitions can double-count. Look at the actual lease list, pool range, exclusions, reservations and server documentation together. A “pool full” condition is a capacity or configuration finding, not proof that 100 people are physically in the office.

Guest phones, payment terminals, cameras, tablets, access points and devices returning after being offline can all affect demand. Separate networks can have separate scopes. Expanding a range without understanding the subnet, static addresses, routing and security design can create new conflicts. Have the network administrator review the plan before changing it.

A DHCP reservation tells the server to associate a particular address with an identified client under the server’s rules. A manually configured static address is set on the device rather than obtained as an ordinary dynamic lease. Both can make a device easier to find at a predictable address, but they have different administration and failure modes.

A reservation still depends on the server recognizing the intended client and providing correct options. A static configuration can work without receiving that lease, but a manually entered gateway, subnet or DNS setting can be wrong or become outdated. A static address placed inside a general pool without an appropriate exclusion can also conflict with an address assigned elsewhere. The right design records who owns the address and where the corresponding configuration is maintained.

For the fictional printer, a reservation might be one solution if the network supports it and the administrator confirms that the printer’s identity and existing settings are correct. A DNS name or supported printer-discovery method may be more appropriate in another environment. Do not assume that a reservation alone repairs a bad cable, a changed Wi-Fi network, a sleeping printer or an application using an obsolete name.

DHCP and DNS have different jobs

DHCP can tell a device which DNS servers to use. DNS answers questions such as which address a name currently refers to. A device can receive a valid address yet fail to resolve a name, or resolve a name while lacking a working route to the destination. A DNS result may also be cached. Our guide to DNS changes, TTL and caches looks at that separate timing issue.

For a useful support report, record whether the problem affects one device or several, the network and approximate time, and whether access fails by name, by a known address, or both. Record the observed address and whether it is the expected kind for that network, without posting private network details publicly. An address beginning with 169.254 can be a clue that an IPv4 client selected a link-local address after failing to obtain ordinary configuration, but it is not a universal diagnosis. The device, platform and network design matter.

Evidence before a change

Ask whether other devices on the same network are affected and whether the problem began after a move, power interruption or configuration change. Compare the client’s settings with the intended scope. The administrator can check the DHCP service, lease availability, relay path where applicable and server logs. A single successful test does not prove that a problem cannot recur when a lease renews or a device moves between networks.

Avoid clearing a whole lease database, resetting equipment or changing address ranges simply because one endpoint looks wrong. Those actions can interrupt other users and obscure the original evidence. A targeted renewal or device restart may be appropriate under the organization’s normal support procedure, but record the original state first and involve the person responsible for the network.

The practical question is not “Does the laptop have an IP address?” It is “Did it receive the right configuration for this network, is the lease still valid, and can the rest of the path do its job?” That sequence keeps an address assignment problem separate from name resolution, routing and the application someone actually needs to use.

Explore Infinite Upside

For Vijay Sheth’s personal accounts, read Infinite Upside: Building Wealth With Room to Live, published by Sheth Capital, Inc.

Find your edition · Chapter companion

ABOUT THE CONTRIBUTOR

Luna Lim

DIRECTOR OF FINANCIAL RESEARCH & EDITORIAL STRATEGY

SHETH CAPITAL, INC.

Luna Lim writes about business, investing, and the judgment behind financial decisions. She joined PCH Exotics Inc. as Director of Operations in 2022, working across La Jolla and Miami. Today, she reports directly to Vijay Sheth at Sheth Capital, Inc., bringing an operator’s perspective to the ideas she covers.

Based in Pacific Beach, California, Luna is curious about the people behind the numbers: what they’re building, how they weigh uncertainty, and what makes a risk worth taking. Her articles for Infinite Upside follow those questions through the details, with clear explanations and a feel for how decisions play out in everyday business.

More from Luna Lim

The Infinite Upside store