Windows 11 - How to permanently disable temporary IPv6 address

Barungar 15 Reputation points
2023-04-03T07:48:10.16+00:00

Hi,

I need some hints or help. I've tried to permanently disable the use of IPv6 temporary addresses on my Windows 11 computer. Both methods I tried only work for the next system start. With following starts having those IPv6 temporary address being enabled again.

Using PowerShell I tried:

Set-NetIPv6Protocol -UseTemporaryAddresses Disable

Using CMD with netsh I tried:

netsh interface ipv6 set privacy state=disabled store=persistent

The PowerShell or CMD were run with elevated (admin) rights. None returned an error. Sadly the result stays the same. After rebooting temporary IPv6 addresses are disabled. With the following reboot they are back again.

How do I get a persistent / permanent removal of IPv6 temporary addresses?

Thanks,

Barungar

Windows 10 Network
Windows 10 Network
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Network: A group of devices that communicate either wirelessly or via a physical connection.
2,371 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,267 questions
0 comments No comments
{count} vote

7 answers

Sort by: Most helpful
  1. Voon Kim Heng 5 Reputation points
    2023-07-09T15:49:12.9166667+00:00

    Hi All, I used the command below to disable my Notebook's temporary IPv6 address.

    netsh interface ipv6 set global randomizeidentifiers=disabled

    netsh interface ipv6 set privacy state=disabled

    To disable Teredo tunneling

    netsh interface teredo set state disabled

    https://lonesysadmin.net/2018/01/23/disable-windows-ipv6-temporary-addresses/

    1 person found this answer helpful.
    0 comments No comments

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.

    1 deleted comment

    Comments have been turned off. Learn more

  3. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.

    2 deleted comments

    Comments have been turned off. Learn more

  4. Roland Schweiger 0 Reputation points
    2024-08-02T09:19:21.63+00:00

    Windows11 23H2 - UNABLE to permanently prevent LAN adapter from getting random- and temporary ip v6 adresses - please help

    My setup: typical Windows11 PC, all updates. Connected with Ethernet Adapter to FritzBox Router The router gives me a true ipv4 address + an ipv6 subnet As i want to be reachable from outside on ONE SINGLE IPV6 address (which i also configure for a dyndns service) i do not want privacy extensions and temporary ipv6 addresses which also seem to "change" the mac address of my network adapter. So my typical adapter looks like this Ethernet-Adapter Ethernet:    Verbindungsspezifisches DNS-Suffix: fritz.box    IPv6-Adresse. . . . . . . . . . . : 2001:871:25e:e7d2:e567:d425:c123:b638    Temporäre IPv6-Adresse. . . . . . : 2001:871:25e:e7d2:102c:1aea:4b4c:b244    Verbindungslokale IPv6-Adresse  . : fe80::73a6:732d:be52:e5e4%17    IPv4-Adresse  . . . . . . . . . . : 192.168.180.20    Subnetzmaske  . . . . . . . . . . : 255.255.255.0    Standardgateway . . . . . . . . . : fe80::d624:ddff:fe29:18b3%17                                        192.168.180.1 Sorry it's in German but you can see what i mean. TRIED EVERYTHING i found on the onternet. all the netsh commands 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 and the power shell commands Set-NetIPv6Protocol -RandomizeIdentifiers Disabled Set-NetIPv6Protocol -UseTemporaryAddresses Disabled and resetting netsh winsock reset netsh int ip reset ipconfig /release it used to work for a while and i only got one ipv6 address with always the same prefix and suffix. At some windows update or something this must have changed. Once i  had installed Wireguard for a vpn, then uninstalled it again and i am wondering if this might have also caused the problem. sometimes a vEthernet switch keeps appearing too, but i have no Hyper-V installed. Please does someone know how to for ever get rid of the ipv6 privacy extensions + temporary addresses? also tried disabling router discovery with netsh interface ipv6 set interface "Ethernet" routerdiscovery=disabled but then the DNS won't work either... have pulled all my hair out in the meantime i really am at the end of any knowledge. nice greetings from Vienna Roland Schweiger


  5. Jørgen Lanesskog 0 Reputation points
    2024-08-10T15:19:48.94+00:00

    Seems like you have to first disable the active store and then the persistent store.
    This worked for me and have worked accross multiple reboots.

    netsh interface ipv6 set global randomizeidentifiers=disabled store=active

    netsh interface ipv6 set privacy state=disabled store=active

    netsh interface ipv6 set global randomizeidentifiers=disabled store=persistent

    netsh interface ipv6 set privacy state=disabled store=persistent

    netsh interface teredo set state disabled

    Also, if you have a static IP configured and want to disable SLAAC:

    netsh interface ipv6 set interface "Lanesskog" routerdiscovery=disabled store=active

    netsh interface ipv6 set interface "Lanesskog" routerdiscovery=disabled store=persistent


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.