dhcp-server option

This command configures the DHCP Option table, which lets you define additional DHCP Options that the DHCP server can use to service the DHCP client. These DHCP Options are included in the DHCPOffer response sent by the DHCP server. The table is a "child" of the DHCP Servers table.

Syntax

(config-network)# dhcp-server option <Index> 
(option-<Index>)# 

Command

Description

Index

Defines the table row index.

dhcp-server-number

Defines the index of the DHCP Servers table.

expand-value {no|yes}

Enables the use of the special placeholder strings, "<MAC>" and "<IP>" for configuring the value.

option

Defines the DHCP Option number.

type {ascii|hex|ip}

Defines the format (type) of the DHCP Option value.

value

Defines the DHCP option value.

Command Mode

Privileged User

Example

This example configures an additional DHCP Option 159 for the DHCP server configured in Index 0:

(config-network)# dhcp-server option 0
(option-0)# dhcp-server-number 0
(option-0)# option 159