Chapter3DHCPandDHCPSNOOPINGConīæguration
assignIPaddressforDHCPClientdynamically.DHCPServersup-
portstoassignIPaddressfordirectconnectedDHCPusers,also
supportstoassignIPaddressthroughDHCPusersbyDHCPRelay
forwarding.
AssignIPaddressfordirectlyconnecteduser ,DHCPServerwill
assignaddressbyattachedIPPoolonaccessDHCPuserinterface
(usepeerdefaultippoolcommandtoattach).DHCPSERVERwill
choosecorrespondingaddresspooltoassignonglobalconīægured
alladdresspool.
Afterstartthebuilt-inDHCPProxyprocess,systemwillresolve
DHCPClientāsIPaddressrequestonconīægureduserinterfaces,dy-
namicallyassignIPaddressforDHCPClientthroughexternalDHCP
Serverconīæguredoninterfaces.Whentheclientsendsreletting
requestandifthelongleasetimethattheDHCPServerassigns
toDHCPProxyisnotovertime,DHCPProxywillresponsetothe
client.Thatis,DHCPProxydoesnotneedtosendrelettingrequest
toDHCPServer .ThisdecreasestheburdenofDHCPServer .
ThissystemcontainsDHCPServer ,DHCPRelayandDHCPProxy
functionsinside,buttheycanātoperatetogether .Thus,iftheDHCP
Serverfunctionhasbeenstarted,itmuststopthestartedDHCP
ServerfunctionbeforestartingDHCPRelayfunction.
Example
ThisexampledescribeshowtostartDHCPRelayfunctiononan
interface.
ZXR10(config)#interfacefei_1/1
ZXR10(config-if)#ipdhcpmoderelay
ZXR10(config-if)#
Related
Commands
showipdhcpconfigure
ipdhcpproxyclient
leasetime
Purpose
UsethiscommandtoconīæguretheleasttimethattheDHCPProxy
assignstoDHCPClient.
CommandModes
Globalconīæguration
Syntax
ipdhcpproxyclientleasetime<short_leasetime>
Syntax
Description
<short_leasetime>
Shortleasetime,initsunitofsecond,ranging
from30to3600.
Defaults
Itis60secondsbydefault.
Example
Thisexampleshowshowtoconīæguretheshortleasetimeto120
seconds.
ZXR10(config)#ipdhcpproxyclientleasetime120
ConīædentialandProprietaryInformationofZTECORPORATION83