DHCP Commands
15-102 Configuring DHCP
Syntax of the “no” Form
Usethenoformofthiscommandtoremovetheoptions:
no option code [instance number]
Default
Defaultinstancenumber:0
Mode
Anyofthefollowingcommandmodesareavailable:
DHCPpoolconfiguration:XSR(config-dhcp-pool)#
DHCPhostconfiguration:XSR(config-dhcp-host)#
DHCPclientclassconfiguration:XSR(config-dhcp-class)#
hex string Dotted hexadecimal data. Each byte in hexadecimal character strings is two hex
digits - each byte can be separated by a period, colon, or white space. The following
options are set with a hex value: 2, 13, 19, 20, 22-27, 29-31, 34-39, 43, 46,58, 59.
ip address Specifies an IP address. The following options are set with an IP address: 1, 3-11, 16,
21, 28, 32, 33, 41, 42, 44, 45, 48, 49, 65, 68-76, and 118.
Note: Option examples are shown following the table.
Table 15-1 XSR-Supported DHCP Options
#Protocol
Name
Category/
Type Default Description
0 Pad - - Causes subsequent fields to align on word boundaries.
Length: 1 octet
1 Subnet
Mask
Basic/
Address
Mask
See
descrip-
tion
Client's subnet mask (RFC-950). If both Subnet Mask and Router options are
specified in a DHCP reply, the Subnet Mask option must be expressed first.
Length: 4 octets
Default: Subnet of the interface on which the request was received
2 Time Offset BOOTP/
32-bit hex
integer (in
twos)
- Offset of a client's subnet in seconds from Coordinated Universal Time (UTC).
Positives indicate a site east of, and negatives a site west of the zero
meridian.
Length: 4 octets
3*Router Basic, MS
DHCP Client/
IP address
list
- List of IP addresses for default routers on the client's subnet. List in order of
preference.
Length: 4-octet minimum; multiples of 4
CLI command: default-router
4Time
Server
BOOTP/IP
address list
- RFC-868 compliant timeservers available to a client. List in order of
preference.
Length: 4-octet minimum; multiples of 4