CLI Reference Guide-R02

Table Of Contents
Chapter 27
| DHCP Commands
DHCP Server
– 796 –
option Use this command to enable DHCP options. Use the no form of the command to
disable DHCP options.
Syntax
option code {ascii word | hex hex-value | ip-address address1[address2
[address3[ address 4]]]}
code - A DHCP option code (Range: 0-254).
ascii word - ASCII character string representing a network device (Range: 1-
48 ASCII characters).
hex hex-value - A concatenated hex number string of up to 4 IPv4
addresses in hex format each representing a network device.
ip-address address - up to 4 IPv4 addresses can be entered sequentially
with blank spaces between. Each address represents a device in the
network.
Default:
Disabled
Command Mode:
DHCP Pool Configuration
Command Usage:
To convert IPv4 address to a hex number string, each octet of the address is
individually converted to hex and then all four hex values obtained concatenated.
Take for example the address 192.168.2.1, 192=c0
16
, 168=a8
16
, 2=02
16
, and 1=01
16
resulting in c0a80201
16
as the hex value for the IPv4 address.
Example
In this example network devices 192.168.2.1 and 192.168.3.1 are entered in hex
format using the option command.
Console(config-dhcp)#option 43 hex c0a802021c0a80301
Console(config-dhcp)#
clear ip dhcp binding This command deletes an automatic address binding from the DHCP server
database.
Syntax
clear ip dhcp binding [address]
address - The address of the binding to clear.
Default Setting
None