DHCP
DHCP¶
- UDP port 68 source, 67 destination
sequenceDiagram
Client->>Server: Discover
Server->>Client: Offer
Client->>Server: Request
Server->>Client: Acknowledge
Discover¶
Contains
- Macaddress
- Magic cookie
- DHCP Options
DHCPv4 Options¶
https://en.wikipedia.org/wiki/Dynamic_Host_Configuration_Protocol#Options
ID Number | Common Name |
---|---|
0x01 | Request Subnet Mask |
0x02 | Time Zone Offset |
0x03 | Router IP Address |
0x04 | Time Server |
0x06 | DNS Servers |
0x07 | Log Server |
0x0C | Hostname |
0x0F | Domain Name |
0x21 | Static routes |
0x2C | NetBIOS over TCP/IP Name Server |
0x2D | NetBIOS over TCP/IP Node Type |
0x2E | NetBIOS over TCP/IP Scope |
0x32 | Preferred Address |
0x33 | DHCP Lease Time |
0x35 | DHCP Offer Request Type |
0x36 | DHCP server IP |
0x37 | Parameter Request List |
0x42 | TFTP Server Name |
0x77 | Domain Search |
0xFF | End of Options |