ip dhcp-server custom-option-def

Defines a DHCP custom option that the DHCP Server can provide to clients.

Syntax

Command Parameters

<224-254>
Specifies a DHCP code from the unassigned range to the custom option.
name WORD<0-128>
Specifies a readable text label that identifies the custom option.
type <ipv4-address | uint32 | string>
Specifies that the data type for the custom option must be an IPv4 address, a 32-bit integer, or a string.

Default

None

Command Mode

Global Configuration

Usage Guidelines

This command defines the custom option for all DHCP subnets that this DHCP Server services.

To assign a data value to the option, use the ip dhcp-server custom-option-data command in Global Configuration mode for DHCP Server or the custom-option-data <224-254> value WORD<0-128> command in DHCP Server Subnet Configuration mode for a specific subnet.