Can't get IPV6 working with Hyper-V 2016

Al Lehmann 96 Reputation points
2021-10-04T23:42:48.563+00:00

I'm trying to get IPV6 working on my network and having problems with Hyper-V.

I have multiple PC's and a Hyper-V 2016 standalone server with several Windows 10 VM's
I am connected to the Internet via an ASUS router attached to a Starlink dish.

My PC's all work correctly and can get out to the internet, both IPV4 and IPV6.
I have both statically addressed IPV4 and DHCP IPV4 PC's and they work as expected.
On all machines (PC, Hyper-V, VM) IPV6 is enabled and IPV6 DHCP is enabled.

My Hyper-V system doesn't work for IPV6 (It works fine with IPV4)
The Hyper-V server has a valid IPV6 address from Starlink and valid IPV6 DNS address from Starlink but is missing the IPV6 gateway address. Note that I haven't set any IPV6 addresses manually - this somehow came from the router.
It is also missing a 'Temporary IPV6 address'

The Hyper-V VM's are all missing an IPV6 address but have the correct IPV6 DNS address
They are also missing a 'Temporary IPV6 address'

If I try to ping the IPV6 DNS server from the PC's it works.
From Hyper-V and the VM's I get: PING: Transmit failed. General failure.

It seems like Hyper-V is not getting or passing on the IPV6 DHCP information or Neighborhood discovery information.

Looking for clues!

Thanks

Here is some information from a PC, Hyper-V and a VM to compare
(not sure how to keep the original formatting)

Working PC

IPCONFIG /ALL
EEthernet adapter vEthernet (HyperV Public):

Connection-specific DNS Suffix . : ####
Description . . . . . . . . . . . : Hyper-V Virtual Ethernet Adapter #3
Physical Address. . . . . . . . . : 84-7B-EB-59-8A-02
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IPv6 Address. . . . . . . . . . . : 2605:59c1:2653:####::5a2(Preferred)
Lease Obtained. . . . . . . . . . : Monday, October 4, 2021 11:58:21 AM
Lease Expires . . . . . . . . . . : Monday, October 4, 2021 3:33:31 PM
IPv6 Address. . . . . . . . . . . : 2605:59c1:2653:####:ac26(Preferred)
Temporary IPv6 Address. . . . . . : 2605:59c1:2653:####:9c2d(Preferred)
Link-local IPv6 Address . . . . . : fe80::da9:d7b7:d0a9:ac26%22(Preferred)
IPv4 Address. . . . . . . . . . . : 192.168.1.45(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Lease Obtained. . . . . . . . . . : Monday, October 4, 2021 11:58:20 AM
Lease Expires . . . . . . . . . . : Tuesday, October 5, 2021 11:58:20 AM
Default Gateway . . . . . . . . . : fe80::3e7c:3fff:fedc:5a50%22
192.168.1.254
DHCP Server . . . . . . . . . . . : 192.168.1.254
DHCPv6 IAID . . . . . . . . . . . : 495221739
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-21-30-2A-5E-84-7B-EB-59-8A-02
DNS Servers . . . . . . . . . . . : 2605:59c1:2653:####:5a50
1.1.1.1
192.168.1.254
2605:59c1:2653:####:5a50
Primary WINS Server . . . . . . . : 192.168.1.254
NetBIOS over Tcpip. . . . . . . . : Enabled

GET-NETINTERFACE
ifIndex InterfaceAlias AddressFamily NlMtu(Bytes) InterfaceMetric Dhcp ConnectionState PolicyStore
22 vEthernet (HyperV Public) IPv6 1500 25 Enabled Connected ActiveStore
32 vEthernet (Default Switch) IPv6 1500 5000 Enabled Connected ActiveStore
17 Bluetooth Network Connection IPv6 1477 65 Disabled Disconnected ActiveStore
1 Loopback Pseudo-Interface 1 IPv6 4294967295 75 Disabled Connected ActiveStore
2 Local Area Connection* 12 IPv6 1500 25 Enabled Disconnected ActiveStore
23 Local Area Connection* 3 IPv6 1500 25 Disabled Disconnected ActiveStore
4 Wi-Fi IPv6 1500 25 Enabled Disconnected ActiveStore
22 vEthernet (HyperV Public) IPv4 1500 25 Enabled Connected ActiveStore
32 vEthernet (Default Switch) IPv4 1500 5000 Disabled Connected ActiveStore
17 Bluetooth Network Connection IPv4 1477 65 Enabled Disconnected ActiveStore
1 Loopback Pseudo-Interface 1 IPv4 4294967295 75 Disabled Connected ActiveStore
2 Local Area Connection* 12 IPv4 1500 25 Disabled Disconnected ActiveStore
23 Local Area Connection* 3 IPv4 1500 25 Enabled Disconnected ActiveStore
4 Wi-Fi IPv4 1500 25 Enabled Disconnected ActiveStore

GET-NETADAPTERBINDING -displayname 6
Name DisplayName ComponentID Enabled
vEthernet (HyperV Public) Internet Protocol Version 6 (TCP/IPv6) ms_tcpip6 True
Ethernet Internet Protocol Version 6 (TCP/IPv6) ms_tcpip6 False
Bluetooth Network Connection Internet Protocol Version 6 (TCP/IPv6) ms_tcpip6 True
Wi-Fi Internet Protocol Version 6 (TCP/IPv6) ms_tcpip6 True
vEthernet (Default Switch) Internet Protocol Version 6 (TCP/IPv6) ms_tcpip6 True

Not working Hyper-V Server

IPCONFIG/ALL
Ethernet adapter vEthernet (Main Ethernet Switch):

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Hyper-V Virtual Ethernet Adapter
Physical Address. . . . . . . . . : AC-1F-6B-00-A8-46
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
IPv6 Address. . . . . . . . . . . : 2605:59c1:2653:####::87d(Preferred)
Lease Obtained. . . . . . . . . . : Monday, October 4, 2021 1:56:52 PM
Lease Expires . . . . . . . . . . : Monday, October 4, 2021 3:33:33 PM
Link-local IPv6 Address . . . . . : fe80::28a5:5e00:7c21:9a07%11(Preferred)
IPv4 Address. . . . . . . . . . . : 192.168.1.220(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.254
DHCPv6 IAID . . . . . . . . . . . : 363601771
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-20-78-65-F7-AC-1F-6B-00-A8-46
DNS Servers . . . . . . . . . . . : 2605:59c1:2653:####:5a50
1.1.1.1
1.0.0.1
NetBIOS over Tcpip. . . . . . . . : Enabled

GET-NETIPINTERFACE
ifIndex InterfaceAlias AddressFamily NlMtu(Bytes) InterfaceMetric Dhcp ConnectionState PolicyStore
11 vEthernet (Main Ethernet Swi... IPv6 1500 20 Enabled Connected ActiveStore
9 isatap.{DB8DB1C1-C9F8-4CFF-A... IPv6 1280 75 Disabled Disconnected ActiveStore
8 Teredo Tunneling Pseudo-Inte... IPv6 1280 75 Enabled Connected ActiveStore
1 Loopback Pseudo-Interface 1 IPv6 4294967295 75 Disabled Connected ActiveStore
11 vEthernet (Main Ethernet Swi... IPv4 1500 20 Disabled Connected ActiveStore
1 Loopback Pseudo-Interface 1 IPv4 4294967295 75 Disabled Connected ActiveStore

GET-NETADAPTERBINDING -displayname 6
Name DisplayName ComponentID Enabled
vEthernet (Main Ethernet Sw... Internet Protocol Version 6 (TCP/IPv6) ms_tcpip6 True
Ethernet Team Internet Protocol Version 6 (TCP/IPv6) ms_tcpip6 False
Cameras Ethernet Internet Protocol Version 6 (TCP/IPv6) ms_tcpip6 False
Panels Ethernet Internet Protocol Version 6 (TCP/IPv6) ms_tcpip6 False
Ethernet 2 Internet Protocol Version 6 (TCP/IPv6) ms_tcpip6 False
Ethernet 1 Internet Protocol Version 6 (TCP/IPv6) ms_tcpip6 False

Not Working Hyper-V Virtual machine

IPCONFIG /ALL
Ethernet adapter Main Ethernet:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft Hyper-V Network Adapter #3
Physical Address. . . . . . . . . : 00-15-5D-51-BA-05
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::f553:2d45:1981:3bda%14(Preferred)
IPv4 Address. . . . . . . . . . . : 192.168.1.221(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.254
DHCPv6 IAID . . . . . . . . . . . : 134223197
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-27-F4-11-AA-00-15-5D-51-BA-07
DNS Servers . . . . . . . . . . . : 1.1.1.1
1.0.0.1
2605:59c1:2653:####:5a50
NetBIOS over Tcpip. . . . . . . . : Enabled

GET-NETIPINTERFACE
ifIndex InterfaceAlias AddressFamily NlMtu(Bytes) InterfaceMetric Dhcp ConnectionState PolicyStore
14 Main Ethernet IPv6 1500 20 Enabled Connected ActiveStore
3 Panels Ethernet IPv6 1500 25 Enabled Connected ActiveStore
10 Cameras Ethernet IPv6 1500 25 Enabled Connected ActiveStore
1 Loopback Pseudo-Interface 1 IPv6 4294967295 75 Disabled Connected ActiveStore
14 Main Ethernet IPv4 1500 20 Disabled Connected ActiveStore
3 Panels Ethernet IPv4 1500 25 Disabled Connected ActiveStore
10 Cameras Ethernet IPv4 1500 25 Disabled Connected ActiveStore
1 Loopback Pseudo-Interface 1 IPv4 4294967295 75 Disabled Connected ActiveStore

GET-NETADAPTERBINDING -displayname 6
Name DisplayName ComponentID Enabled


Main Ethernet Internet Protocol Version 6 (TCP/IPv6) ms_tcpip6 True
Cameras Ethernet Internet Protocol Version 6 (TCP/IPv6) ms_tcpip6 True
Panels Ethernet Internet Protocol Version 6 (TCP/IPv6) ms_tcpip6 True

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,205 questions
Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,560 questions
0 comments No comments
{count} votes

Accepted answer
  1. Al Lehmann 96 Reputation points
    2021-10-06T23:25:42.873+00:00

    I've tracked down the solution!

    It turns out the Hyper-V virtual switch defaults the connection profile to 'Public'

    This needs to be set to private:
    PS>> set-NetConnectionProfile -InterfaceIndex <n> -NetworkCategory Private

    At this point you can no longer access the VM's from the management PC Hyper-V Manager!
    Rebooting the PC and then reconnecting Hyper-V Manager to the Hyper-V server solves this problem.
    Once that is done, each VM needs to be rebooted.

    Now all my VM's can access both internal and external IPV6 internet sites using ipv6 i.e. try IPV6-TEST.COM

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Limitless Technology 39,391 Reputation points
    2021-10-06T18:34:13.753+00:00

    Hello @Al Lehmann

    IPv6 functionality can be configured by modifying the following registry key:

    Location : HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters\
    Name : DisabledComponents
    Type : REG_DWORD
    Minimum value: 0x00 (default value)
    Maximum value: 0xFF (IPv6 disabled)

    See the article below on how to configure IPv6 on Windows for advanced users:

    https://learn.microsoft.com/en-us/troubleshoot/windows-server/networking/configure-ipv6-in-windows

    And also this topic that will deal with failure between Hyper-V and IPv6, which cannot work together, I believe will be useful for you:

    https://social.technet.microsoft.com/Forums/windows/en-US/8505bc98-d28c-4ed9-95c8-4b7fde0a6932/hyperv-ipv6-not-functioning-together?forum=winserverhyperv

    --------
    --If the reply is helpful, please Upvote and Accept as answer--

    1 person found this answer helpful.