Chapter9
DHCPConfiguration
TableofContents
DHCPOverview.................................................................83
ConguringDHCP..............................................................84
DHCPCongurationExample...............................................99
DHCPMaintenanceandDiagnosis......................................103
DHCPOverview
DynamicHostCongurationProtocol(DHCP)enablesahostonthe
networktoobtainanIPaddressensuringitsnormalcommunica-
tionandrelevantcongurationinformationfromaDHCPserver .
DHCPadoptsUDPasthetransmissionprotocol.Hostsendsames-
sagetoPort67oftheDHCPserverandtheDHCPserverreturns
themessagetoPort68ofthehost.TheDHCPworksinthefol-
lowingsteps:
1.HostsendsabroadcastpacketDHCPDiscoverincludingthere-
questofIPaddressandothercongurationparameters.
2.DHCPserverreturnsaunicastpacketDHCPOfferincludingthe
validIPaddressandconguration.
3.HostselectstheserverwhichreturnsDHCPOfferarrivingat
rstandsendsaunicastDHCPRequesttotheserver ,indicating
toacceptrelevantconguration.
4.SelectedDHCPserverreturnsaunicastpacketDHCPAckfor
conrmation.
BynowthehostcanusetheIPaddressandrelevantconguration
obtainedfromtheDHCPserverforcommunication.
DHCPsupportsthreemechanismsforIPaddressallocation:
1.Automaticallocation—DHCPassignsapermanentIPaddress
toaclient.
2.Dynamicallocation—DHCPassignsanIPaddresstoaclientfor
alimitedperiodoftime(oruntiltheclientexplicitlyrelinquishes
theaddress).
3.Manualallocation—thenetworkadministratorassignsanIPad-
dresstoaclientandDHCPisusedsimplytoconveytheas-
signedaddresstotheclient.
UsuallyDynamicallocationmethodisadopted.Thevalidtimeseg-
mentofusingtheaddressiscalledleaseperiod.Oncethelease
periodexpires,thehostmustrequesttheserverforcontinuous
lease.Thehostcannotcontinuetoleaseuntilitacceptsthere-
quest,otherwiseitmustgiveupunconditionally.
CondentialandProprietaryInformationofZTECORPORATION83