Advertisement
sebbu

re-enable ipv6 on Windows 10, prefer ipv6 over ipv4

Dec 15th, 2020
2,208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2. reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters" /v DisabledComponents /t REG_DWORD /d 0 /f
  3.  
  4. netsh interface IPV6 set global randomizeidentifier=disabled
  5. netsh interface IPV6 set privacy state=disable
  6. netsh interface ipv6 6to4 set state state=disabled
  7. netsh interface ipv6 isatap set state state=disabled
  8. netsh interface ipv6 set teredo disable
  9.  
  10. netsh interface ipv6 show prefixpolicies
  11. rem order (2nd parameter) of ::ffff:0:0/96 should be after ::1/128 and ::/0 but before 2002::/16, 2001::/32, fc00::/7, fec0::/10, 3ffe::/16, ::/96, as for the label, i haven't changed it
  12. netsh interface ipv6 set prefixpolicy ::ffff:0:0/96 25 4
  13. netsh interface ipv6 show prefixpolicies
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement