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,381 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,554 questions
{count} vote

6 answers

Sort by: Most helpful
  1. Voon Kim Heng 10 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. 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


  5. Markus Kuhn 5 Reputation points
    2024-12-17T13:08:00.1233333+00:00

    As a workaround, try running the command in “Safe Mode with Networking”, then reboot. That worked on two out of the two Windows 11 Pro machines (e.g. 24H2, build 26100.2605) with that problem that we tried.

    Detailed steps:

    • On the logon screen click the Power symbol, then click Shift+Reset. After the reboot select Troubleshoot, Advanced options, Startup Settings, select "5) Enable Safe Mode with Networking".
    • While in "Safe Mode with Networking" run in admin-elevated cmd.exe the netsh command C:\>netsh interface ipv6 set global randomizeidentifiers=disabled store=persistent
    • Reboot back into normal mode
    • Check with netsh interface ipv6 show global that the setting has persisted.

    It appears that whatever mechanism prevented that setting from becoming persistent is not active in Safe Mode.


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.