IPv6-only VNet peering, now in public preview in all Azure public regions, lets you peer two dual-stack virtual networks using only their IPv6 address spaces. Only IPv6 routes are exchanged, and IPv4 ranges are left out of overlap validation, so VNets with overlapping IPv4 ranges can still connect, as long as their IPv6 ranges are unique.
By Amit Pallab Mishra (Senior Product Manager, Azure Networking)
Introduction
Virtual network peering is one of the simplest ways to connect workloads in Azure. Traffic stays on the Microsoft backbone, latency is low, and you don’t need gateways. However, standard peering has one firm rule: the address spaces of the two VNets can’t overlap.
For many organizations, that rule causes problems. RFC1918 IPv4 ranges are limited, and over the years teams have reused the same ranges across regions, business units, and acquired environments. When two of these VNets need to talk to each other, standard peering won’t connect them.
IPv6-only VNet peering gives you another option. If your VNets are dual-stack and have unique IPv6 ranges, you can now peer them over IPv6, even when their IPv4 ranges overlap.
What problems does it solve?
Common use cases
- Reused regional IPv4 ranges: Two regional VNets use the same IPv4 range but have unique IPv6 ranges. They can communicate over IPv6 without renumbering their IPv4 addresses.
- Mergers and acquisitions: You can connect environments that were built independently with overlapping IPv4 address plans.
- Moving to IPv6 in steps: You can start using IPv6 for connections between VNets without first redesigning every IPv4 dependency.
Customer pain points it addresses
|
Pain point |
Without IPv6-only peering |
With IPv6-only peering |
|
Overlapping IPv4 address spaces |
Peering fails because the address spaces overlap |
IPv4 is skipped during validation, so peering succeeds over IPv6 |
|
Renumbering IPv4 |
Costly and risky, and it can disrupt applications |
Not required. Existing IPv4 addressing stays as it is |
|
IPv4 exhaustion |
Teams compete for a limited pool of RFC1918 space |
Unique IPv6 prefixes provide the routable path |
|
Complex workarounds |
Extra components such as NAT or proxies |
A single setting on the peering |
What is IPv6-only VNet peering?
IPv6-only peering connects two dual-stack VNets but exchanges only their IPv6 address spaces. IPv4 address spaces are excluded from both overlap validation and routing.
It helps to compare it with standard peering:
- Standard peering between dual-stack VNets exchanges both IPv4 and IPv6 routes. If either address family overlaps, the peering fails.
- IPv6-only peering stops IPv4 routes from being exchanged. Overlapping IPv4 ranges are ignored, but overlapping IPv6 ranges still block the peering.
Requirements at a glance
- Both VNets must have at least one IPv6 address prefix.
- The IPv6 address spaces must not overlap. The IPv4 spaces can overlap.
- Both directions of the peering must use the same mode.
- You must register the preview feature in each subscription that contains a participating VNet.
Configure IPv6-only peering with the Azure CLI
Step 1: Register the preview feature (once per subscription)
az account set --subscription "<subscription-id>"
az feature register \
--namespace Microsoft.Network \
--name AllowVnetIPv6OnlyPeering
az provider register --namespace Microsoft.Network
# Check the registration state
az feature show \
--namespace Microsoft.Network \
--name AllowVnetIPv6OnlyPeering \
--query properties.state \
--output tsv
|
State |
Meaning |
|
Registering |
Still in progress. Wait and check again. |
|
Registered |
Ready to use |
|
NotRegistered |
Run the register command |
If the VNets are in different subscriptions, register the feature in each one.
Step 2: Get the VNet IDs
subscriptionId="<subscription-id>"
resourceGroupName="rg-ipv6-peering-demo"
vnet1Name="VNet1"
vnet2Name="VNet2"
vnet1Id=$(az network vnet show --subscription "$subscriptionId" \
--resource-group "$resourceGroupName" --name "$vnet1Name" --query id -o tsv)
vnet2Id=$(az network vnet show --subscription "$subscriptionId" \
--resource-group "$resourceGroupName" --name "$vnet2Name" --query id -o tsv)
Step 3: Create the peering in both directions
# VNet1 -> VNet2
az network vnet peering create \
--subscription "$subscriptionId" \
--name "VNet1-to-VNet2" \
--resource-group "$resourceGroupName" \
--vnet-name "$vnet1Name" \
--remote-vnet "$vnet2Id" \
--enable-only-ipv6 true \
--allow-vnet-access true
# VNet2 -> VNet1
az network vnet peering create \
--subscription "$subscriptionId" \
--name "VNet2-to-VNet1" \
--resource-group "$resourceGroupName" \
--vnet-name "$vnet2Name" \
--remote-vnet "$vnet1Id" \
--enable-only-ipv6 true \
--allow-vnet-access true
The --enable-only-ipv6 true flag is what makes the peering IPv6-only. If you leave it out, or set it to false, Azure creates a standard peering.
Tip: The feature is also available in the Azure portal and through PowerShell (Add-AzVirtualNetworkPeering -EnableOnlyIPv6Peering $true).
Step 4: Validate the peering
Check that both directions show the expected state:
az network vnet peering show \
--subscription "$subscriptionId" \
--resource-group "$resourceGroupName" \
--vnet-name "$vnet1Name" \
--name "VNet1-to-VNet2" \
--query "{peeringState:peeringState, enableOnlyIpv6:enableOnlyIpv6}" \
--output table
Both peerings should report Connected with enableOnlyIpv6 set to true. Next, test connectivity from a VM in one VNet to a VM in the other:
Test-NetConnection fd00:db8:1:1::4 -Port 3389 # IPv6: expected to succeed
Test-NetConnection 10.1.1.4 -Port 3389 # IPv4: not peered
Note: Don’t rely on ping for this test. Windows can block ICMPv6 echo requests by default. Use a TCP port that you know is listening. Also keep in mind that when IPv4 ranges overlap, an IPv4 test might reach a local resource instead of the remote one.
Error scenarios and codes
|
Error code |
When you’ll see it |
How to fix it |
|
VNetDoesNotHaveIPv6AddressPrefix |
One of the VNets has no IPv6 prefix |
Add a valid IPv6 prefix to both VNets, then retry |
|
EnableOnlyIPv6PeeringFlagMismatch |
The two directions use different modes. A missing value is treated as false |
Configure both directions with --enable-only-ipv6 true |
|
ChangingIPv6OnlyFlagNotAllowed |
You tried to switch an existing peering between standard and IPv6-only |
The mode can’t be changed after creation. Delete both directions and recreate them |
|
VnetAddressSpacesOverlap |
You tried a standard peering between VNets with overlapping address spaces |
Use IPv6-only peering if the IPv6 ranges are unique, or fix the overlap |
Example: trying to change the mode after creation
az network vnet peering update \
--resource-group "$resourceGroupName" \
--vnet-name "$vnet1Name" \
--name "VNet1-to-VNet2" \
--set enableOnlyIpv6=false
# Fails with ChangingIPv6OnlyFlagNotAllowed:
# delete and recreate the peering to modify this setting.
Preview limitations
- Gateway, Virtual WAN, and Route Server: IPv6-only peering doesn’t currently support connectivity through VPN Gateway, Azure Virtual WAN, or Azure Route Server.
- Mode can’t be changed: You can’t switch an existing peering between standard and IPv6-only. You must delete and recreate it.
- Matching modes: Both directions must use the same setting.
Clean up
az network vnet peering delete --subscription "$subscriptionId" \
--resource-group "$resourceGroupName" --vnet-name "$vnet1Name" --name "VNet1-to-VNet2"
az network vnet peering delete --subscription "$subscriptionId" \
--resource-group "$resourceGroupName" --vnet-name "$vnet2Name" --name "VNet2-to-VNet1"
Wrapping up
IPv6-only VNet peering lets you connect VNets whose IPv4 ranges overlap without renumbering anything. It also gives you a practical way to start using IPv6 between VNets. Try it in public preview today!
For full details, see Configure IPv6-only virtual network peering.
Published Dec 04, 2026
Version 1.0amitmishra
Microsoft
Joined November 19, 2024
Azure Networking Blog
Follow this blog board to get notified when there's new activity