DHCP Commands
XSR CLI Reference Guide 15-109
Examples
ThefollowingexampleconfiguresDHCPoption33,whichspecifiesstaticroutesthattheclient
shouldinstallinitsroutingcache.Ifmultipleroutestothesamedestinationareset,theyarelisted
indescendingorderofpriority.TheroutesconsistofIPaddresspairs.Thefirstaddressisthe
destinationaddress,thesecondaddressistherouterforthedestination.
XSR(config-dhcp-pool)#option 33 ip 90.1.1.90 123.124.23.26 90.1.1.90 123.24.56.78
ThefollowingexampleconfiguresDHCPoption19,whichspecifieswhethertheclientshould
enableitsIPlayerforpacketforwarding.Valuesof0and1disableandenableIPforwarding,
respectively.IPforwardingisenabledinthefollowingexample:
XSR(config-dhcp-pool)#option 19 hex 01
ThefollowingexampleconfiguresDHCPoption1,whichsetstheclient’ssubnetmaskashigher
prioritywhenitandtherouterIDarespecifiedintheDHCPREPLY:
XSR(config-dhcp-pool)#option 1 ip 255.255.255.0
ThefollowingexampleconfiguresDHCPoption2,whichlocatesaclientasanoffset4650seconds
fromCoordinatedUniversalTime(UTC)orfivehourswestofthezeromeridian(London):
XSR(config-dhcp-pool)#option 2 hex 4650
ThefollowingexampleconfiguresDHCPoption72,whichspecifiesWorldWideWeb(WWW)
serversforDHCPclients.TwoWWWserveraddressesareconfiguredinthefollowingexample:
XSR(config-dhcp-pool)#option 72 ip 168.24.3.252 168.24.3.253
TheexamplebelowconfiguresDHCPoption13,whichspecifiesaclient’sdefaultbootimagesize:
XSR(config-dhcp-pool)#option 13 hex 8001
ThefollowingexampleconfiguresDHCPoption41,whichspecifiesNetworkInformationServers
(NIS)forDHCPclients.TwoNISserveraddressesareconfiguredinthefollowingexample:
XSR(config-dhcp-pool)#option 41 ip 90.3.4.5 90.1.1.7 90.43.9.254
117 Name
Service
Search
Server/
Multiple
16-bit hex
integers
- Sets site of Name Service servers to clients to be used for lookup. Each 16-bit
field specifies a Name Server to be used for lookup:
0 – client should refer to local naming information
6 – use DNS
41 – use NIS
44 – use NetBIOS over TCP/IP
65 – use NIS+
Defined by RFC-2937.
Length: Minimum 2 octets; multiple of 2 octets
118 Subnet
Selection
Interface/
IP address
- Sets the subnet IP address (RFC-3011). Used by a client to inform/force
server to assign an IP address-specific subnet.
Length: 4 octets
150 TFTP
Server
Cisco Vendor
Extension/IP
address
- Address of the TFTP server. This option supports the XSR’s Remote Auto
Install functionality.
Length: 4 octets
Table 15-1 XSR-Supported DHCP Options (continued)
#Protocol
Name
Category/
Type Default Description
Note: DHCP options marked with an asterisk (*) can also be configured at the CLI.