DHCP

( Dynamic Host Configuration Protocol )

 

0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7
Opcode
Hardware type
H/w Addr Len
Hop count
Transaction ID
Number of seconds
Flags
Client IP address
Your IP address
Server IP address
Gateway IP address
Client hardware address :::
Server host name :::
Boot filename :::
Options :::

 

DHCP Contents

Opcode. 8 bits.
1 BOOTREQUEST, Boot request.
2 BOOTREPLY, Boot reply.

Hardware type. 8 bits.
1 Ethernet.
6 IEEE 802.

Hardware address length. 8 bits.

Hop count. 8 bits.
This field is used by relay agents.

Number of seconds. 16 bits.
The elapsed time, in seconds since the client began an address acquisition or renewal process.

Flags. 16 bits.

Client IP address. 32 bits.

Your IP address. 32 bits.

Server IP address. 32 bits.

Gateway IP address. 32 bits.

Client hardware address. 16 bytes.

Server host name. 64 bytes.

Boot filename. 128 bytes.