Can DHCP deamon expire leases "lazily"?
On Tue, 2012-07-03 at 07:37 -0400, Tom Horsley wrote:
> I've got some virtual machines with old kernels that know nothing
> about virt clocks. They keep time so horribly when loaded up with
> testbed runs that they forget to renew their DHCP lease, which
> results in their name being removed from the DNS server, which
> results in testbed failure :-(.
If they keep time so badly, you might want to play around with NTP
servers forcing the clock back into sync, quite often.
> Does anyone know if it is possible to configure the DHCP daemon
> to just leave expired leases active until it actually needs
> to reuse the IP address for a new request?
Depends which daemon you're using, but that's sometimes the default
behaviour (completely new requests from strangers often get un-used IPs,
until it has no choice but to re-use previously leased ones, even if the
leases have expired).
One option is to extend the lease time to something much longer than the
expected up-time of those clients (a day, a few days, a couple of weeks,
Setting static addresses in the DHCP server configuration is probably
the simplest solution. If you have less machines than available IPs,
I'd do that. It also makes other configuration easier (firewalls, and
other networking), which machines always have the same IP.
[tim@localhost ~]$ uname -r
Don't send private replies to my address, the mailbox is ignored. I
read messages from the public lists.
users mailing list
To unsubscribe or change subscription options:
Have a question? Ask away: http://ask.fedoraproject.org