Chapter9DHCPConguration
ConfiguringDCHPServer
1.ToenableDHCPorstopDHCP ,usethefollowingcommand.
Step
CommandFunction
1
ZXR10(config)#ipdhcpenable
AfterenablingDHCP ,system
willtakeDHCPipaddress
requestontheinterfacewhich
iscongureduserinterface
attribute.Thissystembuilts
inDHCPServerfunctionand
DHCPRelayfunctionwhich
areenabledbyusingthis
command.
Bydefault,disableDHCP .
2
ZXR10(config)#noipdhcpenableThisstopsDHCP .
2.ToenableDHCPworkingmodeontheinterface,usethefol-
lowingcommand.
CommandFunction
ZXR10(config-if-vlanX)#ipdhcpmode[server|relay|
proxy]
Relay:enalbeDHCPRelayon
theinterface;
server:enableDHCPServeron
theinterface;
proxy:enableDHCPProxyon
theinterface.
Afterenablingbuilt-inDHCPRelayprocess,systemprocesses
IPaddressrequestsentfromDHCPclientontheinterfaceand
allocateIPaddressforDHCPClientdynamicallybyexternal
DHCPServerconguredintheinterface.
Afterenablingbuilt-inDHCPProxyprocess,systemwillprocess
IPaddressrequestsentfromDHCPclientontheinterface,
allocateIPaddressforDHCPClientdynamicallybyexternal
DHCPServerconguredintheinterfaceandreplacethelong
leasewithshortleasetoclient.WhenDHCPClientsending
continue-to-rentrequest,ifthelongleaseallocatedbyDHCP
Serverisnottimeout,DHCPProxywillresponseDHCPClient
directlyandwon’tsendcontinue-to-rentrequesttoexternal
DHCPServertorelievetheburdenofexternalDHCPServer .
Onlyonefunctionamongsystembuilt-inDHCPServerfunction,
DHCPRelayfunctionandDHCPProxyfunctioncanberunon
thesameinterface.
3.Tobindpolicytoaninterfaceordeleteconguration,usethe
followingcommands.
CondentialandProprietaryInformationofZTECORPORATION89