ipv6.addr-gen-mode=stable-privacy is not stable
I am trying to set up IPv6 in my network, and I want to make sure to have some stable addresses in my network.
It is my understanding that setting ipv6.addr-gen-mode=stable-privacy
will create a stable IID, as long as /etc/machine-id
and /var/lib/NetworkManager/secret_key
remain stable. Alternatively I believe I can set connection.stable-id
that is used to produce the IID.
However, both of them don't work: every time the prefix changes, the IID changes too.
Steps to reproduce
Without stable-id
- make sure you have
ipv6.addr-gen-mode=1
set - Write down your IPv6 address from
ip a
- Reconnect router to obtain a new prefix
- Oberserve that both the prefix and the IID changed in
ip a
With stable-id
- Make sure you have
ipv6.addr-gen-mode=1
set - Set
connection.stable-id
to some value - Write down your IPv6 address from
ip a
- Reconnect router to obtain a new prefix
- Oberserve that both the prefix and the IID changed in
ip a