Enterasys Networks XSR CLI Router User Manual


 
DHCP Commands
XSR CLI Reference Guide 15-89
Example
Thefollowingexamplespecifies 11.12.1.99astheIPaddressoftheDNSserverofaclientinthe
subnet:
XSR(config-dhcp-pool)#dns-server 11.12.1.99
Thefollowingexamplespecifies11.12.1.99astheIPaddressoftheDNSserverofthehostwiththe
MACaddress1111.2222.3333:
XSR(config-dhcp-pool)#hardware-address 1111.2222.3333
XSR(config-dhcp-host)#dns-server 11.12.1.99
Thefollowingexamplespecifies 11.12.1.99astheIPaddressoftheDNSserverofaclientinthe
clientclassengineering:
XSR(config-dhcp-pool)#client-class engineering
XSR(config-dhcp-class)#dns-server 11.12.1.99
domain-name
ThiscommandspecifiesthedomainnameforDHCPclientservicesbytheDHCPserver.
Dependingontheclientconfigurationinheritance,thecommandshouldbeusedfromtheproper
mode.Ifitisspecifiedfrommultiplemodes,anoverridemechanismchoosestheinnermostconfig
value,withhostasinnermost,thenclientclass
andpoolasthemostgeneral.
Syntax
domain-name domain
Syntax of the “no” Form
Usethenoformofthiscommandtoremovethedomainname:
no domain-name
Mode
Anyofthefollowingcommandmodesareavailable:
DHCPpoolconfiguration:
XSR(config-dhcp-pool)#
DHCPhostconfiguration:XSR(config-dhcp-host)#
DHCPclientclassconfiguration:XSR(config-dhcp-class)#
Examples
Thefollowingexamplespecifies enterasys.comasthedomainnameofaclientinthesubnet:
XSR(config-dhcp-pool)#domain-name enterasys.com
Thefollowingexamplespecifies enterasys.comasthedomainnameofthehostwiththeMAC
address0011.a121.1fa2:
XSR(config-dhcp-pool)#hardware-address 0011.a121.1fa2
XSR(config-dhcp-host)#domain-name enterasys.com
domain Domain name string of the client.