YES This did solve my IPv6 problem which is slightly different so i will explain here -- issuing your above mentioned commands did finally make the disabling of the ipv6 privacy extensions persistant.
My scenario:
I want to permanently DISABLE Ipv6 PRIVACY EXTENSIONS and disable the use of Random IPv6 addresses, the interface (network card) of my Windows11 machine must get the same ipv6 suffix on every restart. Trying to set this in Windows only worked until the next restart of Windows and the router, the changes were not persistent.
have a "FritzBox" which is an ADSL Modem-Router device by German brand "AvM" and it offers (of the ISP does) full IPv6 support.
My Windows11 machine shall be made reachable from the outside world via IPv6 and it is connected to the router by an Ethernet Card (with a hardware MAC address)
By default Windows11 uses ipv6 "privacy extensions" which change the ipv6 suffix on every reboot.
The ipv6 prefix is set by the ISP and the FritzBox, but i want the SUFFIX to always stay the same, thus i can properly give my machine a name via any Dynamic DNS service.
Also, my computer kept getting temporary IPv6 addresses and link-local ones with different suffixes which confused the FritzBox so my inbound firewall rules no longer worked.
There are a few ways to disable privacy extensions in Windows11, i uses
powershell method (run as admin):
Set-NetIPv6Protocol -UseTemporaryAddresses Disabled
Set-NetIPv6Protocol -RandomizeIdentifiers Disabled
also tried the elderly versions in CMD (run as admin):
netsh interface ipv6 set global randomizeidentifiers=disabled store=active
netsh interface ipv6> set global randomizeidentifiers=disabled store=persistent
netsh interface ipv6> set privacy state=disabled store=active
netsh interface ipv6> set privacy state=disabled store=persistent
So finally --- FULLY RESETTING THE TCP/IP STACK solved my problem.
many thanks and greetings from Vienna in Austria,
Roland Schweiger