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: Dhcpd with ipv6 support (Robert Socha) 2. Re: Latest lease entry not the one offered to the client (Niall O'Reilly) 3. Re: Latest lease entry not the one offered to the client (glenn.satch...@uniq.com.au) ---------------------------------------------------------------------- Message: 1 Date: Wed, 26 Aug 2020 09:16:39 +0200 From: Robert Socha <so...@socha.it> To: Users of ISC DHCP <dhcp-users@lists.isc.org> Subject: Re: Dhcpd with ipv6 support Message-ID: <b106accd-c149-b403-31d5-6a19fb9af...@socha.it> Content-Type: text/plain; charset=utf-8; format=flowed Hi, Try luck with dnsmasq. It's GPL2 and have RA support (--enable-ra). http://www.thekelleys.org.uk/dnsmasq/doc.html Regards W dniu 26.08.2020 o?06:33, Anjali Krishna pisze: > Hi, > > Since my embedded board has to function as an Wi-Fi hotspot, adding > radvd functionality is on my hands where exactly I am helpless. > > On Wed, 26 Aug 2020, 9:43 am , <glenn.satch...@uniq.com.au > <mailto:glenn.satch...@uniq.com.au>> wrote: > > Hi Anjali > > Maybe the network switch or router has a builtin router advertisement > feature? > > regards, > -glenn > > On 2020-08-26 13:54, Anjali Krishna wrote: > > Hi, > > > >? ? ?I tried the radvd daemon in yocto. > > But before I could continue further I came across the license info of > > Radvd. I am allowed only to use packages which has GPL v2 license > > unfortunately radvd has BSD license.(it is a constraint from our > > higher development team). > > > > Is there any other way I can move forward.?. I searched for any > > alternative for radvd but could not find it > > > > I am stuck here. Any further suggestion would be appreciated > > > > Regards, > > > > Anjali > > > > On Mon, 10 Aug 2020, 10:41 pm Bill Shirley, > > <b...@c3po.polymerindustries.biz > <mailto:b...@c3po.polymerindustries.biz>> wrote: > > > >> No matter who the vendor is, for IPv6 all devices require a Router > >> Advertisement Daemon. > >> > >> iDevices support DHCPv6.? Most Android devices do not.? For your > >> reading pleasure: > >> https://issuetracker.google.com/issues/36949085 > >> > >> Bill > >> On 8/9/2020 6:47 PM, Joshua Stark wrote: > >> Hi Krishna, > >> > >> iPhone's are the same. > >> > >> You need to use a Router Advertisement Daemon to send back the flags > >> needed for the client to go looking for a DHCPv6 server. > >> > >> There is lots of good resources out on the web, what you need to do > >> is look at DHCPv6 vs SLAAC (Stateless Address Auto-Configuration) > >> > >> For the RAD, I use radvd on my gateway, the configuration can be > >> found here: https://linux.die.net/man/5/radvd.conf > >> > >> I use the options: > >> # Set to on to turn on Stateful DHCPv6 > >> # If set to off, then will use Stateless IPv6 > >> AdvManagedFlag on; > >> AdvOtherConfigFlag on; > >> > >> To tell the clients to go looking for DHCPv6 > >> > >> Thanks > >> Josh > >> > >> On 10/8/20 07:59, Bill Shirley wrote: > >> > >> Most Android devices don't support getting an IPv6 address via DHCP. > >> > >> Bill > >> On 8/9/2020 4:11 AM, Anjali Krishna wrote: > >> > >> Hi all, > >> > >> I am testing ipv6 support between my embedded board and Android > >> phone. > >> > >> Two embedded boards are getting connected with ipv6 when running > >> dhcpd - 6 in server and dhclient - 6 in client side. > >> > >> As an extension of the testing,I configured my board as ipv6 hostpot > >> and tries connecting my android phone which supports ipv6.. The > >> process got stuck at obtaining ip address message in phone wifi > >> screen. > >> > >> I m doubting some configuration is missing in my wifi server dhcpd > >> configuration. > >> > >> Any help would be appreciated > >> > >> Regard, > >> Anjali > >> > >> _______________________________________________ > >> 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 > >> dhcp-users@lists.isc.org <mailto:dhcp-users@lists.isc.org> > >> https://lists.isc.org/mailman/listinfo/dhcp-users > >> > >> _______________________________________________ > >> 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 > >> dhcp-users@lists.isc.org <mailto:dhcp-users@lists.isc.org> > >> https://lists.isc.org/mailman/listinfo/dhcp-users > > > > _______________________________________________ > > 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 > > dhcp-users@lists.isc.org <mailto:dhcp-users@lists.isc.org> > > https://lists.isc.org/mailman/listinfo/dhcp-users > > > >? _______________________________________________ > > 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 > > dhcp-users@lists.isc.org <mailto:dhcp-users@lists.isc.org> > > https://lists.isc.org/mailman/listinfo/dhcp-users > > _______________________________________________ > > 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 > > dhcp-users@lists.isc.org <mailto:dhcp-users@lists.isc.org> > > https://lists.isc.org/mailman/listinfo/dhcp-users > _______________________________________________ > 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 > dhcp-users@lists.isc.org <mailto:dhcp-users@lists.isc.org> > https://lists.isc.org/mailman/listinfo/dhcp-users > > > _______________________________________________ > 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 > dhcp-users@lists.isc.org > https://lists.isc.org/mailman/listinfo/dhcp-users > ------------------------------ Message: 2 Date: Wed, 26 Aug 2020 10:58:41 +0100 From: "Niall O'Reilly" <niall.orei...@ucd.ie> To: "Users of ISC DHCP" <dhcp-users@lists.isc.org> Subject: Re: Latest lease entry not the one offered to the client Message-ID: <1e25305f-762a-48ca-b725-5b3014106...@ucd.ie> Content-Type: text/plain; charset="us-ascii"; Format="flowed" I haven't seen follow-up to this yet, so here is my tuppence-worth. On 18 Aug 2020, at 4:07, ksladic wrote: > Regarding lease file cleanup: > 1. Does it remove all expired leases? No, because removing them would not be consistence with the [service definition](https://tools.ietf.org/html/rfc2131#section-2.2): "The allocation mechanism (the collection of DHCP servers) guarantees not to reallocate that address within the requested time and __attempts to return the same network address each time the client requests an address__." (My emphasis) This means that an expired lease should be retained for use in case the client ever requests it again. > 2. Does it remove duplicate leases ... keeping only last valid one? Yes, but a lease is identified for this purpose by its IP address, not by any property of the client, such as MAC address or UUID, or so I recall. It follows that an expired lease which, because of depletion of the lease pool, is assigned to a different client, may lose its association with an earlier client. > 3. In general (before or after lease file cleanup) if I would like to > find > the latest valid leased IP for a client, is it best to go through > whole file > and pick valid lease with latest timestamp? Because as I understand I > can > not rely on the order of leases in the file. It's easy but tedious to write a script to do this. I may have one which was once in production in some backup somewhere, but you can probably code one faster than I could find it again. I hope this helps. Niall O'Reilly -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20200826/fcf7af94/attachment-0001.htm> ------------------------------ Message: 3 Date: Wed, 26 Aug 2020 20:22:01 +1000 From: glenn.satch...@uniq.com.au To: Users of ISC DHCP <dhcp-users@lists.isc.org> Subject: Re: Latest lease entry not the one offered to the client Message-ID: <2ca5d0b4a30bb792370a17f4c0cf8...@uniq.com.au> Content-Type: text/plain; charset=US-ASCII; format=flowed Just to add to Niall's useful reply, the lease file format is documented in the dhcpd.leases(5) man page. regards, -glenn On 2020-08-26 19:58, Niall O'Reilly wrote: > I haven't seen follow-up to this yet, so here is my tuppence-worth. > > On 18 Aug 2020, at 4:07, ksladic wrote: > >> Regarding lease file cleanup: >> 1. Does it remove all expired leases? > > No, because removing them would not be consistence with the > service definition [1]: > > "The > allocation mechanism (the collection of DHCP servers) guarantees not > to reallocate that address within the requested time and attempts to > return the same network address each time the client requests an > address." (My emphasis) > > This means that an expired lease should be retained for use in case > the > client ever requests it again. > >> * Does it remove duplicate leases ... keeping only last valid one? > > Yes, but a lease is identified for this purpose by its IP address, > not by any property of the client, such as MAC address or UUID, > or so I recall. > > It follows that an expired lease which, because of depletion of the > lease pool, is assigned to a different client, may lose its > association > with an earlier client. > >> * In general (before or after lease file cleanup) if I would like >> to find the latest valid leased IP for a client, is it best to go >> through whole file and pick valid lease with latest timestamp? >> Because as I understand I can not rely on the order of leases in the >> file. > > It's easy but tedious to write a script to do this. I may have one > which was > once in production in some backup somewhere, but you can probably code > one > faster than I could find it again. > > I hope this helps. > > Niall O'Reilly > > Links: > ------ > [1] https://tools.ietf.org/html/rfc2131#section-2.2 > _______________________________________________ > 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 > dhcp-users@lists.isc.org > https://lists.isc.org/mailman/listinfo/dhcp-users ------------------------------ Subject: Digest Footer _______________________________________________ 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 dhcp-users@lists.isc.org https://lists.isc.org/mailman/listinfo/dhcp-users ------------------------------ End of dhcp-users Digest, Vol 142, Issue 13 *******************************************