ISC dhcpd 4.4.1 dhcpd.leases file size and entries age

Niall O'Reilly niall.oreilly at ucd.ie
Wed Oct 24 21:40:09 UTC 2018


On 18 Oct 2018, at 19:08, Simon Hobson wrote:

> I believe that as soon as the address is re-used, it is no longer recorded as having belonged to the older lease.

I believe you’re mistaken, Simon, but I may be mistaken in this.

> If you think about it, that 4 year old device could come back, it's address might be free "now" - but then the newer device comes back and it can't have it's address back.
>
> In the general case, it makes sense to do it that way - when it comes to recycling addresses, the longer since it was last used, the less likely it is that the device will be coming back for it.
>
>
> For the benefit of the OP, the address allocation is done by :
> - If the device is already known* then it is given it's previous address

if currently available.

Either allocation to another device or change in pool definitions (range of valid addresses, eligibility criteria) might make the address unavailable.

> - If there are any addresses which have never been used (no entry in leases database) then one of those is allocated
> - A previously used but expired lease is recycled on a least recently used basis
> - An address marked as abandoned is reclaimed
> - Allocation fails !
>
> * Clients are known by the Client-ID if one was provided, or by the MAC address if no Client-ID provided. A single device could appear as several different clients if it uses different Client-IDs,

Niall O’Reilly
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 862 bytes
Desc: OpenPGP digital signature
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20181024/912c0dea/attachment.bin>


More information about the dhcp-users mailing list