The renewal-time command configures the renewal time of IP addresses.
The undo renewal-time command restores the default configuration.
By default, the renewal time of IP addresses is 50% of the lease of the address pool.
Parameter | Description | Value |
---|---|---|
days |
Specifies the number of days used for renewing IP addresses. |
The value is an integer ranging from 0 to 999. |
hours |
Specifies the number of hours used for renewing IP addresses. |
The value is an integer ranging from 0 to 23. |
minutes |
Specifies the number of minutes used for renewing IP addresses. |
The value is an integer ranging from 0 to 59. |
Usage Scenario
To configure the renewal time of IP addresses in an address pool, run the renewal-time command.
When the renewal time elapses, a DHCP client automatically sends a DHCP REQUEST packet to the DHCP server that assigns an IP address. If the IP address is valid, the DHCP server replies with a DHCPACK packet, notifying the DHCP packet that a new IP address lease has been obtained. If the DHCP client receives a DHCPNAK packet from the DHCP server, a new IP address needs to be requested.Precautions
The renewal time for an IP address must be less than the address pool lease configured using the lease command and the re-binding time of the IP address configured using the rebinding-time command.
If renewal-time has been configured and is reconfigured to 0, this parameter automatically restores to the default value. If renewal-time has not been configured before, the default value is used.