|
| 1 | +--- |
| 2 | +title: Add a dual-stack network to an existing virtual machine - Azure portal |
| 3 | +titleSuffix: Azure Virtual Network |
| 4 | +description: Learn how to add a dual stack network to an existing virtual machine using the Azure portal. |
| 5 | +author: asudbring |
| 6 | +ms.author: allensu |
| 7 | +ms.service: virtual-network |
| 8 | +ms.subservice: ip-services |
| 9 | +ms.topic: how-to |
| 10 | +ms.date: 08/19/2022 |
| 11 | +ms.custom: template-how-to |
| 12 | +--- |
| 13 | + |
| 14 | +# Add a dual-stack network to an existing virtual machine using the Azure portal |
| 15 | + |
| 16 | +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. |
| 17 | + |
| 18 | +## Prerequisites |
| 19 | + |
| 20 | +- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F). |
| 21 | + |
| 22 | +- 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](/azure/virtual-machines/linux/quick-create-portal). |
| 23 | + |
| 24 | + - The example virtual network used in this article is named **myVNet**. Replace this value with the name of your virtual network. |
| 25 | + |
| 26 | + - The example virtual machine used in this article is named **myVM**. Replace this value with the name of your virtual machine. |
| 27 | + |
| 28 | + - The example public IP address used in this article is named **myPublicIP**. Replace this value with the name of your public IP address. |
| 29 | + |
| 30 | +## Add IPv6 to virtual network |
| 31 | + |
| 32 | +In this section, you'll add an IPv6 address space and subnet to your existing virtual network. |
| 33 | + |
| 34 | +1. Sign in to the [Azure portal](https://portal.azure.com). |
| 35 | + |
| 36 | +2. In the search box at the top of the portal, enter **Virtual network**. Select **Virtual networks** in the search results. |
| 37 | + |
| 38 | +3. Select **myVNet** in **Virtual networks**. |
| 39 | + |
| 40 | +4. Select **Address space** in **Settings**. |
| 41 | + |
| 42 | +5. Select the box **Add additional address range**. Enter **2404:f800:8000:122::/63**. |
| 43 | + |
| 44 | +6. Select **Save**. |
| 45 | + |
| 46 | +7. Select **Subnets** in **Settings**. |
| 47 | + |
| 48 | +8. In **Subnets**, select your subnet name from the list. In this example, the subnet name is **default**. |
| 49 | + |
| 50 | +9. In the subnet configuration, select the box **Add IPv6 address space**. |
| 51 | + |
| 52 | +10. In **IPv6 address space**, enter **2404:f800:8000:122::/64**. |
| 53 | + |
| 54 | +11. Select **Save**. |
| 55 | + |
| 56 | +## Create IPv6 public IP address |
| 57 | + |
| 58 | +In this section, you'll create a IPv6 public IP address for the virtual machine. |
| 59 | + |
| 60 | +1. In the search box at the top of the portal, enter **Public IP address**. Select **Public IP addresses** in the search results. |
| 61 | + |
| 62 | +2. Select **+ Create**. |
| 63 | + |
| 64 | +3. Enter or select the following information in **Create public IP address**. |
| 65 | + |
| 66 | + | Setting | Value | |
| 67 | + | ------- | ----- | |
| 68 | + | IP version | Select IPv6. | |
| 69 | + | SKU | Select **Standard**. | |
| 70 | + | **IPv6 IP Address Configuration** | | |
| 71 | + | Name | Enter **myPublicIP-IPv6**. | |
| 72 | + | Idle timeout (minutes) | Leave the default of **4**. | |
| 73 | + | Subscription | Select your subscription. | |
| 74 | + | Resource group | Select your resource group. In this example, the resource group is named **myResourceGroup**. | |
| 75 | + | Location | Select your location. In this example, the location is **East US 2**. | |
| 76 | + | Availability zone | Select **Zone-redundant**. | |
| 77 | + |
| 78 | +4. Select **Create**. |
| 79 | + |
| 80 | +## Add IPv6 configuration to virtual machine |
| 81 | + |
| 82 | +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. |
| 83 | + |
| 84 | +1. In the search box at the top of the portal, enter **Virtual machine**. Select **Virtual machines** in the search results. |
| 85 | + |
| 86 | +2. Select **myVM** or your existing virtual machine name. |
| 87 | + |
| 88 | +3. Stop **myVM**. |
| 89 | + |
| 90 | +4. Select **Networking** in **Settings**. |
| 91 | + |
| 92 | +5. Select your network interface name next to **Network Interface:**. In this example, the network interface is named **myvm404**. |
| 93 | + |
| 94 | +6. Select **IP configurations** in **Settings** of the network interface. |
| 95 | + |
| 96 | +7. In **IP configurations**, select **+ Add**. |
| 97 | + |
| 98 | +8. Enter or select the following information in **Add IP configuration**. |
| 99 | + |
| 100 | + | Setting | Value | |
| 101 | + | ------- | ----- | |
| 102 | + | Name | Enter **Ipv6config**. | |
| 103 | + | IP version | Select **IPv6**. | |
| 104 | + | **Private IP address settings** | | |
| 105 | + | Allocation | Leave the default of **Dynamic**. | |
| 106 | + | Public IP address | Select **Associate**. | |
| 107 | + | Public IP address | Select **myPublic-IPv6**. | |
| 108 | + |
| 109 | +9. Select **OK**. |
| 110 | + |
| 111 | +10. Start **myVM**. |
| 112 | + |
| 113 | +## Next steps |
| 114 | + |
| 115 | +In this article, you learned how to add a dual stack IP configuration to an existing virtual network and virtual machine. |
| 116 | + |
| 117 | +For more information about IPv6 and IP addresses in Azure, see: |
| 118 | + |
| 119 | +- [Overview of IPv6 for Azure Virtual Network.](ipv6-overview.md) |
| 120 | + |
| 121 | +- [What is Azure Virtual Network IP Services?](ip-services-overview.md) |
0 commit comments