A client broadcasts a discover, a server replies with an offer, the client requests that address, and the server confirms with an acknowledgement, along with options such as the gateway and DNS servers. Leases expire, so clients renew partway through. If a client gets no address, check the physical link and VLAN, whether the scope is exhausted, whether the server is running and authorised, and whether a relay is configured for that subnet.
Why interviewers ask this
DHCP is a fundamentals question, but a client with no address is one of the most common tickets a sysadmin handles. The interviewer wants the four step exchange, the role of options and leases, and a practical troubleshooting order. Recognising a self assigned 169.254 address as a sign that DHCP failed, and remembering relays for subnets without a local server, shows you have fixed this in the real world.
How to structure your answer
- Describe the discover, offer, request and acknowledge exchange.
- Explain leases, renewal and the options passed to clients.
- Give a troubleshooting order for a client with no address.
- Mention relays, exhausted scopes and rogue servers.
Example answer
It is a four step exchange, usually remembered as DORA. The client has no address, so it broadcasts a discover. A DHCP server replies with an offer, the client broadcasts a request for that address, and the server confirms with an acknowledgement. Along with the address come options, such as the subnet mask, default gateway, DNS servers and domain name. The lease is time limited and the client tries to renew halfway through, so a short server outage does not knock everyone off at once. When a client cannot get an address, a Windows machine usually gives itself a 169.254 address, which tells me DHCP failed. Then I check in order: is the link up and on the right VLAN; is the DHCP service running and, on Windows, authorised in Active Directory; is the scope full, which happens when lots of devices come and go on long leases; and if the server sits on another subnet, is a relay configured on the router. At one office the scope had run out because guest phones held week long leases, so I shortened the lease on the guest network.
Walking into this interview soon? GhostPilot listens to your live call, spots the question the moment it is asked, and puts a structured answer on your screen in real time. Try it on your next mock, or grab a $29 Session Pass, no subscription, for the real thing.
See how it worksFollow-up questions to expect
- Why are DHCP messages broadcast, and how does a relay help?
- How would you spot a rogue DHCP server on the network?
- When would you use a reservation instead of a static address?
Related systems administrator questions
Your interviewer will ask their own version of this. Paste your actual job description into the free Question Predictor and get the 20 questions that role is most likely to ask, with what each one is really probing.
Predict my questions