Is there a way to generate random IPv6 suffixes in OpenWRT when using dhcp server or any mechanism to server IPv6 addresses to hosts. I would like to avoid using the same fixed IPv6 everytime I startup my computer.
I tried to implement privacy extensions in Debian client, but it did not work.
ip6ifaceid ipv6 suffix no ::1 Allowed values: 'eui64', 'random', fixed value like '::1:2'.
When IPv6 prefix (like 'a:b:c:d::') is received from a delegating server, use the suffix (like '::1') to form the IPv6 address ('a:b:c:d::1') for this interface. Useful with several routers in LAN. The option was introduced by this commit to netifd in Jan 2015.
Yes, you are right.
As far as SLAAC is concerned, the hosts will create their own IPv6 from the prefix advertised in the RA.
So the other option is DHCPv6, where if you don't specify some hostid it will assign kind of randomly an IP
This works, disabling dhcpv6 and setting-up SLAAC made the trick.
These settings are correct and allow to generate a random IPv6 suffix.
Tested on Android and Debian GNU/Linux.
Under Debian GNU Linux, you need to set up privacy extensions to '2".
cat /etc/sysctl.conf net.ipv6.conf.all.use_tempaddr = 2
The ipv6 is generated after each reboot.
Under Android, disconnecting and reconnecting to WIFI is enough to generate a new random IPv6 suffix.
It's a HASH for the privacy secret...so your router will have a new IPv6 Privacy address on configured interfaces on every reboot.
It's not an IP in the example...I don't think you followed the instructions in that thread (probably because you were referring to privacy on the client).
Nonetheless, glad your issue is solved with a static IP address.
EDIT: I think it's extremely important to be clear - that command does not magically generate a valid IP address..