From dhcp1 at thehobsons.co.uk Sat Aug 1 19:16:26 2020 From: dhcp1 at thehobsons.co.uk (Simon Hobson) Date: Sat, 1 Aug 2020 20:16:26 +0100 Subject: dhcp concept and code part In-Reply-To: References: Message-ID: <2F82B6F8-487A-4B27-BF17-6504A680D64B@thehobsons.co.uk> Please don't top post, and please change the subject line if you reply to the digest - that's just good netiquette. Kunal Chauhan wrote: > Hi My point was I have linux board basically which is act as an acces point which will get some ips from server as it will boot up so want to implement DHCP functionality to it. ... > Yes I basically want DHCP over linux board So basically you want to run a DHCP client on a GNU/Linux system ? That's a solved problem - you have a choice of clients (one of them being the ISC client) you can use, already there, ready to install from your distro's repository. If you have a problem, then you'll need to explain what it is because I don't see any problem at the moment. Simon From krishnaanjali42 at gmail.com Tue Aug 4 03:22:51 2020 From: krishnaanjali42 at gmail.com (Anjali Krishna) Date: Tue, 4 Aug 2020 08:52:51 +0530 Subject: Ipv6 namservers and dhclient-script In-Reply-To: References: Message-ID: Hi, I am behind the dhclient-script for past the two days which updates the /etc/resolv.conf. Let me explain the scenario The dhcp server is sending the ipv6 dhcp nams server to the client. The dhcp server has the name server in the sever conf file as below subnet6 2001:470:108:4::2/64 { ...........?...................................... option dhcp6.name-servers 2001:470:108:4::10; .................................................. } The dhclient has "dhcp6.name-servers" string under request in dhclient.conf In dhclient-script under dhcpv6 section the name servers are being updated in /etc/resolv.conf. The default behaviour of the script is to write the new name-servers to the resolv.conf file overwriting the old contents. The overwriting of this file is not acceptable since it is having nameserver IP updated or used by LTE, ethernet in my testing environment. So I tried to tweak the script a bit by removing the mv command and appending the dhcp6 name servers using echo command directly to resolv.conf than writing to a temp file. Within the make_resolv_conf function as the last statement I displayed the content of resolv.conf. I executed the dhclient with - 6 and - v enabled. The client fetched the the new ip and print shows the nameserver is appended(cat /etc/resolv.conf) By default the /etc/resolv.conf content was nameserver 8.8.8.8 nameserver 8.8.4.4 The print (cat /etc/resolv.conf) showed the content as namserver 2001:470:108:4::10 nameserver 8.8.8.8 nameserver 8.8.4.4 Once the dhclient stops successfully I opened the resolv.conf and the new servers were missing. It is having default IPs. What could be the reason for this behaviour.? Who is refreshing the /etc/resolv.conf. I checked the dhclient-script but couldn't find any clue for this. To confirm no other process updates the file, I killed the LTE process but the result was same. Other than dhclient-script how the resolv.conf is getting overwritten all the time? What am I missing? Any help would be much appreciated On Mon, 27 Jul 2020, 5:34 pm Anjali Krishna, wrote: > > Hi > > I am using an embedded board with hostname "test_dut"[same under > /etc/hostname]. I am testing ipv6 ans ipv4 using dhcpd on server side with > - 6, - 4 options and client side I am using dhclient with - 6 and - 4 > option for ipv6 and ipv4 respectively. > Both the cases Ip assignment is happening without any trouble. But in > order to extend our application feature we are providing the information of > the connected devices to the user such as mac id, ip, hostname/client name > etc. In ipv4 these information are provided under dhcpd.leases file. In > case of ipv6 I am not able to find the hostname (test_dut) under the > dhcpd6.leases files > > I tried with adding various options under dhclient.conf such as send > host-name "test_dut" and edited the dhclient-script under /sbin and called > set_hostname call under bound-renew-reboot section of ipv6. Still the > server lease file is not updating the hostname for ipv6 . But hostname is > updating for ipv4 connection. > > How can I resolve this issue? > > Regards, > Anjali > -------------- next part -------------- An HTML attachment was scrubbed... URL: From krishnaanjali42 at gmail.com Tue Aug 4 03:25:59 2020 From: krishnaanjali42 at gmail.com (Anjali Krishna) Date: Tue, 4 Aug 2020 08:55:59 +0530 Subject: Ipv6 dhclient-script and namservers Message-ID: Hi, I am behind the dhclient-script for past the two days which updates the /etc/resolv.conf. Let me explain the scenario The dhcp server is sending the ipv6 dhcp nams server to the client. The dhcp server has the name server in the sever conf file as below subnet6 2001:470:108:4::2/64 { ...........?...................................... option dhcp6.name-servers 2001:470:108:4::10; .................................................. } The dhclient has "dhcp6.name-servers" string under request in dhclient.conf In dhclient-script under dhcpv6 section the name servers are being updated in /etc/resolv.conf. The default behaviour of the script is to write the new name-servers to the resolv.conf file overwriting the old contents. The overwriting of this file is not acceptable since it is having nameserver IP updated or used by LTE, ethernet in my testing environment. So I tried to tweak the script a bit by removing the mv command and appending the dhcp6 name servers using echo command directly to resolv.conf than writing to a temp file. Within the make_resolv_conf function as the last statement I displayed the content of resolv.conf. I executed the dhclient with - 6 and - v enabled. The client fetched the the new ip and print shows the nameserver is appended(cat /etc/resolv.conf) By default the /etc/resolv.conf content was nameserver 8.8.8.8 nameserver 8.8.4.4 The print (cat /etc/resolv.conf) showed the content as namserver 2001:470:108:4::10 nameserver 8.8.8.8 nameserver 8.8.4.4 Once the dhclient stops successfully I opened the resolv.conf and the new servers were missing. It is having default IPs. What could be the reason for this behaviour.? Who is refreshing the /etc/resolv.conf. I checked the dhclient-script but couldn't find any clue for this. To confirm no other process updates the file, I killed the LTE process but the result was same. Other than dhclient-script how the resolv.conf is getting overwritten all the time? What am I missing? Any help would be much appreciated Regards, Anjali -------------- next part -------------- An HTML attachment was scrubbed... URL: From socha at socha.it Fri Aug 7 21:02:24 2020 From: socha at socha.it (Robert Socha) Date: Fri, 7 Aug 2020 23:02:24 +0200 Subject: Same MAC - diffrent IP depending on the contex (class)? Message-ID: <8429bc14-e5e3-4304-caa6-9ec02b841904@socha.it> Hi, I wonder if it's possible to achieve this in ISC DHCP: - I have static hosts only (only known clients - no dynamic assignments) - I need to assign different addresses to host depending on if it's boot client (PXE or UEFI), or if it's OS (linux,windows,etc) DHCP client discover ( I need that because we use RFC3021 or /32 route-able IP assignments to customer services and this addresses are not supported by UEFI firmware). So something like this (in pseudo config) or as idea: # arch-type -> option 93 if(if exists arch-type) { # Private/netboot subnet host N000c290e741d { hardware ethernet 00:0c:29:0e:74:1d; fixed-address 100.120.120.2; option routers 100.120.120.1; option subnet-mask 255.255.255.252; } } else { # This for "public" network - discovers from "not boot agent" host O000c290e741d { hardware ethernet 00:0c:29:0e:74:1d; fixed-address 10.255.255.11; option routers 10.255.255.10; if option vendor-class-identifier="MSFT 5.0" { option subnet-mask 255.255.255.255; } else { option subnet-mask 255.255.255.254; } } } I looking for solution with static assignments (not dynamic pool's) for netboot network (we some logic behind this assigned IP's) Best regards -- Robert Socha From krishnaanjali42 at gmail.com Sun Aug 9 08:11:43 2020 From: krishnaanjali42 at gmail.com (Anjali Krishna) Date: Sun, 9 Aug 2020 13:41:43 +0530 Subject: Dhcpd with ipv6 support Message-ID: 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From bill at c3po.polymerindustries.biz Sun Aug 9 21:59:24 2020 From: bill at c3po.polymerindustries.biz (Bill Shirley) Date: Sun, 9 Aug 2020 17:59:24 -0400 Subject: Dhcpd with ipv6 support In-Reply-To: References: Message-ID: <3ff17c23-4b66-ce62-413f-e10f63cc6165@c3po.polymerindustries.biz> 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 at lists.isc.org > https://lists.isc.org/mailman/listinfo/dhcp-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From starkjs at gmail.com Sun Aug 9 22:47:45 2020 From: starkjs at gmail.com (Joshua Stark) Date: Mon, 10 Aug 2020 08:47:45 +1000 Subject: Dhcpd with ipv6 support In-Reply-To: <3ff17c23-4b66-ce62-413f-e10f63cc6165@c3po.polymerindustries.biz> References: <3ff17c23-4b66-ce62-413f-e10f63cc6165@c3po.polymerindustries.biz> Message-ID: <4ec4f443-6e3d-639c-8250-6a2d1b404b56@gmail.com> 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 athttps://www.isc.org/contact/ for more information. >> >> dhcp-users mailing list >> dhcp-users at 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 at lists.isc.org > https://lists.isc.org/mailman/listinfo/dhcp-users -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 4044 bytes Desc: S/MIME Cryptographic Signature URL: From bill at c3po.polymerindustries.biz Mon Aug 10 17:10:47 2020 From: bill at c3po.polymerindustries.biz (Bill Shirley) Date: Mon, 10 Aug 2020 13:10:47 -0400 Subject: Dhcpd with ipv6 support In-Reply-To: <4ec4f443-6e3d-639c-8250-6a2d1b404b56@gmail.com> References: <3ff17c23-4b66-ce62-413f-e10f63cc6165@c3po.polymerindustries.biz> <4ec4f443-6e3d-639c-8250-6a2d1b404b56@gmail.com> Message-ID: <3f8b945e-5d4d-ed58-c043-f3b9067a2629@c3po.polymerindustries.biz> 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 athttps://www.isc.org/contact/ for more information. >>> >>> dhcp-users mailing list >>> dhcp-users at lists.isc.org >>> https://lists.isc.org/mailman/listinfo/dhcp-users >> >> _______________________________________________ >> ISC funds the development of this software with paid support subscriptions. Contact us athttps://www.isc.org/contact/ for more information. >> >> dhcp-users mailing list >> dhcp-users at 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 at lists.isc.org > https://lists.isc.org/mailman/listinfo/dhcp-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From socha at socha.it Thu Aug 13 12:54:12 2020 From: socha at socha.it (Robert Socha) Date: Thu, 13 Aug 2020 14:54:12 +0200 Subject: Same MAC - diffrent IP depending on the contex (class)? In-Reply-To: <8429bc14-e5e3-4304-caa6-9ec02b841904@socha.it> References: <8429bc14-e5e3-4304-caa6-9ec02b841904@socha.it> Message-ID: Hi, I was unable to find solution for my problem, so I implemented it in source code. I added "match if" directive to host definition which allows me to do something like this: option client-architecture code 93 = unsigned integer 16; class "is-netboot" { match if exists client-architecture and (not (option user-class="iPXE")); } host O000C29EF4070 { hardware ethernet 00:0C:29:EF:40:70; fixed-address 20.20.20.20; option routers 10.10.10.10; option subnet-mask 255.255.255.255; } host N000C29EF4070 { match if "is-netboot"; hardware ethernet 00:0C:29:EF:40:70; fixed-address 100.64.4.2; option routers 100.64.4.1; option subnet-mask 255.255.255.252; } I also added support for globbing for include directive: include "/etc/dhcp/host/*.conf" include "/etc/dhcp/host/*/*.conf" to recursively include files from folder and subfolders. Best regards W dniu 07.08.2020 o?23:02, Robert Socha pisze: > Hi, > > I wonder if it's possible to achieve this in ISC DHCP: > > - I have static hosts only (only known clients - no dynamic assignments) > - I need to assign different addresses to host depending on if it's boot > client (PXE or UEFI), or if it's OS (linux,windows,etc) DHCP client > discover > ?? ( I need that because we use RFC3021 or /32 route-able IP > assignments to customer services and this addresses are not supported by > UEFI firmware). > > So something like this (in pseudo config) or as idea: > > > # arch-type? -> option 93 > if(if exists arch-type) { > ????# Private/netboot subnet > ????host N000c290e741d { > ??????????? hardware ethernet 00:0c:29:0e:74:1d; > ??????????? fixed-address 100.120.120.2; > ??????????? option routers 100.120.120.1; > ??????????? option subnet-mask 255.255.255.252; > ????} > } else { > ????# This for "public" network - discovers from "not boot agent" > ????host O000c290e741d? { > ??????????? hardware ethernet 00:0c:29:0e:74:1d; > ??????????? fixed-address 10.255.255.11; > ??????????? option routers 10.255.255.10; > ??????????? if option vendor-class-identifier="MSFT 5.0" { > ??????????????????? option subnet-mask 255.255.255.255; > ??????????? } else { > ??????????????????? option subnet-mask 255.255.255.254; > ??????????? } > ????} > } > > I looking for solution with static assignments (not dynamic pool's) for > netboot network (we some logic behind this assigned IP's) > > Best regards -- Robert Socha From gosturnca at gmail.com Thu Aug 13 22:39:29 2020 From: gosturnca at gmail.com (Klemen Sladic) Date: Fri, 14 Aug 2020 10:39:29 +1200 Subject: Latest lease entry not the one offered to the client Message-ID: Hi. I did not manage to find any related discussion, so I'd like to ask this: Using ISC DHCP 4.3.5 server and client. DHCP server has these two entries in its dhcpd.leases (first lease at line 106, second at line 205): lease 1.1.1.17 { starts 4 2020/08/13 00:40:24; ends 0 2020/08/23 00:40:24; tstp 0 2020/08/23 00:40:24; cltt 4 2020/08/13 00:40:24; binding state active; next binding state free; rewind binding state free; hardware ethernet 00:0d:ca:00:0f:dd; set lease_mac = "0:d:ca:0:f:dd"; } lease 1.1.1.28 { starts 4 2020/08/13 03:03:13; ends 0 2020/08/23 03:03:13; tstp 0 2020/08/23 03:03:13; cltt 4 2020/08/13 03:03:13; binding state active; next binding state free; rewind binding state free; hardware ethernet 00:0d:ca:00:0f:dd; set lease_mac = "0:d:ca:0:f:dd"; } This made me think that 1.1.1.28 is the newest lease and should be the valid one for the client. But if I do renew on the client it is being offered 1.1.1.17 (timestamps are in different zone, port is custom): Aug 13 21:10:39 (none) daemon.info dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 17787 Aug 13 21:10:39 (none) daemon.info dhclient: DHCPACK from 1.1.1.1 Aug 13 21:10:41 (none) daemon.info dhclient: bound to 1.1.1.17 -- renewal in 392208 seconds. Since some of my applications rely on knowing valid DHCP client IPs, this is a problem. I'd like to ask if that is a known issue or there may be something related to my network or DHCP config? Am I misinterpreting the dhcpd.leases file? I thought DHCP server appends most recent leases at the end? Thank you very much any help is much appreciated. RegK -------------- next part -------------- An HTML attachment was scrubbed... URL: From glenn.satchell at uniq.com.au Fri Aug 14 02:09:03 2020 From: glenn.satchell at uniq.com.au (glenn.satchell at uniq.com.au) Date: Fri, 14 Aug 2020 12:09:03 +1000 Subject: Same MAC - diffrent IP depending on the contex (class)? In-Reply-To: References: <8429bc14-e5e3-4304-caa6-9ec02b841904@socha.it> Message-ID: <562d7634b2b7fd8380f92c6ce43826bf@uniq.com.au> Hi Robert, That's one way to do it. The other way would be to create a class and two pools for each host. In the pools have a single IP address in the range. The class would select based on PXE and ethernet. This would be ok for a few clients, but if you have hundreds it might not scale well. regards, -glenn On 2020-08-13 22:54, Robert Socha wrote: > Hi, > > I was unable to find solution for my problem, so I implemented it in > source code. > I added "match if" directive to host definition which allows me to do > something like this: > > option client-architecture code 93 = unsigned integer 16; > > class "is-netboot" { > match if exists client-architecture and (not (option > user-class="iPXE")); > } > > > host O000C29EF4070 { > hardware ethernet 00:0C:29:EF:40:70; > fixed-address 20.20.20.20; > option routers 10.10.10.10; > option subnet-mask 255.255.255.255; > } > > host N000C29EF4070 { > match if "is-netboot"; > hardware ethernet 00:0C:29:EF:40:70; > fixed-address 100.64.4.2; > option routers 100.64.4.1; > option subnet-mask 255.255.255.252; > } > > I also added support for globbing for include directive: > > include "/etc/dhcp/host/*.conf" > include "/etc/dhcp/host/*/*.conf" > > to recursively include files from folder and subfolders. > > Best regards > > > W dniu 07.08.2020 o?23:02, Robert Socha pisze: >> Hi, >> >> I wonder if it's possible to achieve this in ISC DHCP: >> >> - I have static hosts only (only known clients - no dynamic >> assignments) >> - I need to assign different addresses to host depending on if it's >> boot client (PXE or UEFI), or if it's OS (linux,windows,etc) DHCP >> client discover >> ?? ( I need that because we use RFC3021 or /32 route-able IP >> assignments to customer services and this addresses are not supported >> by UEFI firmware). >> >> So something like this (in pseudo config) or as idea: >> >> >> # arch-type? -> option 93 >> if(if exists arch-type) { >> ????# Private/netboot subnet >> ????host N000c290e741d { >> ??????????? hardware ethernet 00:0c:29:0e:74:1d; >> ??????????? fixed-address 100.120.120.2; >> ??????????? option routers 100.120.120.1; >> ??????????? option subnet-mask 255.255.255.252; >> ????} >> } else { >> ????# This for "public" network - discovers from "not boot agent" >> ????host O000c290e741d? { >> ??????????? hardware ethernet 00:0c:29:0e:74:1d; >> ??????????? fixed-address 10.255.255.11; >> ??????????? option routers 10.255.255.10; >> ??????????? if option vendor-class-identifier="MSFT 5.0" { >> ??????????????????? option subnet-mask 255.255.255.255; >> ??????????? } else { >> ??????????????????? option subnet-mask 255.255.255.254; >> ??????????? } >> ????} >> } >> >> I looking for solution with static assignments (not dynamic pool's) >> for netboot network (we some logic behind this assigned IP's) >> >> Best regards From socha at socha.it Fri Aug 14 07:59:51 2020 From: socha at socha.it (Robert Socha) Date: Fri, 14 Aug 2020 09:59:51 +0200 Subject: Same MAC - diffrent IP depending on the contex (class)? In-Reply-To: <562d7634b2b7fd8380f92c6ce43826bf@uniq.com.au> References: <8429bc14-e5e3-4304-caa6-9ec02b841904@socha.it> <562d7634b2b7fd8380f92c6ce43826bf@uniq.com.au> Message-ID: <6601d01c-a5bb-aab0-3ae4-25d6f1ffe40b@socha.it> Hi, Thank you :) But: >>> I looking for solution with static assignments (not dynamic pool's) >>> for netboot network (we some logic behind this assigned IP's) With my patch DHCP is stateless (so I can use HA via load balancer). Best regards W dniu 14.08.2020 o?04:09, glenn.satchell at uniq.com.au pisze: > Hi Robert, > > That's one way to do it. > > The other way would be to create a class and two pools for each host. In > the pools have a single IP address in the range. The class would select > based on PXE and ethernet. This would be ok for a few clients, but if > you have hundreds it might not scale well. > > regards, > -glenn > > On 2020-08-13 22:54, Robert Socha wrote: >> Hi, >> >> I was unable to find solution for my problem, so I implemented it in >> source code. >> I added "match if" directive to host definition which allows me to do >> something like this: >> >> option client-architecture code 93 = unsigned integer 16; >> >> class "is-netboot" { >> ??????? match if exists client-architecture and (not (option >> user-class="iPXE")); >> } >> >> >> host O000C29EF4070 { >> ?? hardware ethernet 00:0C:29:EF:40:70; >> ?? fixed-address 20.20.20.20; >> ?? option routers 10.10.10.10; >> ?? option subnet-mask 255.255.255.255; >> } >> >> host N000C29EF4070 { >> ?? match if "is-netboot"; >> ?? hardware ethernet 00:0C:29:EF:40:70; >> ?? fixed-address 100.64.4.2; >> ?? option routers 100.64.4.1; >> ?? option subnet-mask 255.255.255.252; >> } >> >> I also added support for globbing for include directive: >> >> include "/etc/dhcp/host/*.conf" >> include "/etc/dhcp/host/*/*.conf" >> >> to recursively include files from folder and subfolders. >> >> Best regards >> >> >> W dniu 07.08.2020 o?23:02, Robert Socha pisze: >>> Hi, >>> >>> I wonder if it's possible to achieve this in ISC DHCP: >>> >>> - I have static hosts only (only known clients - no dynamic assignments) >>> - I need to assign different addresses to host depending on if it's >>> boot client (PXE or UEFI), or if it's OS (linux,windows,etc) DHCP >>> client discover >>> ??? ( I need that because we use RFC3021 or /32 route-able IP >>> assignments to customer services and this addresses are not supported >>> by UEFI firmware). >>> >>> So something like this (in pseudo config) or as idea: >>> >>> >>> # arch-type? -> option 93 >>> if(if exists arch-type) { >>> ?????# Private/netboot subnet >>> ?????host N000c290e741d { >>> ???????????? hardware ethernet 00:0c:29:0e:74:1d; >>> ???????????? fixed-address 100.120.120.2; >>> ???????????? option routers 100.120.120.1; >>> ???????????? option subnet-mask 255.255.255.252; >>> ?????} >>> } else { >>> ?????# This for "public" network - discovers from "not boot agent" >>> ?????host O000c290e741d? { >>> ???????????? hardware ethernet 00:0c:29:0e:74:1d; >>> ???????????? fixed-address 10.255.255.11; >>> ???????????? option routers 10.255.255.10; >>> ???????????? if option vendor-class-identifier="MSFT 5.0" { >>> ???????????????????? option subnet-mask 255.255.255.255; >>> ???????????? } else { >>> ???????????????????? option subnet-mask 255.255.255.254; >>> ???????????? } >>> ?????} >>> } >>> >>> I looking for solution with static assignments (not dynamic pool's) >>> for netboot network (we some logic behind this assigned IP's) >>> >>> Best regards > _______________________________________________ > 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 at lists.isc.org > https://lists.isc.org/mailman/listinfo/dhcp-users -- Robert Socha From dhcp1 at thehobsons.co.uk Fri Aug 14 16:20:03 2020 From: dhcp1 at thehobsons.co.uk (Simon Hobson) Date: Fri, 14 Aug 2020 17:20:03 +0100 Subject: Latest lease entry not the one offered to the client In-Reply-To: References: Message-ID: <43971F52-6C2B-4787-88D7-BCB9229FD3BC@thehobsons.co.uk> Klemen Sladic wrote: > Using ISC DHCP 4.3.5 server and client. > DHCP server has these two entries in its dhcpd.leases (first lease at line 106, second at line 205): > > lease 1.1.1.17 { > starts 4 2020/08/13 00:40:24; > ends 0 2020/08/23 00:40:24; > tstp 0 2020/08/23 00:40:24; > cltt 4 2020/08/13 00:40:24; > binding state active; > next binding state free; > rewind binding state free; > hardware ethernet 00:0d:ca:00:0f:dd; > set lease_mac = "0:d:ca:0:f:dd"; > } > lease 1.1.1.28 { > starts 4 2020/08/13 03:03:13; > ends 0 2020/08/23 03:03:13; > tstp 0 2020/08/23 03:03:13; > cltt 4 2020/08/13 03:03:13; > binding state active; > next binding state free; > rewind binding state free; > hardware ethernet 00:0d:ca:00:0f:dd; > set lease_mac = "0:d:ca:0:f:dd"; > } OK, the first observation is that neither has a client-ID - first thing anyone looks for is difference in Client-ID as that makes them different clients as far as the server is concerned. > This made me think that 1.1.1.28 is the newest lease and should be the valid one for the client. No, BOTH are valid for the client. Position in the file only matters where there are duplicate entries for an address - e.g. an address has been renewed and a new lease record written out. > But if I do renew on the client it is being offered 1.1.1.17 (timestamps are in different zone, port is custom): > > Aug 13 21:10:39 (none) daemon.info dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 17787 > Aug 13 21:10:39 (none) daemon.info dhclient: DHCPACK from 1.1.1.1 > Aug 13 21:10:41 (none) daemon.info dhclient: bound to 1.1.1.17 -- renewal in 392208 seconds. So, what address did the client request ? The client can request any address, and normally if it's available then the server will lease it - it's one way a DoD attack can be done. If the client requested 1.1.1.17 then what you are seeing is normal operation. > Since some of my applications rely on knowing valid DHCP client IPs, this is a problem. In the general case, you need to allow for a client having more than one address leased. > Am I misinterpreting the dhcpd.leases file? I thought DHCP server appends most recent leases at the end? As above, you are misinterpreting the leases file. When a lease file cleanup is done, the leases will be written out in an undocumented order - which appears to be by IP address. When **UPDATES** to leases are done, then the new version is appended to the file - so if you see two entries for the same lease then the later one in the file is the current one. Simon From glenn.satchell at uniq.com.au Sat Aug 15 00:10:40 2020 From: glenn.satchell at uniq.com.au (glenn.satchell at uniq.com.au) Date: Sat, 15 Aug 2020 10:10:40 +1000 Subject: Same MAC - diffrent IP depending on the contex (class)? In-Reply-To: <6601d01c-a5bb-aab0-3ae4-25d6f1ffe40b@socha.it> References: <8429bc14-e5e3-4304-caa6-9ec02b841904@socha.it> <562d7634b2b7fd8380f92c6ce43826bf@uniq.com.au> <6601d01c-a5bb-aab0-3ae4-25d6f1ffe40b@socha.it> Message-ID: <3088269a54dfbe791d1686e29be15b04@uniq.com.au> Hi Robert, Fair enough. Although as there's only one possible IP per client you could have the same config on more than one dhcp server and each would only hand out the same address to each client. So you wouldn't need failover, for example. Your solution, while elegant and solving your problem, leaves you with some technical debt because you need to port the source code modification every time you want to update the dhcpd version. I guess that's relatively minor as it's not necessarily something that would be done often. regards, -glenn On 2020-08-14 17:59, Robert Socha wrote: > Hi, > > Thank you :) > > But: > >>>> I looking for solution with static assignments (not dynamic pool's) >>>> for netboot network (we some logic behind this assigned IP's) > > With my patch DHCP is stateless (so I can use HA via load balancer). > > Best regards > > > W dniu 14.08.2020 o?04:09, glenn.satchell at uniq.com.au pisze: >> Hi Robert, >> >> That's one way to do it. >> >> The other way would be to create a class and two pools for each host. >> In the pools have a single IP address in the range. The class would >> select based on PXE and ethernet. This would be ok for a few clients, >> but if you have hundreds it might not scale well. >> >> regards, >> -glenn >> >> On 2020-08-13 22:54, Robert Socha wrote: >>> Hi, >>> >>> I was unable to find solution for my problem, so I implemented it in >>> source code. >>> I added "match if" directive to host definition which allows me to do >>> something like this: >>> >>> option client-architecture code 93 = unsigned integer 16; >>> >>> class "is-netboot" { >>> ??????? match if exists client-architecture and (not (option >>> user-class="iPXE")); >>> } >>> >>> >>> host O000C29EF4070 { >>> ?? hardware ethernet 00:0C:29:EF:40:70; >>> ?? fixed-address 20.20.20.20; >>> ?? option routers 10.10.10.10; >>> ?? option subnet-mask 255.255.255.255; >>> } >>> >>> host N000C29EF4070 { >>> ?? match if "is-netboot"; >>> ?? hardware ethernet 00:0C:29:EF:40:70; >>> ?? fixed-address 100.64.4.2; >>> ?? option routers 100.64.4.1; >>> ?? option subnet-mask 255.255.255.252; >>> } >>> >>> I also added support for globbing for include directive: >>> >>> include "/etc/dhcp/host/*.conf" >>> include "/etc/dhcp/host/*/*.conf" >>> >>> to recursively include files from folder and subfolders. >>> >>> Best regards >>> >>> >>> W dniu 07.08.2020 o?23:02, Robert Socha pisze: >>>> Hi, >>>> >>>> I wonder if it's possible to achieve this in ISC DHCP: >>>> >>>> - I have static hosts only (only known clients - no dynamic >>>> assignments) >>>> - I need to assign different addresses to host depending on if it's >>>> boot client (PXE or UEFI), or if it's OS (linux,windows,etc) DHCP >>>> client discover >>>> ??? ( I need that because we use RFC3021 or /32 route-able IP >>>> assignments to customer services and this addresses are not >>>> supported by UEFI firmware). >>>> >>>> So something like this (in pseudo config) or as idea: >>>> >>>> >>>> # arch-type? -> option 93 >>>> if(if exists arch-type) { >>>> ?????# Private/netboot subnet >>>> ?????host N000c290e741d { >>>> ???????????? hardware ethernet 00:0c:29:0e:74:1d; >>>> ???????????? fixed-address 100.120.120.2; >>>> ???????????? option routers 100.120.120.1; >>>> ???????????? option subnet-mask 255.255.255.252; >>>> ?????} >>>> } else { >>>> ?????# This for "public" network - discovers from "not boot agent" >>>> ?????host O000c290e741d? { >>>> ???????????? hardware ethernet 00:0c:29:0e:74:1d; >>>> ???????????? fixed-address 10.255.255.11; >>>> ???????????? option routers 10.255.255.10; >>>> ???????????? if option vendor-class-identifier="MSFT 5.0" { >>>> ???????????????????? option subnet-mask 255.255.255.255; >>>> ???????????? } else { >>>> ???????????????????? option subnet-mask 255.255.255.254; >>>> ???????????? } >>>> ?????} >>>> } >>>> >>>> I looking for solution with static assignments (not dynamic pool's) >>>> for netboot network (we some logic behind this assigned IP's) >>>> >>>> Best regards >> _______________________________________________ >> 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 at lists.isc.org >> https://lists.isc.org/mailman/listinfo/dhcp-users From gosturnca at gmail.com Tue Aug 18 03:07:04 2020 From: gosturnca at gmail.com (ksladic) Date: Mon, 17 Aug 2020 22:07:04 -0500 (CDT) Subject: Latest lease entry not the one offered to the client In-Reply-To: <43971F52-6C2B-4787-88D7-BCB9229FD3BC@thehobsons.co.uk> References: <43971F52-6C2B-4787-88D7-BCB9229FD3BC@thehobsons.co.uk> Message-ID: <1597720024513-0.post@n4.nabble.com> Hi Simon. Thank you very much for detailed explanation. I actually thought that MAC address is unique enough to identify a client, but it obviously isn't. Since I use only one DHCP client on each interface (MAC), I think that introducing DUID (dhclient -i) will solve my problem. I should not get to a state of DHCP server thinking there are multiple clients on a single MAC. And I think client will keep its generated DUID as long as dhclient.leases is not deleted. Regarding lease file cleanup: 1. Does it remove all expired leases? 2. Does it remove duplicate leases ... keeping only last valid one? 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. Even if you don't have time to answer my additional questions, I really appreciate your first reply. It helped me a lot. Thanks, Klemen -- Sent from: http://isc-dhcp-users.2343191.n4.nabble.com/ From stella at rider.edu Thu Aug 20 16:30:07 2020 From: stella at rider.edu (Ricardo Stella) Date: Thu, 20 Aug 2020 12:30:07 -0400 Subject: Different hardware options based on subnet Message-ID: Not a newby but definitely beginner in terms of experience here. In our dhcpd.conf file we have a class set up to identify IP phones and we assign the server they need to connect to: class "i2004-clients" { match if substring (option vendor-class-identifier, 0, 14) = "Nortel-i2004-A"; option nortel-specific-info = "Nortel-i2004-A,10.1.0.10:4100,1,15;10.1.0.10:4100,1,15."; option vendor-class-identifier "Nortel-i2004-A"; } In a subnet, I have the following, which works perfectly fine. subnet 10.10.0.0 netmask 255.255.0.0 { authoritative; option routers 10.10.0.1; one-lease-per-client true; pool { allow members of "i2004-clients"; range 10.10.250.50 10.10.250.249; max-lease-time 43200; default-lease-time 43200; } There's other pools as well, and we have several other vlans like the above and all IP phones get the default configuration. But I need to assign some phones to a different controller - that is I need to assign those that land in this specific vlan with the following: option nortel-specific-info = "Nortel-i2004-A,10.2.0.10:4100,1,15;10.2.0.10:4100,1,15."; I tried creating a different class, but because hardware is the same, they fall under the first defined one. I tried adding the above inside the pool section but they still get the globally defined one. Am I missing something? Or would I need to assign the class or the above lines to every vlan and take it out of the global config? Thanks in advance - Ricardo. -- ?(((=((===???(((================================================ -------------- next part -------------- An HTML attachment was scrubbed... URL: From bill at c3po.polymerindustries.biz Thu Aug 20 20:17:04 2020 From: bill at c3po.polymerindustries.biz (Bill Shirley) Date: Thu, 20 Aug 2020 16:17:04 -0400 Subject: Different hardware options based on subnet In-Reply-To: References: Message-ID: <887f64c6-ff68-3f90-fa26-65bc9b4c07f9@c3po.polymerindustries.biz> How do you decide which phones you want on:? ? ? ? ? ? option nortel-specific-info = ? ? ? ? ? "Nortel-i2004-A,10.2.0.10:4100 ,1,15;10.2.0.10:4100 ,1,15."; Are they on a different subnet? Bill On 8/20/2020 12:30 PM, Ricardo Stella wrote: > > Not a newby but definitely?beginner in terms of experience here. > > In our dhcpd.conf file we have a class set up to identify IP phones and we assign the server they need to connect to: > > class "i2004-clients" { > ? ? ? ? match if substring (option vendor-class-identifier, 0, 14) = > ? ? ? ? "Nortel-i2004-A"; > ? ? ? ? option nortel-specific-info = > ? ? ? ? "Nortel-i2004-A,10.1.0.10:4100 ,1,15;10.1.0.10:4100 ,1,15."; > ? ? ? ? option vendor-class-identifier "Nortel-i2004-A"; > } > > In a subnet, I have the following, which works perfectly?fine. > > ? ? ? ? subnet 10.10.0.0 netmask 255.255.0.0 { > ? ? ? ? ? authoritative; > ? ? ? ? ? option routers 10.10.0.1; > ? ? ? ? ? one-lease-per-client true; > ? ? ? ? ? pool { > ? ? ? ? ? ? allow members of "i2004-clients"; > ? ? ? ? ? ? range 10.10.250.50 10.10.250.249; > ? ? ? ? ? ? max-lease-time 43200; > ? ? ? ? ? ? default-lease-time 43200; > ? ? ? ? ? } > > There's other pools as well, and we have several other vlans like the above and all IP phones get the default configuration. > > But I need to assign some phones to a different controller - that is I need to assign those that land in this specific vlan > with the following: > ? ? ? ? ? option nortel-specific-info = > ? ? ? ? ? "Nortel-i2004-A,10.2.0.10:4100 ,1,15;10.2.0.10:4100 ,1,15."; > > I tried creating a different class, but because hardware is the same, they fall under the first defined one. I tried adding > the above inside the pool section but they still get the globally defined one. Am I missing something? Or would I need to > assign the class or the above lines to every vlan and take it out of the global config? > > Thanks in advance - Ricardo. > > > -- > ?(((=((===???(((================================================ > > _______________________________________________ > 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 at lists.isc.org > https://lists.isc.org/mailman/listinfo/dhcp-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From stella at rider.edu Thu Aug 20 20:23:51 2020 From: stella at rider.edu (Ricardo Stella) Date: Thu, 20 Aug 2020 16:23:51 -0400 Subject: Different hardware options based on subnet In-Reply-To: <887f64c6-ff68-3f90-fa26-65bc9b4c07f9@c3po.polymerindustries.biz> References: <887f64c6-ff68-3f90-fa26-65bc9b4c07f9@c3po.polymerindustries.biz> Message-ID: Yes. In our case, one particular subnet needs a different config. All others the current one. TIA On Thu, Aug 20, 2020 at 4:17 PM Bill Shirley < bill at c3po.polymerindustries.biz> wrote: > How do you decide which phones you want on:? > option nortel-specific-info = > "Nortel-i2004-A,10.2.0.10:4100,1,15;10.2.0.10:4100,1,15."; > > Are they on a different subnet? > > Bill > > On 8/20/2020 12:30 PM, Ricardo Stella wrote: > > > Not a newby but definitely beginner in terms of experience here. > > In our dhcpd.conf file we have a class set up to identify IP phones and we > assign the server they need to connect to: > > class "i2004-clients" { > match if substring (option vendor-class-identifier, 0, 14) = > "Nortel-i2004-A"; > option nortel-specific-info = > "Nortel-i2004-A,10.1.0.10:4100,1,15;10.1.0.10:4100,1,15."; > option vendor-class-identifier "Nortel-i2004-A"; > } > > In a subnet, I have the following, which works perfectly fine. > > subnet 10.10.0.0 netmask 255.255.0.0 { > authoritative; > option routers 10.10.0.1; > one-lease-per-client true; > pool { > allow members of "i2004-clients"; > range 10.10.250.50 10.10.250.249; > max-lease-time 43200; > default-lease-time 43200; > } > > There's other pools as well, and we have several other vlans like the > above and all IP phones get the default configuration. > > But I need to assign some phones to a different controller - that is I > need to assign those that land in this specific vlan with the following: > option nortel-specific-info = > "Nortel-i2004-A,10.2.0.10:4100,1,15;10.2.0.10:4100,1,15."; > > I tried creating a different class, but because hardware is the same, they > fall under the first defined one. I tried adding the above inside the pool > section but they still get the globally defined one. Am I missing > something? Or would I need to assign the class or the above lines to every > vlan and take it out of the global config? > > Thanks in advance - Ricardo. > > > -- > ?(((=((===???(((================================================ > > _______________________________________________ > 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 listdhcp-users at lists.isc.orghttps://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 at lists.isc.org > https://lists.isc.org/mailman/listinfo/dhcp-users > -- ?(((=((===???(((================================================ -------------- next part -------------- An HTML attachment was scrubbed... URL: From krishnaanjali42 at gmail.com Wed Aug 26 03:54:06 2020 From: krishnaanjali42 at gmail.com (Anjali Krishna) Date: Wed, 26 Aug 2020 09:24:06 +0530 Subject: Dhcpd with ipv6 support In-Reply-To: <3f8b945e-5d4d-ed58-c043-f3b9067a2629@c3po.polymerindustries.biz> References: <3ff17c23-4b66-ce62-413f-e10f63cc6165@c3po.polymerindustries.biz> <4ec4f443-6e3d-639c-8250-6a2d1b404b56@gmail.com> <3f8b945e-5d4d-ed58-c043-f3b9067a2629@c3po.polymerindustries.biz> Message-ID: 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, 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 listdhcp-users at lists.isc.orghttps://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 listdhcp-users at lists.isc.orghttps://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 listdhcp-users at lists.isc.orghttps://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 at lists.isc.org > https://lists.isc.org/mailman/listinfo/dhcp-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From glenn.satchell at uniq.com.au Wed Aug 26 04:13:13 2020 From: glenn.satchell at uniq.com.au (glenn.satchell at uniq.com.au) Date: Wed, 26 Aug 2020 14:13:13 +1000 Subject: Dhcpd with ipv6 support In-Reply-To: References: <3ff17c23-4b66-ce62-413f-e10f63cc6165@c3po.polymerindustries.biz> <4ec4f443-6e3d-639c-8250-6a2d1b404b56@gmail.com> <3f8b945e-5d4d-ed58-c043-f3b9067a2629@c3po.polymerindustries.biz> Message-ID: <7f26058267ef9044df35b0f3f8ffdaed@uniq.com.au> 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, > 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 at 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 at 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 at 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 at 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 at lists.isc.org > https://lists.isc.org/mailman/listinfo/dhcp-users From krishnaanjali42 at gmail.com Wed Aug 26 04:33:59 2020 From: krishnaanjali42 at gmail.com (Anjali Krishna) Date: Wed, 26 Aug 2020 10:03:59 +0530 Subject: Dhcpd with ipv6 support In-Reply-To: <7f26058267ef9044df35b0f3f8ffdaed@uniq.com.au> References: <3ff17c23-4b66-ce62-413f-e10f63cc6165@c3po.polymerindustries.biz> <4ec4f443-6e3d-639c-8250-6a2d1b404b56@gmail.com> <3f8b945e-5d4d-ed58-c043-f3b9067a2629@c3po.polymerindustries.biz> <7f26058267ef9044df35b0f3f8ffdaed@uniq.com.au> Message-ID: 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 , 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, > > 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 at 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 at 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 at 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 at 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 at 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 at lists.isc.org > https://lists.isc.org/mailman/listinfo/dhcp-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From socha at socha.it Wed Aug 26 07:16:39 2020 From: socha at socha.it (Robert Socha) Date: Wed, 26 Aug 2020 09:16:39 +0200 Subject: Dhcpd with ipv6 support In-Reply-To: References: <3ff17c23-4b66-ce62-413f-e10f63cc6165@c3po.polymerindustries.biz> <4ec4f443-6e3d-639c-8250-6a2d1b404b56@gmail.com> <3f8b945e-5d4d-ed58-c043-f3b9067a2629@c3po.polymerindustries.biz> <7f26058267ef9044df35b0f3f8ffdaed@uniq.com.au> Message-ID: 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 , > 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, > > > 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 at 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 at 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 at 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 at 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 at 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 at 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 at lists.isc.org > https://lists.isc.org/mailman/listinfo/dhcp-users > From niall.oreilly at ucd.ie Wed Aug 26 09:58:41 2020 From: niall.oreilly at ucd.ie (Niall O'Reilly) Date: Wed, 26 Aug 2020 10:58:41 +0100 Subject: Latest lease entry not the one offered to the client In-Reply-To: <1597720024513-0.post@n4.nabble.com> References: <43971F52-6C2B-4787-88D7-BCB9229FD3BC@thehobsons.co.uk> <1597720024513-0.post@n4.nabble.com> Message-ID: <1E25305F-762A-48CA-B725-5B3014106CBE@ucd.ie> 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: From glenn.satchell at uniq.com.au Wed Aug 26 10:22:01 2020 From: glenn.satchell at uniq.com.au (glenn.satchell at uniq.com.au) Date: Wed, 26 Aug 2020 20:22:01 +1000 Subject: Latest lease entry not the one offered to the client In-Reply-To: <1E25305F-762A-48CA-B725-5B3014106CBE@ucd.ie> References: <43971F52-6C2B-4787-88D7-BCB9229FD3BC@thehobsons.co.uk> <1597720024513-0.post@n4.nabble.com> <1E25305F-762A-48CA-B725-5B3014106CBE@ucd.ie> Message-ID: <2ca5d0b4a30bb792370a17f4c0cf8547@uniq.com.au> 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 at lists.isc.org > https://lists.isc.org/mailman/listinfo/dhcp-users From krishnaanjali42 at gmail.com Thu Aug 27 07:06:19 2020 From: krishnaanjali42 at gmail.com (Anjali Krishna) Date: Thu, 27 Aug 2020 12:36:19 +0530 Subject: Dhcpd with ipv6 support In-Reply-To: References: <3ff17c23-4b66-ce62-413f-e10f63cc6165@c3po.polymerindustries.biz> <4ec4f443-6e3d-639c-8250-6a2d1b404b56@gmail.com> <3f8b945e-5d4d-ed58-c043-f3b9067a2629@c3po.polymerindustries.biz> <7f26058267ef9044df35b0f3f8ffdaed@uniq.com.au> Message-ID: Hi, Is dibbler an alternate for radvd? On Wed, 26 Aug 2020, 12:46 pm Robert Socha, wrote: > 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 , > > 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, > > > > > 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at lists.isc.org > https://lists.isc.org/mailman/listinfo/dhcp-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rslaranjo at gmail.com Thu Aug 27 07:38:04 2020 From: rslaranjo at gmail.com (Romskie) Date: Thu, 27 Aug 2020 15:38:04 +0800 Subject: Dhcpd with ipv6 support In-Reply-To: References: <3ff17c23-4b66-ce62-413f-e10f63cc6165@c3po.polymerindustries.biz> <4ec4f443-6e3d-639c-8250-6a2d1b404b56@gmail.com> <3f8b945e-5d4d-ed58-c043-f3b9067a2629@c3po.polymerindustries.biz> <7f26058267ef9044df35b0f3f8ffdaed@uniq.com.au> Message-ID: Dribbler is an alternative to isc dhcpv6, it is a dhcpv6 client / server. On Thu, 27 Aug 2020, 3:07 pm Anjali Krishna, wrote: > Hi, > > Is dibbler an alternate for radvd? > > On Wed, 26 Aug 2020, 12:46 pm Robert Socha, wrote: > >> 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 , > > > 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, >> > > > > > 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at lists.isc.org > https://lists.isc.org/mailman/listinfo/dhcp-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: