Get PC-1 onto the network from nothing but a MAC address.
- op / msg type
- —
- xid
- —
- ciaddr
- 0.0.0.0
- broadcast flag
- 1
- chaddr
- a4:5e:60:c2:11:07
- yiaddr
- —
- opt 1 / 3
- —
- opt 6 dns
- —
- opt 51 lease
- —
option 53 names the message
ties all four together
the client has no address to put here
asks server replies to use broadcast
the only identity it owns
“your address” — offered, then committed
mask and gateway ride along
names, not just numbers
borrowed, not owned
PC-1 has no IP address and doesn’t know where a DHCP server is. Who can it send its first message to?
- address
- — none —
- mask
- — none —
- gateway
- — none —
- dns
- — none —
- lease
- — none —
Five settings, not one — and every one of them arrives in the same exchange.
A machine that has just booted knows its own MAC address and nothing else. Four messages later it has an address, a mask, a gateway, a pair of resolvers and a deadline.
DHCP does not just hand out an IP address. It hands over the whole configuration — mask, gateway, DNS servers, lease length. Get the address and lose the gateway and you can reach your neighbour and nothing else.
DISCOVER and the selecting-state REQUEST are broadcast. In this lab the client also sets the BROADCAST flag, so the server broadcasts OFFER and ACK. A client that can receive before configuring its address may clear that flag and receive those replies by unicast. The ARP lab shows local broadcast one layer down.
And you do not own the address — you borrow it. The lease is a timer, and the client is responsible for renewing it at halfway. Everything the other labs assume about 192.168.1.10 starts here.
Get PC-1 onto the network from nothing but a MAC address.
- Why is the DISCOVER sent as a broadcast?
- What does PC-1 actually get at the end of DORA?
Read it now and keep it in mind — the answer is in what you are about to watch.