C613-50631-01 Rev A Command Reference for IE340 Series 3049
AlliedWare Plus™ Operating System - Version 5.5.3-0.x
DYNAMIC HOST CONFIGURATION PROTOCOL (DHCP) COMMANDS
IP
DHCP OPTION
ip dhcp option
Overview This command creates a user-defined DHCP option. 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 variant of this command 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>] [<option-type>]
no ip dhcp option [<1-254>|<option-name>]
Mode Global Configuration
Examples To define a user-defined ASCII string option as option 66, without a name, use the
command:
awplus# configure terminal
awplus(config)# ip dhcp option 66 ascii
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 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
<option-type> The option value. You must specify a value that is appropriate to
the option type:
asci An ASCII text string
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 or mask that has the dotted decimal
A.B.C.D notation. To create a list of IP addresses, you
must add each IP address individually by using the
option command multiple times.
integer A number from 0 to 4294967295.
flag A value that either sets (to 1) or unsets (to 0) a flag:
true, on, or enabled will set the flag.
f alse, off or disabled will unset the flag.