
Dynamic Host Configuration Protocol (DHCP) Commands
©2008 Allied Telesis Inc. All rights reserved.
Software Version 5.2.1
AlliedWare Plus
TM
Operating System Software Reference C613-50003-00 REV E
53.9
ip dhcp option
This command creates a user-defined DHCP option. You can then use this option when
configuring a DHCP pool, by using the
option
command. Options with the same number as
one of the pre-defined options override the standard option definition. The pre-defined
options use the option numbers 1, 3, 6, 15, and 51.
The
no
parameter removes either the specified user-defined option, or removes all user-
defined options. This also automatically removes the user-defined options from the associated
DHCP address pools.
Syntax
ip dhcp option <1-254> [name <
option-name
>] [ascii|hex|ip|integer|
flag]
no ip dhcp option [<1-254>|<
option-name
>]
Mode
Configure mode
Examples
To define a user-defined ASCII string option as option 66, without a name, use the command:
awplus(config)#
ip dhcp option 66 ascii
To define a user-defined hexadecimal string option as option 46, with the name “tcpip-node-
type”, use the command:
awplus(config)#
ip dhcp option 46 name tcpip-node-type hex
To define a user-defined IP address option as option 175, with the name “special-address”, use
the command:
awplus(config)#
ip dhcp option 175 name special-address ip
To remove the specific user-defined option with the option number 12, use the command:
awplus(config)#
no ip dhcp option 12
To remove the specific user-defined option with the option name “perform-router-discovery”,
use the command:
awplus(config)#
no ip dhcp option perform-router-discovery
To remove all user-defined option definitions, use the command:
awplus(config)#
no ip dhcp option
Parameter
Description
<1-254>
The option number assigned to the option. Options with the same
number as one of the standard options overrides the standard
option definition.
<option-name>
Option name used to identify the option. You cannot use a
number as the option name. Valid characters are any printable
character. If the name contains spaces then you must enclose it in
“quotation marks”.
Default: no default
ascii
or
hex
or
ip
or
integer
or
flag
The option type. Specify
ascii
for an ASCII text string.
Specify
hex
for a hexadecimal string.
Specify
ip
for one or more IP addresses.
Specify
integer
for an integer.
Specify
flag
for a flag.