Re: DHCPD Leases, no way to clean the file?
Jorge Bastos <[email protected]> Sun, 21 Aug 2022 17:38:17 +0100
| Newsgroups | gmane.network.dhcp.isc.dhcp-server |
|---|---|
| Message-ID | <d51184ee8c7162c2a080c8f2889d2c13__40240.1027082064$1661099925$gmane$org@decimal.pt> |
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, [email protected] 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, -- ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information. dhcp-users mailing list [email protected] https://lists.isc.org/mailman/listinfo/dhcp-users