This article details some of the problems that customers may face when infinite lease time is configured for DHCP clients on the DHCP server and suggests a few workarounds for these problems.
By using the following configuration knob, customers can set infinite lease time for DHCP clients.
For IPv4: set access address-assignment pool family inet dhcp-attributes maximum-lease-time infinite
set access address-assignment pool family inet dhcp-attributes maximum-lease-time infinite
For IPv6: set access address-assignment pool family inet6 dhcp-attributes maximum-lease-time infinite
set access address-assignment pool family inet6 dhcp-attributes maximum-lease-time infinite
Refer to dhcp-attributes (Access IPv4 Address Pools) for more information.
Possible Issues
However, when infinite lease time is set for DHCP clients, the following issues may be observed:
To resolve the problems described in the above two scenarios, users would need to do the following as required:
#set system service dhcp-local-server dhcp/dhcpv6 overrides delete-binding-on-renegotiation
Scenario 2: When the DHCP server device (MX) is rebooted or restarted due to upgrades, or reset or replaced: Users can use either of the following workarounds:
The following solution may be more manageable:
Reboot all CPEs.
During a new maintenance window, reboot the MX device.
Change the lease back to infinite.
# set system services dhcp-local-server persistent-storage automatic
Note: This might not be supported across all upgrades. Contact Support before trying this option.