Command Line Interface
9911553-KDU 137 365 Uen D 2006-06-16
7.23.16 lease
This command configures the duration that an IP address is assigned to a DHCP
client. Use the no form to restore the default value.
Syntax
lease {days [hours] [minutes] | infinite}
no lease
• days - Specifies the duration of the lease in numbers of days.
(Range: 0-364)
• hours - Specifies the number of hours in the lease. A days value
must be supplied before hours can be configured. (Range: 0-23)
• minutes - Specifies the number of minutes in the lease. A days
and hours value must be supplied before minutes can be
configured. (Range: 0-59)
• infinite - Specifies that the lease time is unlimited. This option
is normally used for addresses manually bound to a BOOTP client
through the host command.
Default Setting
One day
Command Modes
DHCP Pool Configuration
Example
The following example leases an address to clients using this pool for 7 days.
Console(config-dhcp)#lease 7
Console(config-dhcp)#