-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 01/01/16 21:29, Pali Rohár wrote: > On Friday 01 January 2016 21:23:36 Simon Kelley wrote: >> On 23/12/15 21:10, Pali Rohár wrote: >>> This patch allows to assign one IPv6 address for more config >>> entries specified by MAC address. This is similar function as >>> for IPv4 addresses in DHCPv4 server code part. >> >> This needs some thinking about: DHCPv6 is different from DHCPv4 >> in that clients are not, at all, identified by MAC address, >> rather by client-id and IAID. > > I know and this is absolutely uncomfortable for me. One client has > different DUID across different operating systems. Also different > across OS reinstalling... Also if I want to connect new device I > need to instruct people how to set stable DUID across all OS... > Just not usable for normal usage of "any" device. > > For identifying computer/device I need some stable identifier and > DHCPv6 DUID is *not* stable in current implementation of major > usage OS. > > MAC address of network card is stable. And so this identifier is > what I prefer to use. dnsmasq has for it support and I'm happy for > it! And when I configure both DHCPv4 and DHCPv6 one configuration > line MAC,ipv4,ipv6 is really nice for having "clean" > configuration. > >> In addition, DHCPv6 handles multiple addresses and leases per >> client. > > When using just DUID I have problem here. My laptop has both Wifi > and wired ethernet and with DUID information I'm not able to > configure dnsmasq for stable ipv6 addresses. > >> What's important? To be able to specify more than on MAC address, >> any one of which can be matched, or to have a single IPv6 address >> which is removed from one IAID to another if the MAC addresses >> are paired? > > For specified laptops, I have special configuration. All network > interfaces (one wifi, one wired ethernet) on those laptops is > assigned same IP address. Operating system is configured in special > way that when both interfaces are active it send packets *only* via > ethernet. > > So it allows me to have active TCP connections and allows me to > switch between wifi/ethernet without dropping it. > > DHCPv4 in dnsmasq has already support for assigning one ip address > to more MAC addresses (more clients) and this my patch add support > for it too. >
That makes sense. I think if you can organise for both interfaces to send the same CLID and IAID, then both will get the same address. Actually, one way to make this work may be to have ONE DHCP client, and make it configure both interfaces, or copy the address from one interface to the other. I think you can configure a stable address not matter which interface actually does the DHCP transaction with dhcp-host=<mac1><IP-address> dhcp-host=<mac2><IP-address> without needing any patches to the code. The way you're using the IPv4 multiple mac address feature is interesting, It was intended to work when only one interface is active at any time. Extending this to DHCPv6 doesn't really work, because DHCPv6 doesn't use the MAC address to identify interfaces, as I said in my previous reply. Cheers, Simon. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBCAAGBQJWmWkvAAoJEBXN2mrhkTWiyFsQAJVa2PBhSelhsL9fps++FVYx PWcHJft8xgksqdUKKxkErZRqCyiTURNTJZ9SQY2uCTLlYyfsotVXW6GOTlTWeVMR EsqM5Ti7OLALhwQnBuCPAZU4P8Rws7W2XvgkKR1hHiZjedV63zQUWNw7CmCqIH+b tN3J0n0sY4o5nNxdkNUyFJI3pattTBmrZm7JEIwxR+UIn4YeoAORzPO4f51dvjbp 3JQ2AYbqwWgjuIpkB+NZX+slwuF7ljImQybMJ5Tq9R46/rG7XaIqm/goku6IHGVH mvmCCRjE+Bp1Lr8jkTqtitzbzgqjLeYH9jnGzS0LSpFSjvVU5TSdsggKaJxZAcWh unmbosL256U4Pg+piV9sF6PTddpUWni8/BUsQZbzBLcfSwZKppaOEUPaWfUNYwXH IfdRe7EQe5cLDytd9e85KGMOxh1ay+JUtXHDvyit7/nyIjr8lyoGMgjfM0ccS97J WJYlwnZsaZ3NQTOpdZj267Wfr8zKElLaACQEftY5fbcVwyhhCvKJ08CB01dnJF8V Xb0mflSSWaJa1B2MYds3A0lvv7/DDOo8iQz7u42dGDR86wXRVfbdJgP1wL85aslY fWJU14mKPBIqEFaq7z6flPdChmsYcV89HuGdngDh2Gw9K29QvAN4LIZbSh0bvVwA wAQ2iAuyvg3vy4i2npwu =Icc5 -----END PGP SIGNATURE----- _______________________________________________ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss