Enable Communication between two Virtual Networks

Manoj Chauhan 20 Reputation points
2025-08-25T14:01:57.07+00:00

Hi Team,

We are planning to have two virtual networks and we need to enable communication between the same. we tried to enable VNET Peering but it is not helping.

Regards.

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.
{count} votes

1 answer

Sort by: Most helpful
  1. Michele Ariis 4,505 Reputation points MVP
    2025-08-25T14:34:39.3166667+00:00

    Hi, quick checklist to make two VNets talk (and why peering “does nothing” when one item is off): 1) No overlapping ranges: confirm the two VNets/subnets don’t overlap (e.g., 10.0.0.0/16 and 10.1.0.0/16). 2) Two peering links, “Connected”: VNetA→VNetB and VNetB→VNetA must both exist; in each link keep Allow virtual network access = On (default). 3) NSGs: on both subnets/NICs allow the needed traffic (e.g., TCP 22/3389/443); outbound is usually allowed, inbound often blocked—fix that or use an ASG rule. 4) UDRs/Firewalls: if you added route tables, make sure there’s no 0.0.0.0/0 (or specific remote VNet prefix) sending traffic to a dead next hop; if using Azure Firewall/NVA, enable IP forwarding on it and add correct UDRs both ways. 5) Windows/Linux host firewall: allow inbound on the ports you test (ICMP ping often fails by design, test with Test-NetConnection <IP> -Port 3389 or nc -zv <IP> 22). 6) DNS: peering doesn’t give name resolution; either use IPs or set a common DNS (Azure DNS Private Resolver, custom DNS, or host files) so vmA.corp.local resolves to the remote VNet’s private IP. 7) Gateway transit (only if needed): if you want VNetB to use VNetA’s VPN/ER gateway, on the peering set Allow gateway transit on the gateway VNet and Use remote gateway on the other; don’t enable “Use remote gateway” on both sides. 8) Effective routes view: on a VM NIC → Effective routes/Effective security rules to see exactly what’s blocking. If you still get nowhere: verify peering status is Connected, try from a fresh test VM in each VNet with no NSG, and you’ll know if the issue is NSG/UDR/DNS, not peering. If you require encryption or have overlapping ranges, skip peering and use VNet-to-VNet VPN instead.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.