DHCP Server and Relay Agent Commands 969
lease
Use the lease command in DHCP Pool Configuration mode to set the period
for which a dynamically assigned DHCP address is valid. Use the infinite
parameter to indicate that addresses are to be automatically assigned. Use the
no form of the command to return the lease configuration to the default. Use
the
show ip dhcp pool
command to display pool configuration parameters.
Use the
show ip dhcp binding
command to display the expiration time of the
leased IP address.
Syntax
lease {
days
[
hours
][
minutes
]|infinite}
no lease
Parameter Description
Default Configuration
The default is a 1 day lease.
Command Mode
DHCP Pool Configuration mode
User Guidelines
This command has no user guidelines.
Parameter Description
days The number of days for the lease duration. Range 0-59. Default
is 1.
hours The number of hours for the lease duration. Range 0-23. There
is no default.
minutes The number of minutes for the lease duration. Range 0-59.
There is no default.
infinite The lease does not expire.
2CSPC4.X8100-SWUM102.book Page 969 Friday, March 15, 2013 8:56 AM