DHCPD Leases, no way to clean the file?

Jorge Bastos mysql.jorge at decimal.pt
Sun Aug 21 16:38:17 UTC 2022


Hi Glen,

I dig into man dhcpd.conf but missed that, sorry about that.
Undestood the explanation and thank you for that, will stick to the 
default.

Jorge,

On 2022-08-21 14:00, glenn.satchell at uniq.com.au wrote:

> Hi Jorge
> 
> This is from the dhcpd.conf man page:
> 
> The one-lease-per-client statement
> 
> one-lease-per-client flag;
> 
> If this flag is enabled, whenever a client sends a DHCPREQUEST for
> a particular lease, the server will automatically free  any  other
> leases the client holds.  This presumes that when the client sends
> a DHCPREQUEST, it has forgotten any lease  not  mentioned  in  the
> DHCPREQUEST - i.e., the client has only a single network interface
> and it does not remember leases it's holding on networks to  which
> it  is  not  currently attached.  Neither of these assumptions are
> guaranteed or provable, so we urge caution  in  the  use  of  this
> statement.
> 
> So you could use:
> 
> one-lease-per-client true;
> 
> This is not always what you might want though. dhcpd follows the RFC 
> precisely, and this means that if you connect to a particular subnet it 
> should try to give you the same IP address as you had last time. 
> Setting one-lease-per-client means it will forget the leases on other 
> subnets. This is why it's a settable parameter - the default is the 
> "safer" option.
> 
> The man pages for dhcpd.conf, dhcpd, dhcpd.leases, dhcp-eval are worth 
> looking at if you haven't
> 
> regards,
> Glenn
> 
> On 2022-08-21 20:03, Jorge Bastos wrote:
> 
>> Howdy,
>> 
>> I've started using DHCPD, and noticed that the lease file is not
>> "cleaned",
>> What I mean is, if some cliente request IP, and get .....11, and after
>> two days/another time request again after the lease time ends, and the
>> ......11 is already in someone else, it will get a new IP, so far so
>> good.
>> But the lease file stays with the information about the old lease,
>> aswell the new one.
>> 
>> No way to make it have only the new lease for that MACADDRR? for
>> example like it does the MSWindows DHCPD.
>> I've been searching docs and did not found any information about it,
>> but did found people exposing extra large dhcpd.leases file (+1GB),
>> aswell others saying that their dhcpd.leases file dont have more than
>> 50 or 100kb
>> 
>> Thanks in advanced,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20220821/6a05d2b8/attachment.htm>


More information about the dhcp-users mailing list