zettelkasten/OneNoteExport/Technik/Dokumentation/Anleitungen/18_IPv4 vor IPv6.md
2023-08-17 19:32:37 +02:00

2.1 KiB

IPv4 vor IPv6

Mittwoch, 7. Februar 2018

21:14

 

Here is a simple way to do it using PowerShell

1

2

3

4

5

6

7

8

9

Break #In case you paste this in to PowerShell ISE and press run script:)

#Check if IPv4 IP address is preferred

ping $env:COMPUTERNAME

#If the reply is IPv6 address, run following registry setting to just prefer ipv4 and reboot

New-ItemProperty “HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters\” -Name “DisabledComponents” -Value 0x20 -PropertyType “DWord”

#If DisabledComponents exists, use the set cmdlet

Set-ItemProperty “HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters\” -Name “DisabledComponents” -Value 0x20

#You need to reboot the computer in order for the changes to take effect

Restart-Computer

IPv4 vor IPv6 nutzen

To force the system to use IPv4 first, before IPv6

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters\DisabledComponents

Optional: KB929852 - MS Fixit für die unten aufgeführten Schritte!

  1. In Registry Editor:\

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters \

  2. Doppelt auf DisabledComponents zum ändern klicken ODER\

    wenn der  DisabledComponents nicht vorhanden ist, muss dieser erstellt werden:

<!-- -->
  1. Edit Menü -> New ->** DWORD (32-bit) Value**
<!-- -->
  1. "DisabledComponents" eingeben, ENTER

  2. Doppelklick auf DisabledComponents

<!-- -->
  1. "0x20" eingeben um IPv4 vor IPv6 zu bevorzugen.

 

Zugriff auf freigaben

 

\\fdd0-0-0-1-0-0-0-8.ipv6-literal.net