Widget Networkmanager resets ipv6.addr-gen-mode

Environment: Tumbleweed fully upgraded Using an editor I changed ipv6.addr-gen-mode to eui64 for the Ethernet (cable) connection. However after using the Networkmanager widget and adding search domains for IPv6 I found that the value was changed back into stable-privacy. I don't see an option in the widget to set it to eui64. Is this a bug? -- fr.gr. member openSUSE Freek de Kruijf

22.03.2025 02:16, Freek de Kruijf wrote:
Did you verify that NM is using new setting after restart (using nmcli to connect to the running daemon)?
b) which widget?
The widget in a KDE session.
Did you restart KDE session after changing the value? Try logging out (or even booting into run level 3), make sure NM is using your desired setting (by checking with nmcli) then start KDE session, check whether setting is still present, try editing connection, check again.

Op zaterdag 22 maart 2025 05:59:30 Midden-Europese standaardtijd schreef Andrei Borzenkov:
I did a boot and still got eui64 active. Used the widget to add dns servers, both for IPv4 and IPv6 and applied the changes. Before the change I saved the file in /etc/NetworkManager/system-connections/. After the change I compared the two files and apart from the changed lines with the dns items, also addr- gen-mode= was changed from eui64 to stable-privacy. I did some further analyses and found that using nm-connection-editor I was able to choose eui64, so probably using the widget - right clicking on the network icon in the system tray and selecting "Configure Network Connections…" - another editor, which seems to be part of systemsettings, is used without that capability. I found that the editor is activated by: /usr/bin/systemsettings kcm_networkmanagement -- fr.gr. member openSUSE Freek de Kruijf

22.03.2025 14:52, Freek de Kruijf wrote:
I briefly looked at NetworkManager-qt and it /looks/ like it obtains all settings for a given connection when creating the internal representatoin. NM D-Bus API does not really have an option to change a single connection setting - any editor needs to download the current settings in full and upload them all back. The default value for addr-gen-mode in Plasma applet is indeed stable-privacy. It is possible that it somehow overrides what Qt received from the NM. It is possible that either Qt or KDE do something incorrectly here. As you are on Tumbleweed, this is topic for the upstream bug report.
It does not matter. I expect every NM frontend editor to preserve the existing settings that it does not touch. Even for the reason of forward compatibility - it should not simply drop or otherwise modify unknown settings.
I found that the editor is activated by: /usr/bin/systemsettings kcm_networkmanagement
Sure, it is Plasma applet. Open bug report on bugs.kde.org.

22.03.2025 02:16, Freek de Kruijf wrote:
Did you verify that NM is using new setting after restart (using nmcli to connect to the running daemon)?
b) which widget?
The widget in a KDE session.
Did you restart KDE session after changing the value? Try logging out (or even booting into run level 3), make sure NM is using your desired setting (by checking with nmcli) then start KDE session, check whether setting is still present, try editing connection, check again.

Op zaterdag 22 maart 2025 05:59:30 Midden-Europese standaardtijd schreef Andrei Borzenkov:
I did a boot and still got eui64 active. Used the widget to add dns servers, both for IPv4 and IPv6 and applied the changes. Before the change I saved the file in /etc/NetworkManager/system-connections/. After the change I compared the two files and apart from the changed lines with the dns items, also addr- gen-mode= was changed from eui64 to stable-privacy. I did some further analyses and found that using nm-connection-editor I was able to choose eui64, so probably using the widget - right clicking on the network icon in the system tray and selecting "Configure Network Connections…" - another editor, which seems to be part of systemsettings, is used without that capability. I found that the editor is activated by: /usr/bin/systemsettings kcm_networkmanagement -- fr.gr. member openSUSE Freek de Kruijf

22.03.2025 14:52, Freek de Kruijf wrote:
I briefly looked at NetworkManager-qt and it /looks/ like it obtains all settings for a given connection when creating the internal representatoin. NM D-Bus API does not really have an option to change a single connection setting - any editor needs to download the current settings in full and upload them all back. The default value for addr-gen-mode in Plasma applet is indeed stable-privacy. It is possible that it somehow overrides what Qt received from the NM. It is possible that either Qt or KDE do something incorrectly here. As you are on Tumbleweed, this is topic for the upstream bug report.
It does not matter. I expect every NM frontend editor to preserve the existing settings that it does not touch. Even for the reason of forward compatibility - it should not simply drop or otherwise modify unknown settings.
I found that the editor is activated by: /usr/bin/systemsettings kcm_networkmanagement
Sure, it is Plasma applet. Open bug report on bugs.kde.org.
participants (2)
-
Andrei Borzenkov
-
Freek de Kruijf