Send dhcp-users mailing list submissions to dhcp-users@lists.isc.org
To subscribe or unsubscribe via the World Wide Web, visit https://lists.isc.org/mailman/listinfo/dhcp-users or, via email, send a message with subject or body 'help' to dhcp-users-requ...@lists.isc.org You can reach the person managing the list at dhcp-users-ow...@lists.isc.org When replying, please edit your Subject line so it is more specific than "Re: Contents of dhcp-users digest..." Today's Topics: 1. Re: fixed-address leases in dhcpd.leases (Sten Carlsen) 2. Re: fixed-address leases in dhcpd.leases (Andrew Bell) 3. Re: fixed-address leases in dhcpd.leases (Niall O'Reilly) 4. Re: fixed-address leases in dhcpd.leases (Simon Hobson) ---------------------------------------------------------------------- Message: 1 Date: Mon, 30 Mar 2020 18:12:37 +0200 From: Sten Carlsen <st...@s-carlsen.dk> To: dhcp-users@lists.isc.org Subject: Re: fixed-address leases in dhcpd.leases Message-ID: <a5572a79-ef5e-069c-ff23-0ba0585cd...@s-carlsen.dk> Content-Type: text/plain; charset=utf-8 According to my memory there was a discussion about the precise way to set it with OMAPI. I did not have the time to dig that conversation out. As I recall (could be incorrect) the trick was to change a state or such to a specific numerical value. On 30-03-2020 17.48, Simon Hobson wrote: > Andrew Bell <and...@poscomp.ca> wrote: > >> Ah, now I see. Yes, I was thinking of fixed addresses, not reserved leases. >> I honestly didn't even know that was a thing until now. > It's a relatively new feature, and I don't believe it was well (or at all ?) > documented until recently. I only know about it from it being discussed on > this list. > > Simon > > _______________________________________________ > dhcp-users mailing list > dhcp-users@lists.isc.org > https://lists.isc.org/mailman/listinfo/dhcp-users -- Best regards Sten Carlsen No improvements come from shouting: "MALE BOVINE MANURE!!!" ------------------------------ Message: 2 Date: Mon, 30 Mar 2020 12:16:49 -0400 From: Andrew Bell <and...@poscomp.ca> To: Users of ISC DHCP <dhcp-users@lists.isc.org> Subject: Re: fixed-address leases in dhcpd.leases Message-ID: <CAMcY7=jqbknmbgpdbpxuufrbpid4wjnfkcs88r2n_hcy6sh...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" FWIW, YMMV, etc. I wrote a database system many years ago (which is still in use) to handle this. In a nutshell, it tracks a list of reserved addresses by subnet, and dumps out a config fragment containing the fixed address entries. Then it generates the subnet pools by iterating through the subnet ranges and skipping the fixed addresses. So I get something like this: host xxx { hardware ethernet xx.xx.xx.xx.xx.xx; fixed address 10.10.10.7; } ... subnet 10.10.10.0 netmask 255.255.255.0 { pool { range 10.10.10.1 10.10.10.6; range 10.10.10.8 10.10.10.254; } } Obviously that's only a small fragment. Whenever a change is made to the database the system regenerates the config files and reloads the servers. Then it import/parse the dhcpd.leases file, and put the last lease date in as a "last seen" attribute in the database. Andrew On Fri, Mar 27, 2020 at 3:21 PM Bob Harold <rharo...@umich.edu> wrote: > +1 > I want to know when it last renewed its lease - recently, years ago, or > never. > > -- > Bob Harold > > > > On Fri, Mar 27, 2020 at 2:46 PM Brennan,Andrew <andrew.bren...@drexel.edu> > wrote: > >> I have wanted this for years - that lease entry would let me know whether >> or not the machine is still configured to acquire it?s address via DHCP or >> if the enduser has taken it upon themselves to manually configure the >> host. If this ends up as a feature request, I?m +1 here. >> >> andrew. >> >> > On Mar 27, 2020, at 2:35 PM, Nate Collins <ncoll...@xes-inc.com> wrote: >> > >> > External. >> > >> > Hello, >> > >> > Is there a setting that controls whether or not fixed-address leases >> > in dhcpd.conf will get added to the dhcpd.leases file? We have a >> > use-case where we would like them to be, and they aren't on 4.3.3 (or >> > we unknowingly have a setting preventing them from getting added). I >> > took a look through the various manpages and didn't see anything >> relevant. >> > >> > Thanks, Nate >> > _______________________________________________ >> > dhcp-users mailing list >> > dhcp-users@lists.isc.org >> > >> https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.isc.org%2Fmailman%2Flistinfo%2Fdhcp-users&data=02%7C01%7Candrew.brennan%40drexel.edu%7C9eed272971b14d28164408d7d27da854%7C3664e6fa47bd45a696708c4f080f8ca6%7C0%7C1%7C637209309455287580&sdata=3gXa4%2Bv5UEPNsi258bRY2z20UNcCFUB7JNA9fkALQTU%3D&reserved=0 >> >> _______________________________________________ >> dhcp-users mailing list >> dhcp-users@lists.isc.org >> https://lists.isc.org/mailman/listinfo/dhcp-users >> > _______________________________________________ > dhcp-users mailing list > dhcp-users@lists.isc.org > https://lists.isc.org/mailman/listinfo/dhcp-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20200330/10cf48dc/attachment-0001.htm> ------------------------------ Message: 3 Date: Mon, 30 Mar 2020 17:56:53 +0100 From: "Niall O'Reilly" <niall.orei...@ucd.ie> To: "Users of ISC DHCP" <dhcp-users@lists.isc.org> Subject: Re: fixed-address leases in dhcpd.leases Message-ID: <f72297ae-927c-4f44-8482-6ad8ba856...@ucd.ie> Content-Type: text/plain; charset="UTF-8"; format=flowed; markup=markdown On 30 Mar 2020, at 17:00, Bob Harold wrote: > This sounds like a 'new' feature, I had not heard of it before, but > when I check git blame at > <https://gitlab.isc.org/isc-projects/dhcp/-/blame/master/server/dhcpd.conf.5> > > the lines referring?to 'reserved lease' are 9 and 13 years old.? Is > it really that old? That seems credible. A method I've used for keeping track of whether a fixed address is still active is to pull the DORA entries from the log and use them to update a last-seen database. It's tedious, but effective. Niall O'Reilly ------------------------------ Message: 4 Date: Mon, 30 Mar 2020 18:19:13 +0100 From: Simon Hobson <dh...@thehobsons.co.uk> To: Users of ISC DHCP <dhcp-users@lists.isc.org> Subject: Re: fixed-address leases in dhcpd.leases Message-ID: <9e245444-558d-44b2-a79b-41da0abfc...@thehobsons.co.uk> Content-Type: text/plain; charset=us-ascii Nate Collins <ncoll...@xes-inc.com> wrote: > FWIW, we're in the same boat - we don't want to enable reserved leases for > the entire dynamic pool for fear of running out of addresses, and would > only enable it for specific fixed-address leases I'm not sure you've followed this. You don't set the flag per pool, it's per individual address - you'd only set it for devices you want to have a fixed address. So instead of setting a host entry with fixed-address, you create a lease and set the reserved flag on it - either way it's one address "reserved" to that client. You'd only run out of addresses if you keep reserving addresses for new clients and not reclaiming ones no longer in use - exactly the same way you'd run out of addresses if you keep creating new host declarations (and reducing the dynamic pool to accommodate them). Simon ------------------------------ Subject: Digest Footer _______________________________________________ dhcp-users mailing list dhcp-users@lists.isc.org https://lists.isc.org/mailman/listinfo/dhcp-users ------------------------------ End of dhcp-users Digest, Vol 137, Issue 7 ******************************************