DHCP interview questions and answers for network and support roles

DHCP interview questions check whether you can explain how a device gets its address (Discover, Offer, Request, Acknowledge), what a lease and its renewal timers do, which options carry the gateway and DNS servers, and how relays let one server cover many subnets. Senior rounds add DHCPv6, snooping against rogue servers, failover and the scenario every support and network engineer meets: a client with a 169.254 address. Calm, ordered troubleshooting is what scores.

By Published 10 min read

Who gets asked about DHCP

DHCP is a small protocol with a large blast radius: when it breaks, whole floors lose the network. Help desk and desktop support interviews ask what the client does and how to read ipconfig /all. Systems administrator loops add scopes, reservations and server redundancy. Network engineer rounds go into relays on layer 3 interfaces, VLAN design, snooping and packet captures. Cloud roles meet it too, because virtual networks hand out addresses through a managed DHCP service you cannot log into, so you need to know what it does on your behalf.

  1. Explain the exchangeName the four messages, who broadcasts, which ports are used and what the client knows (and does not know) at each step.
  2. Configure in words or on a labCreate a scope with exclusions, a reservation for a printer and options for gateway and DNS, or read someone's config and spot the gap.
  3. Cross a routerExplain why broadcasts stop at the gateway and how a relay agent forwards requests, including what the server uses to pick the scope.
  4. TroubleshootA client with no address, the wrong address, or an address that keeps changing. Interviewers listen for the order of your checks.

DHCP fundamentals questions

Basics asked in support, sysadmin and first network rounds
QuestionWhat it testsWhat a strong answer shows
What problem does DHCP solve?PurposeIt assigns IP configuration automatically from a central pool, so nobody types addresses by hand and the same address is not given twice. It also hands out the mask, gateway, DNS servers and other settings.
Walk me through DORA.The exchangeDiscover (client broadcast looking for servers), Offer (a server proposes an address), Request (client asks for one specific offer, still broadcast so other servers withdraw theirs), Acknowledge (server confirms and the lease starts).
Which transport and ports does DHCP use?Protocol basicsUDP, server on port 67 and client on port 68. DHCPv6 uses UDP 546 for clients and 547 for servers and relays.
Why does the client broadcast at first?BootstrappingIt has no address yet and does not know where the server is, so it sends from 0.0.0.0 to 255.255.255.255.
What is a lease?LifecyclePermission to use an address for a set time. The client must renew before it ends or give the address up. Short leases recycle addresses quickly; long leases cut renewal traffic.
Scope, exclusion and reservation: what is each?Server configA scope is the pool for one subnet with its options. An exclusion keeps part of the range out of the pool, often for static devices. A reservation ties one address to one client identifier, usually a MAC address.
Reservation or static address for a printer?JudgmentA reservation keeps the address predictable while still managed centrally, so a gateway or DNS change reaches the printer. Static is fine for infrastructure that must work when DHCP is down, such as the DHCP server itself.
What is a 169.254.x.x address?APIPA / link-localThe client asked and nobody answered, so it gave itself a link-local address. It can talk only to its own segment. The fix is to find why DHCP did not reply, not to change the address.
What do ipconfig /release and /renew do?Client toolsRelease sends a RELEASE and drops the address; renew starts a fresh request. On Linux the equivalent depends on the client, for example dhclient -r then dhclient, or NetworkManager's nmcli.
What is the difference between DHCP and BOOTP?HistoryBOOTP was the earlier protocol with fixed assignments. DHCP kept its packet format and added leases, dynamic pools and options, which is why relays are still called BOOTP relays on some gear.
Basics asked in support, sysadmin and first network rounds. Scroll sideways on a small screen.

Intermediate: timers, options and relays

  • What are T1 and T2? At T1 (by default half the lease) the client unicasts a REQUEST to the server that gave the lease to renew it. If that fails, at T2 (by default seven eighths of the lease) it broadcasts to any server, called rebinding. If the lease runs out, it must stop using the address and start over.
  • Which options would you always set on a client scope? Router (option 3), DNS servers (option 6), and usually a domain name (option 15) or domain search list (option 119). The subnet mask (option 1) and lease time (option 51) come with the scope.
  • What does option 53 carry? The message type: DISCOVER, OFFER, REQUEST, ACK, NAK and so on. Every DHCP packet carries it, which is how a capture tells them apart.
  • What is option 82? Relay agent information. The relay or switch adds the port and switch it heard the request on, so the server can apply policy per port and snooping can tie leases to physical locations.
  • What are options 66 and 67 used for? The boot server name and boot file name for network booting, used by PXE setups and some IP phones. Many PXE deployments now prefer proxy DHCP or vendor class matching instead.
  • Why does a router not forward DHCP Discover by default? Routers do not forward limited broadcasts. Each subnet needs either its own server or a relay agent on the gateway interface.
  • How does the server know which scope a relayed request belongs to? The relay fills in the giaddr field with the address of the interface that received the broadcast. The server picks the scope whose subnet contains that address and sends its reply back to the relay.
  • When is a NAK sent? When a client requests an address that is wrong for its current subnet or no longer valid, typically after a laptop moves between networks. The client then starts again from DISCOVER.
  • What does DHCPINFORM do? A client that already has an address (often statically set) asks only for options such as DNS servers or proxy settings, without taking a lease.
  • What is the broadcast flag? A client that cannot accept unicast before it has an address sets it, so the server or relay broadcasts the offer and ack back instead of unicasting them.
import struct

MSG_TYPES = {1: "DISCOVER", 2: "OFFER", 3: "REQUEST", 4: "DECLINE",
             5: "ACK", 6: "NAK", 7: "RELEASE", 8: "INFORM"}

def parse_options(data: bytes) -> dict:
    assert data[:4] == bytes([99, 130, 83, 99]), "missing magic cookie"
    opts, i = {}, 4
    while i < len(data):
        code = data[i]
        if code == 0:            # pad: a single byte, no length
            i += 1
            continue
        if code == 255:          # end
            break
        length = data[i + 1]
        opts[code] = data[i + 2:i + 2 + length]
        i += 2 + length
    return opts

def ip(b: bytes) -> str:
    return ".".join(str(x) for x in b)

raw = bytes([99, 130, 83, 99,
             53, 1, 2,                       # message type: OFFER
             1, 4, 255, 255, 255, 0,         # subnet mask
             3, 4, 192, 168, 10, 1,          # router
             6, 8, 192, 168, 10, 2, 192, 168, 10, 3,   # two DNS servers
             51, 4, *struct.pack("!I", 86400),         # lease: one day
             54, 4, 192, 168, 10, 2,         # server identifier
             0, 255])

o = parse_options(raw)
lease = struct.unpack("!I", o[51])[0]
print("type:", MSG_TYPES[o[53][0]])
print("mask:", ip(o[1]), "router:", ip(o[3]))
print("dns:", [ip(o[6][k:k + 4]) for k in range(0, len(o[6]), 4)])
print("lease:", lease, "T1:", lease // 2, "T2:", lease * 7 // 8)
# type: OFFER
# mask: 255.255.255.0 router: 192.168.10.1
# dns: ['192.168.10.2', '192.168.10.3']
# lease: 86400 T1: 43200 T2: 75600
Reading DHCP options from raw bytes: each option is a code, a length and a value, after a fixed four-byte magic cookie. Pad (0) has no length, End (255) stops the walk.

If you are handed a capture instead of code, the same reading applies: find option 53 to name each packet, check yiaddr for the offered address, giaddr for the relay, and option 54 for which server answered. Two different server identifiers in the offers is the first hint of a rogue server.

Senior DHCP questions: IPv6, security and redundancy

Design and security questions for network and infrastructure roles
QuestionWhat it testsWhat a strong answer shows
How does DHCPv6 differ from DHCPv4?IPv6Clients use multicast instead of broadcast, the exchange is Solicit, Advertise, Request, Reply, and clients are identified by a DUID rather than a MAC address. Routers are not handed out by DHCPv6; clients learn the default gateway from router advertisements.
SLAAC, stateless DHCPv6 or stateful DHCPv6?IPv6 designRouter advertisement flags steer it. SLAAC lets hosts build their own address from the prefix. Stateless DHCPv6 adds options like DNS on top. Stateful DHCPv6 assigns addresses and keeps lease records, which some teams want for audit trails.
What is DHCP snooping?Layer 2 securityThe switch marks uplinks to real servers as trusted and drops server messages (offers, acks) arriving on untrusted access ports. It also builds a binding table of MAC, IP, VLAN and port that other features reuse.
Which features depend on the snooping table?Defense in depthDynamic ARP inspection checks ARP replies against it, and IP source guard filters traffic from addresses not leased on that port. Both stop spoofing that snooping alone does not.
What is DHCP starvation and how do you stop it?AttacksAn attacker requests leases with many fake MAC addresses until the pool is empty, often before standing up a rogue server. Port security limits on MAC addresses and rate limits on DHCP packets per port blunt it.
How do you make DHCP highly available?RedundancyA failover pair that shares lease state (in active-active load sharing or hot standby), or a split scope where two servers each own part of the range. Split scopes are simpler but can run one side dry and do not share lease records.
What happens to clients if the only DHCP server goes down for an hour?Lease reasoningClients with valid leases keep working and keep trying to renew. New clients and those whose leases expire are stuck. Lease length decides how long you can afford the outage.
How would you size the lease time on guest Wi-Fi versus an office LAN?Trade-offsGuest networks churn, so short leases free addresses for the next visitor. Office desktops are stable, so longer leases cut traffic and survive short server outages. Say what you would watch to confirm the choice.
How is DHCP tied to DNS?IntegrationThe server or client can register the hostname in DNS (dynamic updates), so names follow changing addresses. Stale records after lease changes and who owns the record are the classic issues; see DNS interview questions.
How do managed cloud networks handle DHCP?CloudThe provider runs it for you inside the virtual network. You influence it with settings such as DNS servers or a domain name on the network, not with a server you administer. Fixed addresses come from the platform's own reservation feature.
Design and security questions for network and infrastructure roles. Scroll sideways on a small screen.

DHCP troubleshooting scenarios

  • A user's laptop shows 169.254.23.7. What do you do? Confirm the link is up and on the right VLAN, then run release and renew while watching a capture or the server log. No Discover leaving the host points to the client; Discovers with no Offer point to the path (relay, VLAN, snooping trust) or an exhausted scope.
  • A new VLAN was created and nobody on it gets an address. The server is on another subnet. The relay (helper address) is missing or wrong on the new gateway interface, or the server has no scope matching the giaddr. Check the snooping trust on the uplink as well.
  • Two machines report an IP address conflict. Look for a static address inside the pool, a device that kept an expired address, or two servers handing out the same range. Fix the overlap with exclusions or a reservation, and enable conflict detection if the server supports it.
  • Clients get addresses but cannot browse. DHCP worked; the options did not. Check the router and DNS options in the lease the client actually received, since a scope option can be overridden at server or reservation level.
  • The pool keeps running out every morning. Count active leases against the range, look at the lease time, and check for one MAC requesting many leases. Then decide between a bigger subnet, a shorter lease or blocking the offender.
  • Users on one floor get addresses from 192.168.0.x instead of the corporate range. Someone plugged in a home router on a LAN port. Find it through the server identifier in the offer and the snooping binding table, shut the port, then turn on snooping so it cannot happen again.
  • Leases renew but take a long time after a server move. Clients unicast to the old server at T1, fail, and only broadcast at T2. Forcing a renew or waiting it out are both answers; planning a migration around lease times is the senior one.
ipconfig /all                 # Windows: lease obtained, expires, DHCP server, DNS
ipconfig /release
ipconfig /renew
ip addr show                  # Linux: current addresses
sudo dhclient -v -r eth0      # release (dhclient systems)
sudo dhclient -v eth0         # request again with verbose output
sudo tcpdump -ni eth0 -vvv 'udp port 67 or udp port 68'
Client-side commands that come up in support and sysadmin rounds. Run release and renew only on a machine you can afford to drop off the network.

Fictional example

Answering "Half a floor has no network since this morning"
Interviewer
Overnight the network team moved a floor's access switches to a new VLAN. This morning about half the desktops there show 169.254 addresses. Where do you start?
Candidate
Half is the clue, so I would first ask what separates the working half: different switches, or machines that kept a lease from yesterday. On one failing desktop I would release, renew and capture. If Discovers leave the machine but no Offer comes back, I would check the new VLAN's gateway interface for a helper address pointing at our DHCP server, then the server for a scope matching that subnet. If both are fine, I would look at snooping: a new uplink not marked as trusted drops the server's offers. Once fixed, I would renew one machine, confirm the gateway and DNS options it received, then let the rest renew or push a renew. Afterwards I would add the relay and trust checks to the VLAN change checklist.

A one-week DHCP practice plan

  • Days 1 and 2: capture your own machine renewing a lease and label every packet by option 53. Note which are broadcast and which are unicast.
  • Days 3 and 4: in a virtual lab or simulator, build two subnets with one server and a relay on the router. Break the relay on purpose and read what the capture shows.
  • Day 5: write down the T1 and T2 behavior, the APIPA case, and the snooping trust rule, each in three sentences you can say aloud.
  • Day 6: compare SLAAC, stateless and stateful DHCPv6 and explain which flags in the router advertisement select each.
  • Day 7: rehearse the scenarios above against a timer, saying your checks in order before naming a cause.

DHCP sits next to two other topics interviewers chain together: TCP/IP interview questions for what happens once the host has its address, and computer networks interview questions for the wider tour. For a full network role, the network engineer interview questions page covers VLANs, routing and change windows.

Scenario rounds reward people who check before they guess, and it is hard to hear yourself skip a step. Natively, an AI interview assistant for Mac and Windows, transcribes a mock troubleshooting round on your computer so you can read back whether you asked about the relay before blaming the server. During practice it can read a packet capture summary or a config from a screenshot and suggest what to check, and with Pro or the free trial it draws on the résumé and job description you add. Transcripts and notes stay saved for review.

Questions people ask

What DHCP questions are asked in interviews?

The DORA exchange, UDP ports 67 and 68, leases and renewal timers, scopes, exclusions and reservations, common options such as router and DNS, relay agents, DHCPv6, DHCP snooping and how to troubleshoot a client with no address.

How do I explain the DHCP process in an interview?

Name the four messages in order (Discover, Offer, Request, Acknowledge), say which are broadcast and why, and finish with what the client does at T1 and T2 to keep its lease.

What does a 169.254 address mean?

The client asked for an address and got no answer, so it assigned itself a link-local address. Look for the reason DHCP did not reply: the link, the VLAN, a missing relay, snooping trust or an empty pool.

Is DHCP asked in help desk interviews?

Often, at a practical level: what DHCP does, what ipconfig /all shows, what release and renew do, and what to check when a machine has no valid address. Network roles go deeper into relays and snooping.

Where to go next

Practice with the same assistant you would use on a call: it listens, transcribes and suggests answers from your own resume and the job description.

Facts on this page were last checked on . Product details come from the Natively app itself; if something here is out of date, tell us at hello@heynatively.com.

Keep reading

Put it on your own machine.

A live-conversation assistant that runs locally. Your conversations stay on your machine.

macOS 12+ · Windows 10/11

© 2026 Natively AI Private Limited

Source-available under the Natively Personal Use Source License v1.0 · IP geolocation by DB-IP