Skip to content

DHCP Records and Address Leases

DHCP lease records associate addresses with client identifiers during bounded intervals and help resolve address reuse.

By Reviewed by Jeevesh Kumar

Last updated:

Dynamic Host Configuration Protocol (DHCP) records document how a host obtained network settings, including an address it can use for a limited time. An acknowledged lease can associate an IPv4 address with a client identifier on a specific network during a defined interval. That is often a useful first step when an incident record contains only a private address.

An address may belong to different clients during a single day or exist simultaneously in different network segments. Determine its lease history and network scope before attaching related traffic to an endpoint. The initial DHCP exchange is useful for learning the fields. Renewals and server lease history matter more when the traffic occurred long after the first assignment.

Key terms

Lease
A server’s address or prefix assignment with time limits. Use contemporaneous history to reconstruct later changes.
Client identifier
A protocol value used to identify a client for an assignment. Decode its type before comparing it with a hardware address.
DHCP acknowledgement (DHCPACK)
A DHCPv4 response confirming configuration for the exchange. Its observation point governs what can be inferred about client receipt.
DHCP negative acknowledgement (DHCPNAK)
A DHCPv4 server’s rejection of a request in the applicable network context.
Relay agent
A component that forwards DHCP messages between client and server networks and may supply link or circuit context.
DHCP unique identifier (DUID)
An identifier for a DHCP participant. It may appear in DHCPv6 and in a defined DHCPv4 client identifier encoding.
More key terms (3)
Identity association identifier (IAID)
A value that identifies an association within a client’s context. Compare it with the DUID and association type.
Preferred lifetime
The time during which an IPv6 address is preferred for use. A separate valid lifetime governs how long it remains valid.
Valid lifetime
The time remaining before the specified IPv6 address becomes invalid, subject to later configuration or lease events.

Read an Initial IPv4 Exchange

The typical initial IPv4 allocation includes Discover, Offer, Request and Acknowledgement. The client discovers available servers, a server offers settings, the client requests the selected offer, and an acknowledgement confirms the allocation. Several servers can offer addresses. The requested address may also be an address the client used before. Use the message type and acknowledged address to distinguish these stages. DHCPv4 specification, RFC 2131

Several servers may send offers. Use the acknowledgement to identify the confirmed allocation.

Early messages can use 0.0.0.0 as the source while the client is still obtaining its address. When a client identifier or hardware address appears in the protocol record, retain it with the DHCP transaction identifier and network segment. A relay can change the transport addresses visible to the observer, so read the protocol fields describing the client network as well as the packet headers.

A client restart can prompt a new request, including on a network the device has already used. A client may ask to keep an address it remembers even when the earlier lease was issued elsewhere. Document whether the observed exchange is a fresh allocation, an attempt to reuse settings, or a renewal. This prevents a lease row from being mistaken for the first time a device ever joined the network.

Build the Lease Interval

Collect the acknowledged assignment time and the reported lease duration or expiry. Record any renewals, releases and later assignments. A later acknowledgement for the same address and client can extend the interval. If the incident falls near an apparent boundary, compare the time source and precision for the server and the incident record before choosing a match.

Server audit history and current lease state answer different questions. A snapshot taken after the incident can identify the current holder while omitting an earlier holder. Where failover or multiple servers are used, obtain the relevant histories and retain the source of each event. Missing history leaves an open interval for which an earlier or later assignment cannot be ruled out.

For a practice timeline, place the assignment, the questioned connection and the next recorded assignment in order using their original timestamps. If the reported duration runs beyond the next observed assignment to a different client, check for an intervening release, administrative change or clock problem. Preserve the overlapping claims in the exhibit if the history cannot resolve them. A calculated expiry is derived from the recorded start and duration and should be marked accordingly.

Preserve both claims when the record cannot resolve the overlap. Label expiry derived from the first start and duration as a calculation.

Match the Address Within Its Network Scope

Keep the server identity, subnet and segment context in the join. An address may be valid in a guest network and an internal network at the same time. A relay field, access network, virtual local area network or firewall interface can tell you which scope to use. A clock match and private address alone leave both possibilities open.

A client identifier, media access control address and host name describe aspects of the device configuration. They can change after a device moves networks or switches interfaces. Host names can also be shared or supplied by clients. For device attribution, seek corroboration in access point associations, switch records or managed endpoint inventory. An account attribution needs its own evidence.

A lease record may show one interface on a device that has both wired and wireless connectivity. Inventory entries can list both interfaces even while only one was active at the incident time. If access records identify a physical port or access point, use that evidence to decide which identifier applies. Attribute traffic to the observed interface or client label first, and expand the finding to the device only when the evidence supports that join.

Account for Addresses Outside DHCPv4

A device can use a static IPv4 address, and the same device can use IPv6 addresses formed through stateless address autoconfiguration. DHCPv6 has its own messages and can provide addresses or configuration options. An IPv4 server export gives no direct visibility into those other assignment paths. Identify the address family and network configuration before drawing a negative finding.

When the source record is on the public side of an address translator, work back through the time-specific translation to the internal address and port before searching leases. For reserved or statically configured addresses, consult the allocation inventory and contemporaneous network or endpoint records. This keeps address assignment, observed traffic and device identity as distinct evidentiary steps.

Label three distinct records in a reconstruction. The address plan describes what administrators intended, the lease or configuration record describes the assignment, and the traffic record describes observed use. They may refer to different times. A reservation in an address plan can help locate records for a device, but a current plan alone is weak evidence for an older assignment unless the version active then is available.

Tell Renewal and Rebinding Apart

The DHCP message type DHCPREQUEST serves several purposes. Inspect ciaddr, the client’s current address field, along with the delivery mode and the presence of a server identifier option. In the renewal state, the client uses its current address and unicasts the request to the original server. At rebinding, it broadcasts a request with the current address. Neither state includes the server identifier option in the request. DHCP lease reacquisition

In a hypothetical client-side trace, frame 21 shows a unicast request at 10:00:00 with ciaddr 192.0.2.42 and no server identifier. The reviewed frames include no corresponding acknowledgement. Frame 48 shows a broadcast request at 10:15:00 with the same ciaddr. Frame 49 carries an acknowledgement with the transaction identifier from frame 48 and a lease duration of 3,600 seconds.

Read the first exchange as a renewal attempt and the second as consistent with rebinding. Check the relevant client identifier and reply fields before assigning the later acknowledgement to the client. DHCP uses the client’s request time plus the acknowledged duration to calculate expiry. Using the observed broadcast time as an approximation gives 11:15:00 on the capture clock.

The requests show the same current address. Estimate expiry from the broadcast request time plus the acknowledged duration and retain the original timestamps.

The sample supports an observed acknowledgement at the sensor and a calculated expiry. A later lease event may change the interval, and a capture point upstream of the client may show a reply that never reached it. Preserve the raw request and reply times beside the calculation.

Use the Relay Circuit Identifier in Context

A DHCP relay can add a Relay Agent Information option, commonly called Option 82. Its Agent Circuit ID describes a circuit local to that relay. Treat it as an opaque value and qualify it with giaddr, the relay address field, in the exchange. The same Circuit ID can refer to different access circuits on different relays. DHCP Agent Circuit ID

In hypothetical practice records, two rows contain Circuit ID access-07. The first gives giaddr 192.0.2.1 and the second gives giaddr 198.51.100.1. The relay map in force at the event time places the first on a classroom switch and the second on a library switch. Compare the pair of values against the historical map before selecting an access record to examine.

Match the relay address field giaddr together with the Circuit ID against the relay map that was in force.

Trace the selected circuit back to the request and acknowledgement by comparing transaction identifier, client fields and time. If a server-facing capture shows the circuit option and a matching client-facing reply lacks it, account for the relay’s normal removal of the option before forwarding the reply. Relay Agent Information handling

The circuit supports a finding about the path of the DHCP exchange. A switch port serving another switch or access point can represent multiple endpoints. To associate the lease with a particular managed interface, use a contemporaneous access or inventory record and document the scope of the match.

Recognize a Request for a Remembered Address

A DHCPv4 client in INIT-REBOOT can ask to keep a previously configured address. The DHCPREQUEST uses the Requested IP Address option, leaves the client address field ciaddr at zero and omits the Server Identifier option. For comparison, selecting an offer uses the Server Identifier, while renewal uses the already configured ciaddr. Read the combination of fields before calling an isolated request a new allocation. DHCP server handling of DHCPREQUEST, RFC 2131

In a hypothetical saved trace, a museum kiosk issues a broadcast request with ciaddr 0.0.0.0 and Requested IP Address 192.0.2.44. A server on the current link returns DHCPNAK. The next exchange offers 198.51.100.31 and ends with DHCPACK for that address. Keep the rejected request and later acknowledgment on separate timeline rows, even if the client identifier is the same.

Compare each exchange using its transaction identifier, client identity fields and relay or ingress context. The first request is consistent with the kiosk attempting to reuse remembered settings. The negative acknowledgement records the server’s rejection in the current context. Evidence of the earlier allocation would have to come from earlier server history or contemporaneous client records.

If the first exchange has no recorded response, check whether the relevant server had a record for the client and whether the observer could see the reply. A server with no record for an INIT-REBOOT client can remain silent. Record a request-only observation as unresolved instead of treating silence as either confirmation or explicit rejection.

Decode the Client Identifier Before Joining Leases

The DHCPv4 Client Identifier option can carry a value different from the hardware address in chaddr. One defined encoding uses type 255, an Identity Association Identifier (IAID) and a DHCP Unique Identifier (DUID). Read the type before inferring what the remaining octets represent. Preserve the octets and the export’s display convention because the same data can appear as hexadecimal or colon-delimited bytes. DHCPv4 client identifier encoding, RFC 4361

In a hypothetical exercise, a DHCPv4 row reports a type-255 client identifier whose decoded IAID is 7 and whose DUID is labeled D17 in the exhibit. A DHCPv6 export shows D17 and an identity association with IAID 7. A second IPv6 row uses D17 with IAID 8. Compare the identifier components separately and keep the second association as a distinct candidate for any device-level question.

A shared DUID and IAID can support a configuration-level association across the two address families. Check the recorded link and time, then seek a contemporaneous inventory or interface event before inferring that both leases describe the same managed interface. A relay-dependent label or a client identifier copied across an image can weaken the join.

When evidence comes from summarized server records, request the field dictionary or preserved protocol record if the display strips a type prefix or truncates the value. Keep any equality established on full values separate from a visual resemblance between shortened labels.

Calculate DHCPv6 Address Lifetimes Per Address

In DHCPv6, an Identity Association for Non-temporary Addresses (IA_NA) groups one or more IPv6 addresses under an IAID. Its T1 and T2 values concern contacting servers about the association. The preferred and valid lifetimes are carried in each address option and can differ for addresses in the same association. Use the server’s reply when reconstructing the lifetimes. DHCPv6 address lifetimes and options, RFC 9915

Suppose a hypothetical client-side record timestamps a Reply at 08:00:00. Address 2001:db8:10::20 has a preferred lifetime of 600 seconds and a valid lifetime of 1,800 seconds. Address 2001:db8:10::21 has corresponding values of 1,200 and 3,600 seconds. Using the observed Reply time as an approximation, record 08:10 and 08:30 for the first address and 08:20 and 09:00 for the second.

These estimated boundaries use the recorded reply time. Keep each address’s lifetime values and check for later renewals.

A preferred lifetime can end before an address becomes invalid. IPv6 deprecation affects preference for new communications while allowing continued use for existing communications until the valid lifetime ends. An 08:15 observation involving ::20 therefore fits the recorded valid interval. Examine the flow start and any later lease events before explaining why that address was still in use. IPv6 address lifetime expiry, RFC 4862

Check the same address and association in later Reply messages before relying on the estimated boundaries. A renewal can extend the lifetimes, and a capture upstream of the client gives only an approximation of receipt. Keep the original time, preferred seconds and valid seconds alongside the derived times.

Casework Example

Lesson Review

Check Your Understanding

Question 1 of 5· 0 answered
Which initial DHCPv4 message confirms an address allocation?

Test yourself on Network Forensics with free, timed mocks.

Practice Network Forensics questions

Found this useful? Pass it along.