Case File: The Address Pool
Devices at a customer site get addresses that collide with the router, and a printer keeps moving. Repair the DHCP server's configuration: the pool, the router and DNS it hands out, how long a lease lasts, and fixed reservations for the printers. The details are generated for you alone.
Eko Metro Fibre · Services 1
The Address Pool
Staff are being knocked offline when a laptop takes the router's address, and the front-desk printer moves every few days
Ifeoma Field technician · Phone call
Ifeoma. I am on site and the customer is not happy. Twice this week the whole office lost the internet for a minute, and Dayo says it was because a laptop picked up the router’s own address. The front-desk printer also keeps changing its address, and every computer that prints to it stops working until someone types in the new one.
Dayo copied the DHCP file from a blog post. I have the file open on my phone and I cannot see what is wrong with it. Can you?
The brief
What you need to know first.
- DHCP gives devices their network settings automatically in four steps, remembered as DORA: Discover, Offer, Request, Acknowledge. The settings it hands out include an address, the router, the DNS servers, a domain name and a lease time.
- The server’s file (
dhcpd.confon the common ISC server) has a subnet block for each network: the network and mask, the range (the pool of addresses it may give away), and the options for that network. Every statement ends with a semicolon. - Anything that must keep a fixed address belongs outside the pool. A host block reserves an address for one device, matched by its MAC address:
hardware ethernet <MAC>;andfixed-address <address>;. - A lease is a loan.
default-lease-timeandmax-lease-timeare in seconds. Short leases return addresses quickly; long ones ease the renewal traffic. authoritative;tells the server it is the official DHCP server for the network, so it can correct a device that holds a wrong address.
Fix the file until every requirement is met. The checker reads statements, so spacing and order do not matter. The facts above the editor are this site’s; copy MAC addresses exactly.
The flag: when everything is met your change ticket reference appears. Submit it at the bottom of the page.
Preparing the server…
Amaka, the next day: “The office works now, thank you. But the customer wants guest Wi-Fi on the same server, on a different network, and I promised it for Monday. Dayo says we just add a second range to the same subnet. Is he right?”
🔒 The debrief unlocks when you close the case. Finish the lab above.
The debrief
Ifeoma: “Two networks, two subnets. And the server has to be reachable from the guest network.”
What a senior engineer would do next. Say no to a second range in the same subnet: guests and staff would share one broadcast domain and could reach the printers and the file server. Guests belong on their own network (VLAN and subnet) with their own subnet block, pool, router and short leases. The DHCP server sits on the staff network, so the guest network’s switch or router needs a DHCP relay (an ip helper-address on Cisco, or dhcrelay) that forwards the broadcast Discover to the server as a unicast. Check the server with dhcpd -t before every restart, keep reservations in one file under version control, and watch the log for no free leases (the pool is too small) and for two MAC addresses claiming one address.
The ideas to keep.
- The pool is for strangers. Keep fixed addresses outside it, or reserve them by MAC.
- Reserve, do not hand-type. A reservation keeps every setting in one place.
- Lease time is a trade. Hours for visitors, days for a stable office.
- Another network needs another subnet, and a relay. Do not stretch one scope across two groups of people.
Next case: the second server.
Write the change note
Describe what was wrong with the DHCP file and what you changed: the pool and why it must stay clear of the reserved addresses, the router, DNS and lease settings, and the printer reservations. Say how you would test the file before restarting the server.
🧪 Want to practise this on your own computer? See how to set up your lab →