network icon indicating copy to clipboard operation
network copied to clipboard

Support changing the IPv6 Address generation mode

Open joneuhauser opened this issue 2 years ago • 1 comments

On Ubuntu 20.04, nm-managed connections by default use ipv6.addr-gen-mode = "stable-privacy". When using SLAAC, for obtaining a static address, setting this to "eui64" is required. I haven't found a way to do this with the role provided here (thanks a lot, by the way!). My current workaround uses the nmcli module additionally, but of course this leads to problems with idempotence. It would be nice if system-roles.network provided a way to set this option.

The relevant settings in NM are:

https://lazka.github.io/pgi-docs/NM-1.0/constants.html#NM.SETTING_IP6_CONFIG_IP6_PRIVACY

https://lazka.github.io/pgi-docs/NM-1.0/enums.html#NM.SettingIP6ConfigAddrGenMode

joneuhauser avatar May 09 '22 18:05 joneuhauser

Thanks, this sounds to me like a new feature request, I will look into it.

liangwen12year avatar May 19 '22 19:05 liangwen12year

Did you try the network_state variable, https://github.com/linux-system-roles/network/#variables ? IPv6 Address generation mode is supported by the network_state.

liangwen12year avatar Mar 20 '23 13:03 liangwen12year

I suggested using the network_state for specifying the Ipv6 address gen mode, and I have not heard back from the reporter since then, thus, closing the issue.

liangwen12year avatar Aug 25 '23 14:08 liangwen12year