option
This command configures the Dynamic Host Configuration Protocol (DHCP) Server options. Use the no form of this command to remove the options.
Syntax
option <DHCP option code> {ascii string|hex string|ip address} no option code <DHCP option code>
Command |
Description |
---|---|
DHCP option code |
Defines the DHCP option code. |
ascii string |
Defines an NVT ASCII character string. ASCII character strings that contain white space must be deliminated by quotation marks. |
hex string |
Defines dotted-hexadecimal data. Each byte in hexadecimal character strings is two hexadecimal digits - each byte can be separated by a period, colon, or white space. |
ip address |
Defines an IP address. |
Default
The default instance number is 0.
Command Mode
DHCP pool configuration
Related Commands
ip dhcp pool
Usage Guidelines:
DHCP provides a framework for passing configuration information to hosts on a TCP/IP network. Configuration parameters and other control information are carried in tagged data items that are stored in the options field of the DHCP message. The data items themselves are also called options. The current set of DHCP options are documented in RFC 2131, Dynamic Host Configuration Protocol.
Examples:
This example configures DHCP Option 19, which specifies whether the client should configure its IP layer for packet forwarding. A value of “0” means disable IP forwarding; a value of “1” means enable IP forwarding. IP forwarding is enabled in This example:
(config-data)# ip dhcp pool gigabitethernet 0/0
# option code 19 hex 01
This example configures DHCP option 72, which specifies the World Wide Web servers for DHCP clients. World Wide Web servers 172.16.3.252 and 172.16.3.253 are configured in This example:
# option code 72 ip 172.16.3.252 172.16.3.253