DHCP

Dynamic Host Configuration ProtocolApplication layer · OSI 7

Automatically leasing an IP address and network settings

Step 1 of 5: Join with no IP address. Your laptop just connected to Wi-Fi. It has a built-in mac-address, but no ip-address yet, so it starts by using 0.0.0.0.
0.0 s / 12.6 s
Your laptop0.0.0.0
LookupResponseRequest

Overview

When your device joins a network, automatically gives it an , the router's address, and a DNS server so it can get online.

Dynamic Host Configuration Protocol (RFC 2131) runs over ports 68 (client) and 67 (server). Through a four-message Discover-Offer-Request-ACK exchange, a server leases an IPv4 address plus options (RFC 2132) for a finite duration.

Key facts

Layer
Application (UDP 67/68; configures Layer 3)
Ports
68 client, 67 server
Exchange
Discover, Offer, Request, ACK
Provides
IP, mask, gateway, DNS servers
Defined in
RFC 2131, RFC 2132

Address leased and renewed

Four broadcast-and-reply messages gave your laptop an IP address, gateway, and DNS server, and a direct unicast exchange renewed the lease halfway through.

Completed DORA initialization (0x3903f326) and T1 unicast renewal (0x7a1c22e5) over UDP ports 68 and 67 for 192.168.1.10/24.

Join exchange
4 messages (DORA)
Renewal
Unicast at 50% lease
Leased IP
192.168.1.10/24
Ports
UDP 68 -> 67

Try it yourself

Inspect your DHCP-assigned settings

View your interface's leased IPv4 address, lease expiration, gateway, and DHCP server address.

ipconfig /all