Routing Behavior with VNet Peering and Shared ExpressRoute Circuit

Alex H 105 Reputation points
2025-07-24T01:04:27.7433333+00:00

Hi, I have a question regarding routing behavior when two VNets are connected to the same ExpressRoute (ER) circuit, and VNet peering is configured with "Use remote gateway" disabled.

Topology:

VNET1 (10.1.0.0/16)  ---- ER circuit (on-prem 10.3.0.0/16) ---- VNET2 (10.2.0.0/16)

My Understanding:

Without VNet peering:

  • Inter-VNet traffic (e.g. 10.1.0.0/16 to 10.2.0.0/16) is routed via the ER circuit - which is NOT desirable.

With VNet peering enabled and "Use remote gateway" disabled:

  • Inter-VNet traffic should flow directly via VNet peering, not through the ER circuit.
  • Each VNet continues to advertise its own address space to the ER circuit, maintaining direct on-prem connectivity and avoiding asymmetric routing.

If both VNets advertise 0.0.0.0/0 (originating from an NVA behind Route Server via BGP) to the ER circuit, then:

  • The ER circuit receives two 0.0.0.0/0 routes and performs ECMP to both VNets.
  • By assigning a higher weight to the connection to VNet1 (e.g. 50 for VNet1 vs. 0 for VNet2), on-prem Internet-bound traffic will prefer the VNet1 path.

Could you please confirm if this understadning is correct?

Reference from ExpressRoute FAQ:

Can virtual networks linked to the same ExpressRoute circuit talk to each other?

Yes. Virtual machines deployed in virtual networks connected to the same ExpressRoute circuit can communicate with each other. We recommend setting up virtual network peering to facilitate this communication.

 

How are virtual networks advertised on ExpressRoute private peering?

The ExpressRoute gateway advertises one or more Address Space of the Azure virtual network, which you can't include/exclude at the subnet level. It's always the virtual network address space that gets advertised. If virtual network peering is used and the peered virtual network has "Use remote gateway" enabled, the address spaces of the peered virtual network also get advertised.

Azure ExpressRoute
Azure ExpressRoute
An Azure service that provides private connections between Azure datacenters and infrastructure, either on premises or in a colocation environment.
{count} votes

Accepted answer
  1. Praveen Bandaru 6,850 Reputation points Microsoft External Staff Moderator
    2025-07-24T04:10:05.1166667+00:00

    Hello Alex H

    I see you're looking to clarify how routing works between VNets connected to the same ExpressRoute circuit, particularly in relation to VNet peering and remote gateway configurations.Yes, your understanding is absolutely correct.

    • Without VNet peering, traffic between VNET1 and VNET2 would go through the ExpressRoute circuit to on-premises, which isn't ideal because of increased latency and costs. Without VNET peering VNET1 and VNET2 wouldn't communicate.
    • And your understanding of peering is also correct. With peering enabled and the remote gateway disabled, traffic between the VNets travels directly instead of being routed back through the ExpressRoute circuit, resulting in more efficient routing. But you can't communicate with VNET2 from your on-premises.
    • Each VNet uses its own gateway for on-premises connectivity, which helps prevent asymmetric routing and keeps traffic paths straightforward.
    • Regarding address space advertisement, you're spot-on. When each VNet advertises its address space to the ER circuit, it helps avoid routing issues like asymmetric routing. If both VNets advertise default routes to the ER circuit, express rote will receive two 0.0.0.0/0 routes. ECMP will be used unless weights are set.
    • Setting a higher BGP weight for VNET1 will direct on-premises traffic to use VNET1 for Internet bound routes. This approach is a standard and effective design for managing outbound path selection.

    Hope the above answer helps! Please let us know do you have any further queries.

    Please do consider to “up-vote” wherever the information provided helps you, this can be beneficial to other community members

    You found this answer helpful.

0 additional answers

Sort by: Most helpful

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.