Win11 24H2 -- How to restore/reset network prefix policies?


kanenas

Active member
Member
Local time
3:16 PM
Posts
49
OS
Windows 11 Pro for Workstations (version 24H2, build 26100.4061)
Another weird case that hit me during the last couple of days.

I started getting errors all of a sudden while trying to ping an RLM server in my local computer. The programs (and pings) couldn't reach the local machine.
I could ping 127.0.0.1, localhost and the assigned IP, but not the computer name.

When I tried the computer name, I saw that the ping used an IPv6 address and timed out. (I have disabled the IPv6 drivers from the interfaces and the result makes sense. Why it happened now I can't even guess).

When I tried the same ping with a -4 at the end of the command, it connected fine using the assigned IPv4 address.

I googled about it and found out I can prioritize IPv4 over IPv6. It sounded like a nifty solution and I tried it.

I started with the default prefix policies:

Precedence Label Prefix Description
50 0 ::1/128 IPv6 loopback
40 1 ::/0 Native IPv6
35 4 ::ffff:0:0/96 IPv4
30 2 2002::/16 6to4
5 5 2001::/32 Teredo
3 13 fc00::/7 Unique-Local addresses, ULAs
1 11 fec0::/10 site-local
1 12 3ffe::/16 6bone
1 3 ::/96 IPv4compat

Following the instructions I read, I run these two commands:

netsh interface ipv6 set prefix ::/96 60 3
netsh interface ipv6 set prefix ::ffff:0:0/96 55 4

The result was that these two entries came first on the prefix table, followed by the remaining ones.
The new rules were supposed to take effect right away and also last across reboots.

So I tried the problematic ping and it now used my assigned IPv4 address and connected just fine. So far so good.

After rebooting the system, I tried pinging again and was back to the system using the IPv6 address and failing.
I even set a registry parameter that does the same thing but it also had no effect.
That was a DWord "DisabledComponents" with a value of 0x20 under the key:
"HKLM\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters"

I checked again the prefix table with: netsh interface ipv6 show prefixpolicies

Another surprise. It only shows now the two entries I had moved at the top. The rest have disappeared.

And that's when I started thinking that maybe I should go back to Win 3.1...

Any ideas on how to reset that initial prefix table and how to bypass the conflict with IPv6?

EDIT:
Just now I saw that the IPv6 it uses to connect, belongs to Nordlynx Tunnel (part of NordVPN).
I disabled the VPN but I guess I have to reboot to clear up that IP. Even if it works, not much of a workaround if I'm left without a VPN.

Thanks in advance for any pointers.
 

My Computer

System One

  • OS
    Windows 11 Pro for Workstations (version 24H2, build 26100.4061)
    Computer type
    PC/Desktop
    Manufacturer/Model
    ASRock
    CPU
    6C+4c Intel 13th Gen Intel(R) Core(TM) i5-13400, 4100 M
    Motherboard
    ASRock B660M-HDV
    Memory
    64 GB
    Graphics Card(s)
    NVIDIA GeForce RTX 4060, Intel UHD Graphics 730
    Sound Card
    Realtek
    Monitor(s) Displays
    AOC 24V2W1G5
    Screen Resolution
    1920x1080
    Hard Drives
    SPCC M.2 PCIe SSD
    CT4000MX500SSD1
    Keyboard
    Logitech
    Mouse
    Logitech
    Internet Speed
    1GB
    Antivirus
    Windows Defender

Latest Support Threads

Back
Top Bottom