lease DHCP Overview
Enterasys Matrix DFE-Gold Series Configuration Guide 20-15
Usage
Theseconfigurationparametersandothercontrolinformationarecarriedintaggeddataitems
thatarestoredintheoptionsfieldoftheDHCPmessagetonetworkhosts.Alloptionsspecifiedin
Table 20‐1onpage 20‐2maybeconfiguredusingthiscommand.Severalcommonly‐usedoptions
mayalsobeconfiguredusing
dedicatedcommands:“domain‐name”onpage 20‐9,“dns‐server”
onpage 20‐10,“netbios‐name‐server”onpage 20‐11,“netbios‐node‐type”onpage 20‐11,and
“default‐router”onpage 20‐12.
Theparameterformatofasite‐specific optionmustbeeitherasciiorhex.
The“no”
formofthiscommanddeletesoneorallDHCPoptions.
Examples
ThisexampleshowshowtoconfigureDHCPoption19,whichspecifieswhethertheclientshould
configureitsIPlayerforpacketforwarding.Inthiscase,IPforwardingisenabledwiththe01
value:
Matrix>Router(config)#ip dhcp pool localpool
Matrix>Router(config-dhcp-pool)#option 19 hex 01
ThisexampleshowshowtoconfigureDHCPoption72,whichassignsoneormoreWebservers
forDHCPclients.Inthiscase,twoWebserveraddressesareconfigured:
Matrix>Router(config)#ip dhcp pool localpool
Matrix>Router(config-dhcp-pool)#option 72 ip 168.24.3.252 168.24.3.253
lease
UsethiscommandtospecifythedurationoftheleaseforanIPaddressassignedbyaDHCP
servertoaclient.
Syntax
lease {days [hours] [minutes] | infinite}
no lease
Parameters
Defaults
Ifhoursorminutesarenotspecified,novalueswillbeconfigured.
Mode
Routercommand,DHCP‐Pool,Client‐ClassandHardware‐Addresscommandmodes.
days Specifiesthenumberofdaysanaddressleasewillremainvalid.
hours (Optional)Whenadaysvaluehasbeenassigned,specifiesthenumber
ofhouranaddressleasewillremainvalid.
minutes (Optional)Whenadaysvaluehasbeenassigned,specifiesthe
number
ofminutesanaddressleasewillremainvalid.
infinite Specifiesthatthedurationoftheleasewillbeunlimited.