Re: location of DHCP lease files
- From: Dan Williams <dcbw redhat com>
- To: "Miner, Jonathan W (US SSA)" <jonathan w miner baesystems com>
- Cc: networkmanager-list gnome org
- Subject: Re: location of DHCP lease files
- Date: Tue, 04 Nov 2008 13:41:32 -0500
On Tue, 2008-11-04 at 11:47 -0500, Miner, Jonathan W (US SSA) wrote:
> Hi -
>
> I've noticed that the native Fedora "ifup-eth" script puts its lease files into
>
> /var/lib/dhclient/dhclient-${DEVICE}.leases
>
> but, NetworkManager puts the lease files into
>
> /var/run/dhclient-${DEVICE}.lease
Correct. NM uses different lease files because in the near future,
we'll want to use separate lease files for _each connection_. Since
many machines move around, it's pretty pointless to use the same lease
file for your home AP as for your work AP.
What happens right now is that you'll get a lease from work, dhclient
will cache it, and then when you come home it'll try to renew that work
lease at home, leading to DHCP lag. That's bad.
So even if the lease files _did_ stay in the same place as dhclient puts
them, you'd have a lot more lease files anyway. But, once we modify NM
to handle leasefile-per-connection, we should probably move them back
to /var/lib/dhclient just to they are persistent.
I assume you're worried about persistence of the lease across boots?
Dan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]