Add a dual-stack network to an existing virtual machine using the Azure portal
In this article, you'll add IPv6 support to an existing virtual network. You'll configure an existing virtual machine with both IPv4 and IPv6 addresses. When completed, the existing virtual network will support private IPv6 addresses. The existing virtual machine network configuration will contain a public and private IPv4 and IPv6 address.
An Azure account with an active subscription. Create an account for free.
An existing virtual network, public IP address and virtual machine in your subscription that is configured for IPv4 support only. For more information about creating a virtual network, public IP address and a virtual machine, see Quickstart: Create a Linux virtual machine in the Azure portal.
The example virtual network used in this article is named myVNet. Replace this value with the name of your virtual network.
The example virtual machine used in this article is named myVM. Replace this value with the name of your virtual machine.
The example public IP address used in this article is named myPublicIP. Replace this value with the name of your public IP address.
Add IPv6 to virtual network
In this section, you'll add an IPv6 address space and subnet to your existing virtual network.
Sign in to the Azure portal.
In the search box at the top of the portal, enter Virtual network. Select Virtual networks in the search results.
Select myVNet in Virtual networks.
Select Address space in Settings.
Select the box Add additional address range. Enter 2404:f800:8000:122::/63.
Select Subnets in Settings.
In Subnets, select your subnet name from the list. In this example, the subnet name is default.
In the subnet configuration, select the box Add IPv6 address space.
In IPv6 address space, enter 2404:f800:8000:122::/64.
Create IPv6 public IP address
In this section, you'll create a IPv6 public IP address for the virtual machine.
In the search box at the top of the portal, enter Public IP address. Select Public IP addresses in the search results.
Select + Create.
Enter or select the following information in Create public IP address.
Setting Value IP version Select IPv6. SKU Select Standard. IPv6 IP Address Configuration Name Enter myPublicIP-IPv6. Idle timeout (minutes) Leave the default of 4. Subscription Select your subscription. Resource group Select your resource group. In this example, the resource group is named myResourceGroup. Location Select your location. In this example, the location is East US 2. Availability zone Select Zone-redundant.
Add IPv6 configuration to virtual machine
The virtual machine must be stopped to add the IPv6 configuration to the existing virtual machine. You'll stop the virtual machine and add the IPv6 configuration to the existing virtual machine's network interface.
In the search box at the top of the portal, enter Virtual machine. Select Virtual machines in the search results.
Select myVM or your existing virtual machine name.
Select Networking in Settings.
Select your network interface name next to Network Interface:. In this example, the network interface is named myvm404.
Select IP configurations in Settings of the network interface.
In IP configurations, select + Add.
Enter or select the following information in Add IP configuration.
Setting Value Name Enter Ipv6config. IP version Select IPv6. Private IP address settings Allocation Leave the default of Dynamic. Public IP address Select Associate. Public IP address Select myPublic-IPv6.
In this article, you learned how to add a dual stack IP configuration to an existing virtual network and virtual machine.
For more information about IPv6 and IP addresses in Azure, see: