November 26, 2026

DHCP Reservation vs Static IP: Which to Use in a Home Lab

A home lab shelf with a router, switch, NAS and single-board computer connected by patch cables

3 packets transmitted, 3 received, 0% packet loss. That ping went to 10.49.0.100 on a small test network, and it came back clean while two different machines held that exact address, one handed it by a DHCP server and one with it typed in by hand. Nothing in the output hinted at a problem. Duplicate addresses rarely announce themselves; they surface weeks later as a NAS that drops off the network for no visible reason, which is why the choice between a DHCP reservation and a static IP matters more than a settings page makes it look.

Video: AsoftClick on YouTube

How a DHCP lease actually works

A rental agreement with two reminder dates

DHCP was written down in RFC 2131 in March 1997, and the document describes three ways a server can hand out addresses. Under “automatic allocation,” DHCP “assigns a permanent IP address to a client.” Under “dynamic allocation,” it “assigns an IP address to a client for a limited period of time.” Under “manual allocation,” “a client’s IP address is assigned by the network administrator,” and DHCP just delivers it. That third mechanism is what home routers call a reservation.

A dynamic address is a lease, and the lease comes with two timers. The RFC sets the defaults: “T1 defaults to (0.5 * duration_of_lease)” and “T2 defaults to (0.875 * duration_of_lease).” At T1 the client “moves to RENEWING state and sends (via unicast) a DHCPREQUEST message to the server” that issued the lease. If that server stays quiet until T2, the client moves to REBINDING and broadcasts the request to any server that will listen.

A test makes this concrete. On an Ubuntu 24.04 test container, Linux network namespaces stood in for a small LAN: one namespace running dnsmasq as the DHCP server on 10.49.0.1, four namespaces as clients, all wired to one virtual bridge. The pool was deliberately tiny, two addresses (10.49.0.100 and .101), with a two-minute lease so the timers would be visible. The dnsmasq log of the offer shows the RFC’s defaults on the wire:

sent size:  4 option: 51 lease-time  2m
sent size:  4 option: 58 T1  1m
sent size:  4 option: 59 T2  1m45s

One minute is half the lease, and one minute forty-five seconds works out to 87.5 percent of it, so the server on this test box was following the 1997 defaults to the second.

Close-up of lit Ethernet ports on a network switch with a tagged cable

A reservation, tested

Same address every time, and it doesn’t have to live in the pool

The test server also carried one reservation: the client with MAC address 02:00:00:00:49:0a always gets 10.49.0.20, under the hostname “nas.” That address is outside the two-address pool on purpose. The dnsmasq manual says addresses assigned with --dhcp-host “are not constrained to be in the range given by the –dhcp-range option,” though “they must be in the same subnet as some valid dhcp-range.” The relevant server flags:

--dhcp-range=10.49.0.100,10.49.0.101,255.255.255.0,2m
--dhcp-host=02:00:00:00:49:0a,10.49.0.20,nas

The client ran the ISC dhclient that ships with Ubuntu:

$ dhclient -v -1 eth0
Internet Systems Consortium DHCP Client 4.4.3-P1
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
DHCPOFFER of 10.49.0.20 from 10.49.0.1
DHCPREQUEST for 10.49.0.20 on eth0 to 255.255.255.255 port 67
DHCPACK of 10.49.0.20 from 10.49.0.1
bound to 10.49.0.20 -- renewal in 55 seconds.

Discover, offer, request, acknowledge: four messages, and the address is bound. The server’s lease file records the binding (the first field, an expiry timestamp, is trimmed here):

02:00:00:00:49:0a 10.49.0.20 nas *

The machine still asks for its address like any other client. It just always gets the same answer, and the router remains the one place that knows who owns what.

A static IP inside the pool, tested twice

The router checks before it hands out an address, unless it doesn’t

The classic home lab mistake is to give a server a static address that happens to sit inside the router’s DHCP pool. The test reproduced it: one client namespace was given 10.49.0.100 by hand with ip addr add, no DHCP involved. Then two more clients asked for leases.

RFC 2131 expects servers to guard against this. It says “the allocating server SHOULD probe the reused address before allocating the address,” and dnsmasq does it by default: the manual says “By default, the DHCP server will attempt to ensure that an address is not in use before allocating it to a host,” by sending an ICMP echo request. With that default in place, the results:

== client b (DHCP)
DHCPOFFER of 10.49.0.101 from 10.49.0.1
bound to 10.49.0.101 -- renewal in 47 seconds.
== client d (DHCP)
(no offer received)

dnsmasq-dhcp: DHCPDISCOVER(eth0) 02:00:00:00:49:0d no address available

The ping check worked. The server saw something answering at .100, skipped it, gave .101 to the next client, and then had nothing left for the last one. Nobody got a duplicate. One device simply couldn’t join the network, and the only explanation sat in a server log most people never open.

Then the same run again with --no-ping, the flag the manual describes with a two-word warning: “Use with caution.”

== client b (DHCP)
DHCPOFFER of 10.49.0.100 from 10.49.0.1
bound to 10.49.0.100 -- renewal in 49 seconds.
== addresses
a: 10.49.0.20/24
b: 10.49.0.100/24
c: 10.49.0.100/24
d: 10.49.0.101/24
== who answers for 10.49.0.100, asked from client a
3 packets transmitted, 3 received, 0% packet loss
10.49.0.100 dev eth0 lladdr 02:00:00:00:49:0c REACHABLE

Two machines, one address. The DHCP client accepted the lease without objection, even though RFC 2131 says the client “SHOULD perform a final check on the parameters (e.g., ARP for allocated network address)” and, if the address is in use, “MUST send a DHCPDECLINE.” The ping from a third machine succeeded, and the neighbor table shows who actually answered: 02:00:00:00:49:0c, the hand-configured machine, not the DHCP client that believed it owned the address. Traffic meant for one box was going to the other, and neither machine logged a complaint.

A laptop terminal showing DHCP server log lines on a workbench

What the standards say about duplicate addresses

Conflict detection exists, and it can only shout

RFC 5227, published in July 2008, tightened the rules for every IPv4 host, not just DHCP clients. It says a host “MUST test to see if the address is already in use, by broadcasting ARP Probe packets” before using it. When a conflict turns up after configuration, a host “MAY elect to immediately cease using the address,” or it may try to defend the address with one announcement and back down if the conflict continues.

The RFC is direct about where duplicates come from. It names the problem of “accidentally configuring two Internet hosts with the same IP address” and says detection still matters “even when a device is manually configured with a fixed address,” since a conflict pollutes other hosts’ ARP caches. The static box has no lease, no server watching it, and no renewal date. It is the one device on the network nobody double-checks.

The test above shows the gap between the standard and a real stack: the client that took .100 printed bound to 10.49.0.100 and carried on. Behavior varies by operating system and DHCP client, so the only reliable defense is a numbering plan that never lets the two collide.

Where people get burned

Five ways the address plan breaks without warning

Static addresses inside the DHCP pool. The test covers it. With the ping check on, the pool quietly shrinks and some new device fails with “no address available.” With the check off or broken, two machines share an address and the network neighbor table decides who wins.

Reservations keyed to a MAC address that changes. Reservations match on hardware address, and Apple devices can rotate theirs. Apple’s private Wi-Fi address support page says a device “identifies itself to each network using a different Wi-Fi address, and might rotate (change) the address periodically.” The “Rotating” setting moves to a new private address “every 2 weeks,” while “Fixed” is the default on networks with WPA2 or stronger security. Fixed is the default only on those secured networks, so a reservation made for a phone on an open guest network can stop matching without anyone touching the router.

A router reset that wipes the reservation list. Reservations live on the router. If the router config isn’t backed up, a factory reset sends every reserved device back to a random pool address, and services pointing at the old addresses break at once. A static IP survives a router swap; a reservation survives a reinstall of the server. Each covers the failure the other doesn’t.

DNS and VPN configs pointing at addresses. A Pi-hole box is the textbook case, since every client on the network sends lookups to its address. The x9m8 Pi-hole guide lists a static address as a requirement, with a router reservation as the acceptable fallback. A WireGuard home VPN endpoint configured by IP has the same dependency. If the address shifts, every device in the house loses name resolution together.

Two DHCP servers on one LAN. A mesh kit in router mode plugged into an ISP gateway that also runs DHCP produces two servers answering the same broadcast. The dnsmasq manual says --dhcp-authoritative “Should be set when dnsmasq is definitely the only DHCP server on a network,” which assumes someone has checked that it is.

Two identical keys beside a padlock, a picture of two devices sharing one IP address

The case for typing it in by hand

When the router is the thing most likely to fail

The reservation camp has a strong argument: one source of truth, nothing to remember, every address visible on one page. It loses that argument for the machines the router depends on. A box that runs the network’s DNS, its DHCP, or the controller for a Home Assistant setup on a Raspberry Pi can’t wait for a DHCP answer from a server that might be the thing that just rebooted. Infrastructure that has to come up first gets a static address. Everything else asks politely.

The rule that makes both work is the one the test broke on purpose. Carve the subnet into bands: keep the DHCP pool to one end (say .100 through .199), put static infrastructure at the other (.2 through .49), and give reserved addresses a third band for devices that should stay put but don’t hold up the network. Write the list down somewhere other than the router, since the router is the box most likely to forget it.

Small Wi-Fi gadgets add one more wrinkle. A smart plug whose app has no network settings can only take what DHCP gives it, so a reservation is the only tool that reaches it, and its radio lives on whatever channel the access point picked, the subject of the Wi-Fi channels explainer.

Which leaves one honest question for anyone running a home lab: if the router died tonight, would the address list survive it, or does the only copy live inside the box that just died?

Sources

  • RFC 2131, Dynamic Host Configuration Protocol (March 1997): https://www.rfc-editor.org/rfc/rfc2131
  • dnsmasq manual page: https://thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html
  • RFC 5227, IPv4 Address Conflict Detection (July 2008): https://www.rfc-editor.org/rfc/rfc5227
  • Apple Support, Use private Wi-Fi addresses on Apple devices: https://support.apple.com/en-us/102509

487 Posts

Peter Kalafatis writes and edits X9M8. He holds a bachelor's degree from LIU Post and a master's in Media Studies from The New School, with academic work in the philosophy of science, human behavior, AI, and memetics.

View All Posts

Leave a Reply

Your email address will not be published. Required fields are marked *