Dynamic Host Configuration Protocol (DHCP) Commands
©2008 Allied Telesis Inc. All rights reserved.
53.18
AlliedWare Plus
TM
Operating System Software Reference C613-50003-00 REV E
Software Version 5.2.1
option
This command adds a user-defined option to the DHCP address pool you are configuring. For
the
hex
,
integer
, and
flag
option types, if the option already exists, the new option
overwrites the existing options value. Options with an
ip
type can hold a list of IP addresses, so
if the option already exists in the pool, then the new IP address is added to the list of existing IP
addresses.
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 the specified user-defined option from the DHCP pool, or all
user-defined options from the DHCP pool.
Syntax
option [<1-254>|
<option-name>
]
<line>
no option [<1-254>|
<option-name>
]
Mode
DHCP mode
Examples
To add the ASCII-type option named “tftp-server-name” to the pool “P2” and give the option
the value “server1”, use the command:
awplus(config)#
ip dhcp pool P2
awplus(dhcp-config)#
option tftp-server-name server1
To add the hex-type option named “tcpip-node-type” to a pool and give the option the value
“08af ”, use the command:
awplus(dhcp-config)#
option tcpip-node-type 08af
Parameter
Description
<1-254>
The option number of the option. Options with the same number
as one of the standard options overrides the standard option
definition.
<option-name>
Option name associated with the option.
<line>
The option value. You must specify a value that is appropriate to
the option type:
hex
A hexadecimal string. Valid characters are the
numbers 0–9 and letters a–f. Embedded spaces are
not valid. The string must be an even number of
characters, from 2 and 256 characters long.
ip
An IPv4 address, in dotted decimal notation. To
create a list of IP addresses, you must add each IP
address individually using the
option
command
multiple times.
integer
A number from 0 to 4294967295.
flag
A value of either
true
,
on
, or
enabled
to set the
flag, or
false
,
off
or
disabled
to unset the flag.