Wi-Fi & Home Networking

DHCP Reservations: Giving Devices a Permanent Address

Set up a DHCP reservation so your printer, NAS or camera keeps the same local IP address, and avoid the conflicts that static settings cause.

Key takeaways

  • A reservation links a device's MAC address to a chosen IP address inside the router's DHCP service.
  • It beats typing a static address into the device because all assignments live in one place and conflicts are less likely.
  • Reserve addresses for things other devices need to find, such as printers, servers and port-forwarding targets.
  • The device picks up its reserved address at its next lease renewal, so reconnect or restart it to apply the change.
  • Private or rotating Wi-Fi addresses on phones and laptops can make a reservation stop matching.

A DHCP reservation tells your router to give a particular device the same IP address every time it asks. You set it up once in the router, usually by picking the device from a list and choosing an address, and the device itself needs no changes. It's the cleanest way to give a printer, storage box, camera or home server a permanent place on your network.

DHCP (Dynamic Host Configuration Protocol) is the service that hands out addresses automatically. A reservation keeps that automation and removes the randomness for the devices you care about.

How DHCP hands out addresses

When a device joins your network, it has no address yet. It broadcasts a Discover message. The DHCP server, normally your router, answers with an Offer. The device sends a Request for that offer, and the server confirms with an Acknowledgment. The full exchange is explained in DHCP's four messages.

The address comes with a lease, a period for which the device may use it. The device tries to renew partway through. Servers often give a returning device its old address, but nothing guarantees it. After a long absence, a router reboot or a full address pool, it may get a different one.

A reservation adds a rule. When a request arrives from a listed MAC address (the hardware identifier of a network interface), the server offers the listed IP.

A device receiving its reserved address
Printer Router (DHCP server) Discover: I need an address 1 Broadcast, carries the printer's MAC address Offer: 192.168.1.20 2 Router finds a matching reservation Request: I will take 192.168.1.20 3 Acknowledge, with lease time 4 Also sends gateway, mask and DNS server Printer Router (DHCP server) Discover: I need an address 1 Broadcast, carries the printer's MAC address Offer: 192.168.1.20 2 Router finds a matching reservation Request: I will take 192.168.1.20 3 Acknowledge, with lease time 4 Also sends gateway, mask and DNS server

Reservation or static address?

You can also configure an address directly on the device, called a static configuration. Both give a stable address, but they behave differently.

Question DHCP reservation Static address on device
Where is it set? In the router On each device
Risk of duplicates Low, the server knows about it Higher if inside the DHCP pool
Changing DNS or subnet later Devices pick it up automatically Edit every device
Works if the DHCP server is down Only until the lease expires Yes
Moving the device elsewhere Just works on other networks Must be changed back

For homes and small offices, reservations are usually the better choice. Static configuration still makes sense for the router itself, for a server that provides DHCP, and for managed equipment that must come up even when nothing else does. Static and dynamic addressing covers the difference, including the unrelated matter of a static public address from your provider.

Which devices deserve one

Reserve an address when something else needs to find the device by number:

  • Printers and scanners that computers add by IP.
  • A network storage box or media server.
  • The target of any port forwarding rule, which breaks silently if the address moves.
  • Cameras and recorders.
  • Smart home hubs.
  • A local DNS filter that the router points to.

Phones, visiting laptops and most gadgets that talk only to cloud services don't need one.

Plan your address numbers

A little structure makes the network easier to read. Say your router uses 192.168.1.1 with a mask of 255.255.255.0. Usable host addresses run from 192.168.1.1 through 192.168.1.254. You might divide it like this:

  • .1 for the router.
  • .2 to .19 for network gear such as switches and access points.
  • .20 to .49 for printers, storage and servers.
  • .50 to .99 for cameras and smart home hubs.
  • .100 to .249 for the general DHCP pool.

Some routers require reservations to fall inside the pool and then simply hold those addresses back. Others allow, or insist on, addresses outside it. Follow your router's rule. Anything you configure statically on a device should sit outside the pool. A CIDR calculator helps confirm the usable range if your mask is different.

Example address plan for 192.168.1.0/24
.1 Router Gateway, usually also DHCP server and DNS forwarder. .2 to .19 Network gear Switches and access points. .20 to .49 Shared services Printers, storage and home servers. .50 to .99 Cameras and hubs Fixed devices that apps or recorders look for. .100 to .249 Dynamic pool Phones, laptops and guests get whatever is free. .1 Router Gateway, usually also DHCP server and DNS forwarder. .2 to .19 Network gear Switches and access points. .20 to .49 Shared services Printers, storage and home servers. .50 to .99 Cameras and hubs Fixed devices that apps or recorders look for. .100 to .249 Dynamic pool Phones, laptops and guests get whatever is free.

How to create a reservation

Menu names vary. Look for Address Reservation, DHCP Reservation, Static Lease, IP and MAC Binding, or a "reserve this address" switch on a device's detail page.

  1. Sign in to your router.
  2. Open the LAN or DHCP settings, or the list of connected devices.
  3. Find the device. If it isn't listed, get its MAC address from its own network settings or label.
  4. Choose the IP address you want it to have.
  5. Give the entry a clear name, such as "office-printer".
  6. Save. Some routers restart at this point.
  7. Reconnect the device or power it off and on so it asks again.

Finding a MAC address

# Windows: shows "Physical Address" for each adapter
ipconfig /all
# Linux
ip link show

# macOS, for the interface named en0
ifconfig en0

On phones, look in the Wi-Fi network details or the About section. A device with both Wi-Fi and Ethernet has a different MAC address for each. Reserve for the interface you actually use, and give them different IPs if you reserve both. A MAC assignment lookup can hint at which maker an unfamiliar address belongs to.

Forcing a renewal on a computer

# Windows
ipconfig /release
ipconfig /renew

On macOS, the network settings include a button to renew the DHCP lease. On Linux the command depends on the network manager; toggling the connection off and on works nearly everywhere.

A worked example: a home printer

Say your office printer keeps disappearing from your laptop. The laptop added it by IP address, 192.168.1.134, and after a power cut the router gave the printer a different one.

First, find the printer's current address and MAC address, either from its control panel's network report or from the router's client list. Then create a reservation for 192.168.1.20, outside the busy range in the plan above. Power the printer off and on. From a computer, confirm that it answers:

ping 192.168.1.20

Open http://192.168.1.20 in a browser if the printer has a web page, then update the printer port on each computer to the new address. This last step is easy to forget: the reservation fixes the printer's address from now on, but anything that stored the old number has to be told once.

Some devices ignore ping, so a missing reply isn't proof of failure. The router's client list is the better witness.

Keep a record

Reservations pile up, and a year later an entry called "device-7" means nothing. Keep a short table in a note or spreadsheet with the name, room, MAC address, reserved IP and anything that depends on it, such as a forwarded port. When you retire a device, delete its reservation so the address is free again. If your router can export its configuration, save a copy after making changes. Listing every device on your network is a good way to start the inventory.

When the reservation doesn't take

The device still has its old address. It hasn't renewed. Restart it, or release and renew.

The MAC address doesn't match. Many phones, tablets and computers now present a private or randomized MAC address on Wi-Fi, sometimes different for each network and in some cases changing over time. For a device you want to reserve, set its private address option to a fixed value or turn it off for your home network only. A randomized address often has 2, 6, A or E as the second hexadecimal digit, because that marks it as locally administered.

The device has a static setting. It never asks the router at all. Switch it back to automatic addressing.

Another device holds the address. Check the client list. Address conflicts cause intermittent dropouts that look mysterious.

A second DHCP server is answering. This happens when an extra router is plugged in LAN to LAN with DHCP still on. Turn it off on the secondary box.

The router was replaced or reset. Reservations live in the router's configuration. Keep a simple list of names, MAC addresses and IPs so you can rebuild it.

Using names alongside addresses

Many networks also offer names, so you can reach printer.local through multicast DNS, or a hostname your router registers. Names are friendlier, and where they work reliably they reduce how much the number matters. Port forwards, some older software and many device settings still want an IP address, so reservations remain useful.

If you point devices at a DNS server you run yourself, reserve its address first. Everything that depends on it for lookups will fail if it moves.

Common questions

Do reservations make a device less secure?

No meaningful difference. A stable address doesn't open anything to the internet. MAC-based reservation also isn't access control, since MAC addresses can be changed.

Do I need reservations for IPv6?

Home IPv6 usually works differently: devices often form their own addresses, and the prefix from your provider can change. SLAAC and DHCPv6 explains why local names are often the more practical route there.

How long should my lease time be?

The default is fine for most homes. A short lease frees addresses faster on busy guest networks, and a long one keeps devices working a bit longer if the router is briefly unavailable.

Written for 4Internet with AI writing tools and not reviewed line by line by a person. Check anything you rely on with the maker, provider or standard concerned. Report an error.

Keep reading

All 45 articles in Wi-Fi & Home Networking →

Latest news on this topic