Cisco Cisco ASR 5000

Page of 9109
  DHCP Service Configuration Mode Commands 
lease-duration  ▀   
 
Command Line Interface Reference, StarOS Release 18  ▄  
 
   
3493 
lease-duration 
Configures the minimum and maximum allowable lease times that are accepted in responses from DHCP servers. 
Product
 
GGSN 
ASN-GW 
HA 
P-GW 
SAEGW 
Privilege
 
Security Administrator, Administrator 
Mode
 
Exec > Global Configuration > Context Configuration > DHCP Service Configuration 
configure > context context_name > dhcp-service service_name
 
Entering the above command sequence results in the following prompt: 
[context_name]host_name(config-dhcp-service)# 
Syntax
 
lease-duration min min_time max max_time 
min
 
min_time
 
Specifies the minimum acceptable lease time (in seconds) as an integer from 600 trough 3600. Default: 600 
max
 
max_time
 
Specifies the maximum acceptable lease time (in seconds) as an integer from 10800 through 4294967295. 
Default: 86400 
Usage 
To reduce the call setup time, the system requests IP addresses from the DHCP server in blocks rather than on 
a call-by-call basis. Each address received has a corresponding lease time, or time that it is valid. The values 
configured by command represent the minimum and maximum times that the system allows and negotiates 
for the lease(s). 
If the DHCP server responds with values that are out of the range specified by the min and max values, the 
system accumulates warning statistics. Responses that fall below the minimum value are rejected by the 
system and the system contacts the DHCP server with the next highest priority. Responses that are greater 
than the maximum value are accepted. 
When half of the lease time has expired, the system automatically requests a lease renewal from the DHCP 
server. This is configured using the 
T1-threshold
 command. 
Example
 
The following command configures the minimum allowable lease time for the system to be 
1000
 and the 
maximum to be 
36000