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.
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. |
DHCP Pool Configuration Mode
iS5Comm(dhcp-config) # lease 1