Chapter7
DHCPConfiguration
TableofContents
DHCPOverview.................................................................65
DHCPSnoopingOverview...................................................66
ConguringDHCP..............................................................66
DHCPCongurationExamples.............................................68
DHCPMaintenanceandDiagnosis........................................71
DHCPOverview
DHCPallowsahostonanetworktoobtainanIPaddressfornor-
malcommunicationsandrelatedcongurationinformationfroma
DHCPserver .DetailsofDHCParedescribedinRFC2131.
Working
Procedure
DHCPusesUDPasthetransmissionprotocol.Thehostsendsmes-
sagestoport67oftheDHCPserver ,whowillreturnmessagesto
port68ofthehost.ADHCPworksinthefollowingsteps:
1.AhostsendsaDHCPDiscoverbroadcastmessagerequesting
anIPaddressandothercongurationparameters.
2.ADHCPserverreturnsaDHCPOffermessagecontainingavalid
IPaddress.
3.HostselectstheserveratwhichtheDHCPOfferarrivesrst,
andsendsaDHCPRequestmessagetotheserver ,whichindi-
catesitacceptstherelatedcongurations.
4.SelectedDHCPserverreturnsaDHCPAckmessageforac-
knowledgement.
BynowthehostcanusetheIPaddressandrelevantconguration
obtainedfromtheDHCPserverforcommunication.
DHCPsupportsthreemechanismsforIPaddressallocation:
�DHCPassignsapermanentIPaddresstoaclient.
�DHCPassignsanIPaddresstoaclientforalimitedperiodof
time(oruntiltheclientexplicitlyrelinquishestheaddress).
�NetworkadministratorassignsanIPaddresstoaclientand
DHCPisusedsimplytoconveytheassignedaddresstothe
client.
UsuallyDynamicallocationmethodisadopted.Thevalidtimeseg-
mentofusingtheaddressiscalledleaseperiod.Oncethelease
periodexpires,thehostmustrequesttheserverforcontinuous
lease.Thehostcannotcontinuetoleaseuntiltheserveraccepts
therequest,otherwiseitmustgiveupunconditionally.
CondentialandProprietaryInformationofZTECORPORATION65