I have all LAN IPV4 hosts with a static lease so that I can reach them in a predictable manner from one another, by name.
I am aware that I cannot exactly replicate that situation with IPV6 since the prefix is outside my control (he.net gives me a /48) but I am fine with that: as long as I can somehow indirectly map each MAC to a name, I don't care what the actual address is.
What is really driving me up the wall is that the router somehow has a different /128 address for the hosts while the hosts all have multiple /64 addresses.
Given that I have the usual mix of Linux and Android hosts, plus the occasional Windows guest, how should I configure dnsmasq on the router? I'd rather not change anything on the hosts themselves, just like for IPV4.
Here are the configs:
/etc/config/dhcp (I removed most of the hosts, leaving just the two I am using for tests)
config dnsmasq option domainneeded '1' option filterwin2k '1' option localise_queries '1' option rebind_protection '1' option rebind_localhost '1' option local 'EDITED' option domain 'EDITED' option expandhosts '1' option authoritative '1' option leasefile '/tmp/dhcp.leases' option resolvfile '/tmp/resolv.conf.auto' option nonegcache '1' option localservice '0' option nonwildcard '0' config dhcp 'wan' option interface 'wan' option ignore '1' config odhcpd 'odhcpd' option maindhcp '0' option leasefile '/tmp/hosts/odhcpd' option leasetrigger '/usr/sbin/odhcpd-update' option loglevel '4' config dhcp 'lan' option interface 'lan' option start '2' option limit '100' option leasetime '24h' option dhcpv6 'server' option ra 'server' option ra_management '1' option force '1' config host option name 'mononoke' option ip 'x.y.z.4' option mac 'xx:xx:xx:xx:xx:02' config host option name 'clarisse' option ip 'x.y.z.8' option mac 'xx::xx:xx:xx:3d xx:xx:xx:xx:xx:6c'
config interface 'lan' option ifname 'EDITED' option type 'bridge' option proto 'static' option ipaddr 'EDITED' option netmask '255.255.255.0' option ipv6 '1' list ip6class 'he_1_nyc' option ip6hint '2' option ip6assign '64' option stp '1'
Interesting bit I just noticed: the Linux hosts all have the wrong address, while the Android ones simply are not listed at all in DHCPv6