DHCP Commands
15-92 Configuring DHCP
Next Mode
WhenthiscommandisspecifiedfromeitherDHCPpoolconfigurationmodeorDHCPclass
configurationsubmode,theCLIacquiresDHCPhostconfigurationmode.Whenspecifiedfrom
DHCPhostorclientmode,thecommanddoesnotacquireasubmode.
XSR(config-dhcp-host)#
Examples
Thisexamplesets15.12.1.99astheIPaddressoftheclientand255.255.248.0asitssubnetmask:
XSR(config-dhcp-pool)#host 15.12.1.99 255.255.248.0
Thefollowingexamplespecifies15.12.1.99astheIPaddressand255.255.248.0asthesubnetmask,
forthehostwithhardwareaddress1111.2222.3333:
XSR(config-dhcp-pool)#hardware-address 1111.2222.3333
XSR(config-dhcp-host)#host 15.12.1.99 255.255.248.0
Thefollowingexamplespecifies15.12.1.99astheIPaddressand255.255.248.0asthesubnetmask
fortheclientintheclientclasseng:
XSR(config-dhcp-pool)#client-class eng
XSR(config-dhcp-class)#host 15.12.1.99 255.255.248.0

ip address dhcp

ThiscommandconfiguresaninterfaceasaDHCPClient.AnEthernetinterfacecanbeconfigured
touseDHCPClienttoacquireanIPaddressaswellasotherconfigurationparameters.Bootfile
downloadisnotsupported.
Syntax
ip address dhcp [client-id client-identifier][hostname string]
Parameters
Syntax of the “no” Form
ThenoformofthiscommanddisablesDHCPclient:
no ip address dhcp
Note: When an interface address is configured to be DHCP negotiated the only legal version of the
no command is entered as no ip address dhcp.
client-identifier ThisvaluecorrespondstoOption61passedwithinDHCPpackets.A
DHCPserverusesthisvaluetoindexitsdatabaseofaddressbindings.
Thevalueisexpectedtobeuniqueforallclientsinanadministrative
domain.ItisintendedthatthisvaluebeeitheraMACaddressorthe
symbolicIDofaportwithaMACaddress(e.g.FastEthernet1.)
hostname string ThestringcorrespondstoOption12.Thenamemayormaynotbe
qualifiedwiththelocaldomainname.RFC1035characterset
restrictionsareenforced.