I am trying to get stable-privacy address geneted on my box for the router advertisement prefix.
If I just set the kernel parameters like below I do get a good stable privacy address.
sysctl net.ipv6.conf.eth0.stable_secret="aaaa:bbbb:cccc:dddd:eeee:ffff:0000:1111" sysctl net.ipv6.conf.eth0.use_tempaddr=0 sysctl net.ipv6.conf.eth0.addr_gen_mode=2 17: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 10:82:86:05:dc:36 brd ff:ff:ff:ff:ff:ff inet6 fd01:abcd:efab:cdef:170e:bc6c:b50b:383f/64 scope global dynamic mngtmpaddr stable-privacy valid_lft 86397sec preferred_lft 14397sec inet6 fe80::11f:e820:cf87:4238/64 scope link stable-privacy valid_lft forever preferred_lft forever
However, I plan to use systemd-networkd so that I can obtain DNS through RA too.
Now for systemd-networkd no matter whatever I try I cant seem to get the global stable-privacy address as was generated by the kernel. While the address with below config is not eui64, it is not shown as stable-privacy by kernel and is not affected at all by what stable secret I specify.
[Match] Name=eth0 [Network] IPv6AcceptRA=true IPv6LinkLocalAddressGenerationMode=stable-privacy IPv6StableSecretAddress=aaaa:bbbb:cccc:dddd:eeee:ffff:0000:1111 IPv6PrivacyExtensions=kernel IPv6Token=prefixstable [IPv6AcceptRA] UseDNS=true
Is there a way to generate and control the stable privacy address as generated by systemd-networkd?
Or is there any service I could use which will let me has the stable-privacy address from the kernel but let me do DNS through RA.