Configure DHCP Custom Options

About this task

Configure DHCP custom options to deploy non-standard DHCP options:

Procedure

  1. Enter Global Configuration mode:

    enable

    configure terminal

  2. Define the custom option by assigning a code, data type, and text label:

    ip dhcp-server custom-option-def <224-254> type <ipv4-address | uint32 | string> [name WORD<0-128>]

  3. Assign a data value to the custom option you defined:

    ip dhcp-server custom-option-data <224-254> value WORD<0-128>

Variable Definitions

The following table defines parameters for the ip dhcp-server command.

Variable Definition
custom-option-data <224-254> value WORD<0-128>

Assigns a data value to a DHCP Custom Option that you defined previously.

  • <224-254>—Specifies the DHCP code that identifies this option.

  • value WORD<0-128>—Assigns a data value to the option. The data value must use the data type that is specified in the custom option definition.

custom-option-def <224-254> type <ipv4-address | uint32 | string> [name WORD<0-128>]

Defines the format of a customized option that you want the DHCP Server to provide to clients.

  • <224-254>—Assigns the DHCP code that calls this custom option. Enter an integer in the unassigned range from 224 to 254.

  • type <ipv4-address | uint32 | string>—Assigns the data type for all data values that you assign to this custom option. The available data types are: IPv4 address, integer, or string.

  • name <WORD<0-128>—Specifies a text label that identitifies this custom option.