DHCP Commands
XSR CLI Reference Guide 15-91
Examples
ThefollowingexamplespecifiesthehardwareaddressfortheDHCPclienthosttobeofEthernet
typewithMACaddress0001.f401.2710:
XSR(config-dhcp-pool)#hardware-address 0001.f401.2710 ethernet
ThefollowingexamplespecifiesthehardwareaddressfortheDHCPclienthostwithIPaddress
10.10.10.20tobeofEthernettypewith0001.f401.2710astheMACaddress:
XSR(config-dhcp-pool)#host 10.10.10.20 255.255.255.0
XSR(config-dhcp-host)#hardware-address 0001.f401.2710 ethernet
ThefollowingexamplesetsthehardwareaddressfortheDHCPhostinclassengtobeofEthernet
typewithMACaddress0001.f401.2710:
XSR(config-dhcp-pool)#client-class writer
XSR(config-dhcp-class)#hardware-address 0001.f401.2710 ethernet

host

ThiscommandspecifiestheIPaddressandnetworkmaskforamanualbindingtoaDHCPclient.
Bydefault,theDHCPserverwillexamineitsdefinedIPaddresspoolsifthemaskandprefix
lengthareunspecified.IfnomaskisspecifiedintheIPaddresspooldatabase,theClassA,B,orC
naturalmaskisused.Thiscommandisvalidformanualbindingsonly.
Syntax
host address [mask | prefix-length]
Syntax of the “no” Form
UsethenoformofthiscommandtoremovetheIPaddressoftheclient:
no host
Mode
Anyofthefollowingcommandmodesareavailable:
DHCPpoolconfiguration:XSR(config-dhcp-pool)#
DHCPhostconfiguration:XSR(config-dhcp-host)#
DHCPclientclassconfiguration:XSR(config-dhcp-class)#
Note: You cannot add a host to different DHCP pools. For example, host firewall cannot be added to
both pool1 and pool2.
address IP address of the client.
mask Network mask of the client.
prefix-length Number of bits that comprise the address prefix. The prefix is an alternative way
of specifying a client’s network mask. It must be preceded by a forward slash (/).