The DHCP Packet Format and Additional Options

Posted by arlene

Similar to BOOTP, DHCP uses a request/reply mechanism, and the packet format is almost the same for both to provide for backward compatibility. The layout of the packet used by DHCP looks very much like the layout of the BOOTP packet, with a few exceptions. The first 11 fields are the same. However, the last field, which is called the Vendor Extensions area in the BOOTP packet, is called the Options field in the DHCP packet. The format of the options is the same as it was for BOOTP. However, some of the options that are defined in RFC 2132 are specific only to DHCP. The options available for use with BOOTP clients are a subset of those available for use with DHCP clients. Although this field was limited to 64 bytes in the BOOTP packet, it now is a variable-length field that has a minimum of 312 bytes for DHCP options.

  1. Living the Web 2.0

Additional Options Available for DHCP Servers

Following is a listing of the options that can be used for both types of clients. This list includes additional options defined in RFC 2132 that can be used, with DHCP servers and clients. The options listed here are not for use with BOOTP clients.

  1. Requested IP Address (Opcode=50)—The client can use this field to request a specific IP address.
  2. IP Address Lease Time (Opcode=51)—The client can use this field to request a particular lease time. The server can use this field to fill in the lease time it is willing to offer. The value used in this field is expressed in seconds.
  3. Option Overload (Opcode=52)—This option enables the server to use the fields originally allocated in the DHCP packet for the server name and filename fields to store options. This can be done when there are a large number of options to convey to the client. A value of 1 flags the filename field as holding options. A value of 2 flags the server name field as holding options. A value of 3 indicates that both fields hold options.

Remember that two option values don’t have a data component. These are option zero (Pad option) and option 255 (which marks the end of the options list).

Option Overloading

When the Options Overload option is used in addition to the variable-length option field that is typically used for options, two other fields can be used to store options. This can be useful when a client or server has a maximum size for the total DHCP packet that is not large enough to store all the options the client/server needs to negotiate.

The Options Overload option data field can be 1, 2, or 3. As explained earlier, a value of 1 means that the server name field (sname) contains options. A value of 2 means that the boot filename field (file) contains options. A value of 3 means that both fields contain options.

In this case, other options can be used to store the values that are normally placed into these fields, if necessary. The following must also be done:

Possibly related posts: (automatically generated)
The DHCP Packet Format and Additional Options

3 Responses to “The DHCP Packet Format and Additional Options”

  1. Upcoming Web versions of ” Jeopardy!” and “Wheel of Fortune” will let fans do more than sit on the couch and shout answers at their televisions … … Web URL Keyword Filtering

  2. Description Chapter (PDF) Table of Contents (PDF) Index (PDF) Author Information Myself Can Do More, and, Now You Need to Myself has proven it can compete with the big names in database management, such as SQL Server and Oracle, and with Myself 4 this is truer than ever. … Store Builder

  3. Courier coo courier’s courier curriers courier deli delivery business despatch dispatch Do you charge for Debit or Credit Card Payments by … … Business Postcards

Leave a Reply

LogoAlexa CounterFeedBurner Counter