Specifications
How the MSS DHCP Server Works
E-2 DHCP Server
How the MSS DHCP Server Works
WhenMSSreceivesaDHCPDiscoverpacket,theDHCPserverallocatesanaddressfromthe
configuredrangeaccordingtoRFC2131andARPstheaddresstoensurethatitisnotalready in
use.Iftheaddressisinuse,theserverallocates thenextaddressintherange,andARPs
again.The
processcontinuesuntilMSSfindsanaddressthatisnotinuse.MSSthenofferstheaddresstothe
DistributedAPorclientthatsenttheDHCPDiscover.Iftherearenounusedaddressesleftinthe
range,MSSignorestheDHCPDiscoverandgeneratesalogmessage.
IftheclientdoesnotrespondtotheDHCPOfferfromtheMSSDHCPserverwithin2minutes,the
offerbecomesinvalidandMSSreturnstheaddresstothepool.
ThesiaddrvalueintheDHCPexchangesistheIPaddressoftheVLAN.Theyiaddrvalueisan
unusedaddress
withintherangetheserverisallowedtouse.
InadditiontoanIPaddress,theOffermessagefromtheMSSDHCPserveralsocontainsthe
followingoptions:
•Option54—ServerIdentifier,whichhasthesamevalueassiaddr.
•Option51—AddressLease,whichis12hoursand cannotbeconfigured.
•Option1—SubnetMaskof
theVLAN’sIPinterface.
•Option15—DomainName.Ifthisoptionisnotsetwiththesetinterfacedhcp‐server
command’sdns‐domainoption,theMSSDHCPserverusesthevaluesetbythesetipdns
domaincommand.
•Option3—DefaultRouter.Ifthisoptionisnotsetwiththesetinterface
dhcp‐server
command’sdefault‐routeroption,theMSSDHCPservercanusethevaluesetbythesetip
routecommand.Adefaultrouteconfiguredbysetiproutecanbeusediftherouteisinthe
DHCPclient’ssubnet.Otherwise,theMSSDHCPserverdoesnotspecifyarouter
address.
•Option6—DomainNameServers.Iftheseoptionsarenotsetwiththesetinterfacedhcp‐
servercommand’sprimary‐dnsandsecondary‐dnsoptions,theMSSDHCPserverusesthe
valuessetbythe setipdnsservercommand.
Configuring the DHCP Server
YoucanconfiguretheDHCPserveronanindividualVLANbasis.Toconfiguretheserver,usethe
followingcommand:
set interface vlan-id ip dhcp-server [enable | disable] [start ip-addr1 stop ip-
addr2] [dns-domain domain-name] [primary-dns ip-addr [secondary-dns ip-addr]]
[default-router ip-addr]
Thevlan‐idcanbetheVLANnameornumber.
Thestartip‐addr1andstopip‐addr2optionsspecifythebeginningandendingaddressesofthe
addressrange(alsocalledtheaddresspool).Bydefault,alladdressesexceptthehostaddressofthe
VLAN,thenetworkbroadcastaddress,and
thesubnetbroadcastaddressareincludedinthe
range.Ifyouspecifytherange,thestartaddressmustbelowerthanthestopaddress,andall
addressesmustbeinthesamesubnet.TheIPinterfaceoftheVLANmustbewithinthesame
subnetbutisnotrequiredtobe
withintherange.
(Forinformationabouttheotheroptions,seethe.)