ip dhcp option

To set the DHCP Server options, use the command ip dhcp server in Global Configuration Mode. The no form of the command deletes the existing DHCP server option. This command globally configures the various available DHCP server options with the corresponding specific values. These values can be an ASCII string, hexadecimal string or IP address. These global options are applicable for all DHCP server address pools.

ip dhcp option

ip dhcp option { <code (1-2147483647)> } { {ascii } { <string> } { | hex } { <string> } { | <ip address>} }

no ip dhcp option

no ip dhcp option { <code (1-2147483647)> }

Parameters

Parameter Type Description
<code (1-2147483647)> Integer Enter a value for the unique DHCP option code that represents a specific DHCP option used in a DHCP OFFER message in response to a DHCP DISCOVER message. This value ranges from 1 to 2147483647.
ascii   Enter to configure the ASCII value to be set for the corresponding option code that accepts ASCII string.
<string>   Enter an ASCII value to be set for the corresponding option code that accepts ASCII string. This value is a character string that should contain only characters from NVT ASCII character set.
hex   Enter to configure the hexadecimal value to be set for the corresponding option code that accepts hexadecimal string.
<string>   Enter a hexadecimal value for the corresponding option code.
<ip address>   Enter to configure the unicast IP address to be set for the corresponding option code that accepts IP address.

Mode

Global Configuration Mode

Examples

iS5Comm(config)# ip dhcp option 19 hex d

iS5Comm# show ip dhcp server pools

Global Options
--------------
Code       :    19, Value      : 0