lease

To configure the DHCP lease period for an IP address (for the corresponding DHCP server address pool) that is assigned from a DHCP server to a DHCP client, use the command lease in DHCP Pool Configuration Mode. The no form of the command resets the DHCP lease period to its default value. The DHCP lease period configuration is deleted and reset if the no form of the network command is executed successfully.

lease

lease { {<days (0-365)> } { [<hours (0-23)> } { [<minutes (1-59)>]] } { | infinite} }

no lease

no lease

Parameters

Parameter Type Description
<days (0-365)> Integer Enter a value for the number of days that is used to calculate the DHCP lease period. The period also depends on the configured number of hours and minutes. This value ranges from 0 to 365. The value 0 is valid only if either number of hours or minutes is configured with any value other than 0.
<hours (0-23)> Integer Enter a value for the number of hours that is used to calculate the DHCP lease period. The period also depends on the configured number of days and minutes. This value ranges from 0 to 23. The value 0 is valid only if either number of days or minutes is configured with any value other than 0.
<minutes (1-59)> Integer Enter a value for the number of minutes that is used to calculate the DHCP lease period. The period also depends on the configured number of days and hours. This value ranges from 1 to 59.
infinite   Enter to configure the DHCP lease period as 2147483647 seconds.

Mode

DHCP Pool Configuration Mode

Default

3600 seconds (1 hour)

Prerequisites

The DHCP lease period configuration takes effect only after creating a subnet pool for a DHCP server address pool.

Examples

iS5Comm(config)# ip dhcp pool 1 pool1

iS5Comm(dhcp-config) # lease 1