Custom options

Some options, such as Option 43, Option 82, and Option 184, have no unified definitions in RFC 2132.

Vendor-specific option (Option 43)

DHCP servers and clients use Option 43 to exchange vendor-specific configuration information.

The DHCP client can obtain the following information through Option 43:

  1. Format of Option 43

    Network configuration parameters are carried in different sub-options of Option 43 as shown in Figure 19.

    Figure 19: Option 43 format

    • Sub-option type—Type of a sub-option. The field value can be 0x01 (an ACS parameter sub-option), 0x02 (a service provider identifier sub-option), or 0x80 (a PXE server address sub-option).

    • Sub-option length—Length of a sub-option excluding the sub-option type and sub-option length fields.

    • Sub-option value—Value of a sub-option. The value format varies with sub-options.

  2. Format of the sub-option value field of Option 43

    • As shown in Figure 20, the value field of the ACS parameter sub-option contains variable ACS URL, ACS username, and ACS password separated by spaces (0x20):

    • Figure 21 shows the format of the value field of the PXE server address sub-option. The value of the PXE server type can only be 0. The server number field indicates the number of PXE servers contained in the sub-option. The server IP addresses field contains the IP addresses of the PXE servers.

Figure 20: ACS parameter sub-option value field

Figure 21: PXE server address sub-option value field

Relay agent option (Option 82)

Option 82 is the relay agent option in the option field of the DHCP message. It records the location information about the DHCP client. When a DHCP relay agent or DHCP snooping device receives a client's request, it adds Option 82 to the request message and sends it to the server.

The administrator can locate the DHCP client to further implement security control and accounting. The Option 82 supporting server can also use such information to define individual assignment policies of IP address and other parameters for the clients.

Option 82 can contain up to 255 sub-options and must have one sub-option at least. Option 82 supports two sub-options: sub-option 1 (Circuit ID) and sub-option 2 (Remote ID). DHCP snooping device supports three sub-options: sub-option 1 (Circuit ID), sub-option 2 (Remote ID), and sub-option 9.

Option 82 has no unified definition. Its padding formats vary with vendors.

There are two methods for configuring Option 82:

If you choose normal format and verbose format, you can specify the code type for the sub-options as ASCII or HEX.

Figure 22: Sub-option 1 in normal padding format

Figure 23: Sub-option 2 in normal padding format

Figure 24: Sub-option 1 in verbose padding format

Figure 25: Sub-option 1 in private padding format

Figure 26: Sub-option 2 in private padding format

Figure 27: Sub-option 9 in private padding format

Figure 28: Sub-option 1 in standard padding format

Option 184

Option 184 is a reserved option, and parameters in the option can be defined as needed. The device supports Option 184 carrying voice related parameters, so a DHCP client with voice functions can get an IP address along with specified voice parameters from the DHCP server.

Option 184 involves the following sub-options:

You must define sub-option 1 to make other sub-options take effect.