DHCP: how a device joins a network
When a phone or laptop joins a network, DHCP gives it an address, the router to use, and DNS servers, in four messages: Discover, Offer, Request, ACK. If DHCP fails, the device has no usable address at all.
34 DHCP fields, explained
dhcp.type-
Whether this is a request from a client (Boot Request) or a reply from a server (Boot Reply).
Why it matters: The actual DHCP step (Discover, Offer, Request, ACK) is in option 53.
dhcp.hw.type-
The kind of network hardware the client has. 1 means Ethernet (Wi-Fi uses the same).
dhcp.hw.len-
The length of the client's hardware address. 6 bytes for a MAC address.
dhcp.hw.mac_addr-
The MAC address of the device asking for an address.
Why it matters: The server uses it to remember the device and hand back the same address next time.
dhcp.hw.addr_padding-
Unused space after the hardware address, kept for older, longer address types.
dhcp.hw-
Information about the client's network hardware.
dhcp.hops-
How many relay agents passed this message along. 0 when client and server are on the same network.
dhcp.id-
The transaction ID: a random number the client picks so it can match the server's replies to its request.
Why it matters: Every message in one Discover → Offer → Request → ACK exchange carries the same ID.
dhcp.secs-
Seconds since the client started trying to get an address.
dhcp.flags-
Flags from the client. The broadcast flag asks the server to broadcast its reply.
Why it matters: A device with no address yet can't always receive a reply sent straight to it.
dhcp.flags.bc-
Asks the server to broadcast its reply, for clients that can't receive it any other way yet.
dhcp.flags.reserved-
Unused flag bits, always zero.
dhcp.ip.client-
The client's current address, if it already has one (for example when renewing). Otherwise 0.0.0.0.
dhcp.ip.your-
"Your" IP address: the address the server is offering or assigning to the client.
Why it matters: This is the address the device will use once the server sends its ACK.
dhcp.ip.server-
The address of the next server the client should use for booting. Usually 0.0.0.0 on home networks.
dhcp.ip.relay-
The address of a relay agent that forwarded this message from another network. 0.0.0.0 when there is none.
dhcp.ip-
An IP address field in the DHCP message.
dhcp.server-
An optional server host name. Usually empty.
dhcp.file-
An optional boot file name, used when computers start up from the network. Usually empty.
dhcp.cookie-
The magic cookie, 99.130.83.99, marking the start of DHCP options.
Why it matters: It tells a DHCP server this is DHCP and not the older BOOTP protocol.
dhcp.option-
A DHCP option: extra settings such as the message type, subnet mask, router, and DNS servers.
dhcp.option.type-
The option number, which says what setting this option holds.
dhcp.option.length-
How many bytes of data the option holds.
dhcp.option.value-
The raw bytes of the option.
dhcp.option.dhcp-
The DHCP message type (option 53): Discover, Offer, Request, ACK, NAK, Release, or Inform.
Why it matters: Discover → Offer → Request → ACK is the normal way a device joins a network ("DORA").
dhcp.option.requested_ip_address-
The address the client is asking for, usually the one it was just offered or had before.
dhcp.option.dhcp_server_id-
The address of the DHCP server sending or chosen for this exchange.
Why it matters: If two servers answer, the client names the one it picked here.
dhcp.option.ip_address_lease_time-
How long the client may keep the address, in seconds.
Why it matters: The device renews about halfway through the lease, so short leases mean more DHCP traffic.
dhcp.option.subnet_mask-
The subnet mask: which addresses are on the local network and which must go through the router.
dhcp.option.router-
The default gateway: the router to send traffic to for anything outside the local network.
Why it matters: A wrong router here means the device can reach the local network but not the internet.
dhcp.option.domain_name_server-
The DNS servers the device should use to look up names.
dhcp.option.hostname-
The name the device calls itself (option 12).
Why it matters: Routers often show this name in their list of connected devices.
dhcp.option.end-
Marks the end of the options.
dhcp.option.padding-
Zero bytes that pad the message out to its minimum size.