Quick Reference Guide
DHCP Server and Relay Agent Commands 945
Command Mode
Global Configuration mode
User Guidelines
This command has no user guidelines.
Example
console#ip dhcp ping packets 5
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
•
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.
Default Configuration
The default is a 1 day lease.
Command Mode
DHCP Pool Configuration mode
2CSNXXX_SWUM200.book Page 945 Tuesday, December 10, 2013 1:22 PM










