Set ipv4 preferred

Från MM2 Intern WiKI
Version från den 7 mars 2026 kl. 22.30 av Peter (diskussion | bidrag) (Skapade sidan med ' == Set IPv4 as Preferred == == 1 == == To set IPv4 as the preferred protocol over IPv6 in Windows, you can adjust the prefix policy settings using the netsh command. This method does not disable IPv6 but changes the priority to prefer IPv4. == == Example == == netsh interface ipv6 set prefix ::/96 60 3 == == netsh interface ipv6 set prefix ::ffff:0:0/96 55 4 == == Kopiera == == This command configures Windows to prefer IPv4 over IPv6 without requiring a reboot. =...')
(skillnad) ← Äldre version | Nuvarande version (skillnad) | Nyare version → (skillnad)
Hoppa till navigering Hoppa till sök

Set IPv4 as Preferred

1

To set IPv4 as the preferred protocol over IPv6 in Windows, you can adjust the prefix policy settings using the netsh command. This method does not disable IPv6 but changes the priority to prefer IPv4.

Example

netsh interface ipv6 set prefix ::/96 60 3

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

Kopiera

This command configures Windows to prefer IPv4 over IPv6 without requiring a reboot.

Important Considerations

Resetting Network Settings

To reset the network settings for the IPv6 protocol to their defaults, use:

netsh interface ipv6 reset

Kopiera

Using Registry

You can also use the registry to prioritize IPv4 over IPv6. Navigate to HKLM\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters and create a REG_DWORD entry named DisabledComponents with a value of 0x20. Restart the computer for the changes to take effect.

Alternatively, you can set this registry entry from the command line:

reg add HKLM\system\currentcontrolset\services\tcpip6\parameters /v DisabledComponents /t REG_DWORD /d 0x20

Kopiera

Group Policy Preferences

For domain environments, you can deploy this registry setting using Group Policy Preferences to ensure all computers prioritize IPv4 over IPv6.

By following these steps, you can effectively set IPv4 as the preferred protocol on your Windows machine without disabling IPv6 entirely.