0-7 | 8-15 | 16-23 | 24-31 |
---|---|---|---|
op |
htype |
hlen |
hops |
xid | |||
secs |
flags |
||
ciaddr | |||
yiaddr | |||
siaddr | |||
giaddr | |||
chaddr (16 bytes) | |||
sname (64 bytes) | |||
file (128 bytes) | |||
options (variable) |
Table 4.10: Structure of a DHCP message
Message type | UDP addressing | DHCP contents |
---|---|---|
DHCP discover |
SRC: 0.0.0.0:68 |
op: BOOTREQUEST |
DHCP offer |
SRC: 192.168.1.1:67 |
op: BOOTREPLY |
DHCP request |
SRC: 0.0.0.0:68 |
op: BOOTREQUEST |
DHCP ACK |
SRC: 192.168.1.1:67 |
op: BOOTREPLY |
Table: 4.11: Structure of DHCP messages to set up an IP address