Introduction
Windows 11 enables IPv6 randomized interface identifiers (RandomizeIdentifiers) by default as a privacy protection against tracking. However, in scenarios such as accessing a home server via Remote Desktop, a fixed IPv6 host suffix is much more convenient.
Windows provides Set-NetIPv6Protocol -RandomizeIdentifiers Disabled to turn off randomized identifiers, but on recent Windows 11 builds the setting reverts to enabled after a reboot. Related discussions:
Symptoms
Suppose your network adapter’s MAC address is 28:cf:e9:12:5d:fe. With RandomizeIdentifiers enabled, the same machine gets different IPv6 suffixes over time:
- Under prefix
2001:db8::/64: 3725:f4b2:a198 - Under prefix
2001:db8::/64: 8f12:c637:92ae<5b19>5b19> (after reboot)
With RandomizeIdentifiers disabled, the IPv6 address keeps a stable MAC-derived suffix:
- Under prefix
2001:db8::/64: 2acf:e9ff:fe12<5dfe>5dfe> (derived from the MAC address)
How IPv6 EUI-64 Interface Identifiers WorkWhen randomization is disabled, Windows derives the IPv6 interface identifier from the MAC address using EUI-64:
- Start with the MAC address (e.g.,
28:cf:e9:12:5d:fe).- Insert
ff:fein the middle:28:cf:e9:ff:fe:12:5d:fe.- Flip the 7th bit (Universal/Local bit):
28in binary is00101000, which becomes00101010(2a).- Final interface identifier:
2acf:e9ff:fe12:5dfe.This produces a predictable IPv6 address that simplifies network management, though with reduced privacy.
Solution
Use Windows Task Scheduler to run the command automatically at system startup so RandomizeIdentifiers stays disabled after every reboot.
1. Create a Scheduled Task
- Press
Win + R, typetaskschd.msc, and press Enter. - Right-click Task Scheduler Library and choose Create Task.
- On the General tab:
- Name:
Disable IPv6 RandomizeIdentifiers - Select Run whether user is logged on or not
- Check Run with highest privileges
- Name:
- On the Triggers tab:
- Click New, select At startup, and click OK.
- On the Actions tab:
- Click New
- Program/script:
powershell.exe - Add arguments:
-Command "Set-NetIPv6Protocol -RandomizeIdentifiers Disabled" - Click OK.
- Click OK to save the task (enter administrator credentials if prompted).
2. Verify the Configuration
Run the task manually or reboot your computer, then verify:
- Open PowerShell after rebooting.
- Run:
Get-NetIPv6Protocol | Select RandomizeIdentifiers - Confirm the output shows
Disabled.
Once it shows Disabled, your IPv6 address suffix will remain fixed across reboots.