Properly disable IPv6 for Hyperv

8,382

You can edit each network adapter and uncheck the IP6 binding; in your case edit the Hyper-V Virtual adapter. You may need to reboot for it to take effect. You should no longer have an IP6 address assigned to the adapter. Note you technically have a build Micorosft can say they will not support, but if that is the case, you can re-enable it for the support call. Good luck!

Share:
8,382

Related videos on Youtube

Roel Veldhuizen
Author by

Roel Veldhuizen

Updated on September 18, 2022

Comments

  • Roel Veldhuizen
    Roel Veldhuizen over 1 year

    When connecting to vagrant, I get an IPv6 address.

        default: IP: fe80::215:5dff:fe38:151
    ==> default: Waiting for machine to boot. This may take a few minutes...
        default: SSH address: fe80::215:5dff:fe38:151:22
    

    After reading a lot of articles saying that you should disable IPv6, I tried to do so.

    I tried using the script that Microsoft provides. ( https://support.microsoft.com/en-us/help/929852/how-to-disable-ipv6-or-its-components-in-windows )

    Which didn't result in getting an IPv4 address also I tried disabling it via the registry. ( http://tweaks.com/windows/40099/how-to-properly-disable-ipv6/ )

    I got an IPv4 address once but after reboot I got an IPv6 address again.

    Any idea's on how to solve this?

    • Sander Steffann
      Sander Steffann over 6 years
      Please be aware that Microsoft explicitly does not support systems with IPv6 disabled. If you need a supported configuration you might want/need to solve this on the vagrant side.
    • Johan Myréen
      Johan Myréen over 6 years
      IPv4 and IPv6 addresses are not mutually exclusive and are designed to coexist in peace. Disabling IPv6 does not mean that you will get an IPv4 address instead. If your problem is that your IPv4 address is missing, you should try to find the cause for this, but disabling IPv6 doesn't help at all.
    • Michael Hampton
      Michael Hampton over 5 years
      This looks like a bug in Vagrant, not a misconfiguration. You should have a chat with the Vagrant developers about the proper use of IPv6 address scopes, which they haven't done.