VM IPv6 is associated but not routable

Daniel Hellstern 21 Reputation points
2021-07-10T21:50:48.46+00:00

Hi, I've been trying to set up IPv6 for an existing B1ms virtual machine running Ubuntu Server 20.04, with no success. In its current state, I have a NIC with a primary IPv4 address (public and private), plus a secondary IPv6 address (again, both public and private). As is required, this is connected to my VNet which has a ULA address space configured. The VM shows the ULA address in ip addr, and I've confirmed ip -6 route has a default route to the link-local address of the gateway. IPv4 works perfectly. However, IPv6 is not being properly routed to and from the VM. From the VM, I can ping the link-local address of the gateway, but no public IPv6 addresses. Outside the VM, I cannot ping the VM's address.

From my attempts to fix the issue, I believe it is on the Azure networking side, rather than the VM, but I'm not quite sure where. I took a packet capture (both from the portal and from inside the VM), which showed that the only IPv6 traffic on the NIC is RAs from the VNet gateway. I also enabled NSG flow logs, and looking through them I don't even see a single IPv6 address, so I suspect the traffic isn't even reaching the NSG. I even tried detaching the NSG to see if it was blocking v6 traffic, but that didn't change anything. I've also tried using some of the connection testing tools, though several don't appear to be compatible with IPv6, and the results included a socket opening error and being stopped by the NSG (triggering DefaultRule_DenyAllOutBound). However, as mentioned, detaching the NSG did not fix this issue. In addition, the effective security rules section shows the IPv6 prefix ::/0 on all relevant rules, so it's not like the NSG doesn't understand IPv6.

My issue is almost word-for-word what is in this ServerFault comment. However, my configuration practically matches that of the screenshots in the answer, and I've followed the suggestions in the comments, but it still does not work.

I should also mention I have Wireguard running as a client on the VM, and it has some ULA address space configured as routable. However, this space does not conflict at all with the VNet, and I have no reason to suspect it is the issue.

Thanks!

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,172 questions
Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,167 questions
{count} votes

Accepted answer
  1. GitaraniSharma-MSFT 47,686 Reputation points Microsoft Employee
    2021-07-27T19:40:08.757+00:00

    Hello @Daniel Hellstern ,

    ICMPv6 to/from an Azure VM does not currently work & isn't supported.

    So, I suggest you to use "telnet" or "tcp ping" or any other TCP based tool to check the IPv6 connectivity to/from your VM.

    If you wish you may leave your feedback here requesting this feature. All the feedback you share in these forums will be monitored and reviewed by the Microsoft engineering teams responsible for building Azure.

    Kindly let us know if the above helps or you need further assistance on this issue.

    ----------------------------------------------------------------------------------------------------------------

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    0 comments No comments

0 additional answers

Sort by: Most helpful