Skip to content
Advertisement

DHClient override renewal time

My ubuntu machine is receiving a renewal time of 7000 seconds from the DNS server. I want to change this on the ubuntu machine to be longer via the dhclient.conf. I can’t change the dhcp sever.

However all the examples I try don’t seem to be the correct syntax. For instance if I add at the top of the .conf to request a lease time of 6000, I get no change. I’ve also tried

JavaScript

as global variables.

JavaScript

Any ideas, seems like it should be easy to do?

TIA

Advertisement

Answer

In my case the solution was to add in dhclient.conf :

JavaScript

This override the lease time given by the server.

By the way this set the expiration time, the renewal (T1) and rebind (T2) times are calculated by the client (something like 1/2 and 7/8 of the lease time).

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement