Azure Virtual Network Gateway learned routes

Peter Stieber 180 Reputation points
2025-08-12T11:59:57.4933333+00:00

On VirtualNetworkGateway (type VPN) I am learning the prefix from 2 sources - from another VPN gateway (eBGP) and from VirtualNetworkGateway - type ExpressRoute (iBGP). Transit between both gateways is enabled. Which route is preferred ?

    [
      {
        localAddress: '10.3.160.79',
        network: '10.3.4.0/24',
        nextHop: '10.3.5.62',
        sourcePeer: '10.3.5.62',
        origin: 'EBgp',
        asPath: '64550-64540',
        weight: 32768,
      },
      {
        localAddress: '10.3.160.79',
        network: '10.3.4.0/24',
        nextHop: '10.3.160.78',
        sourcePeer: '10.3.160.133',
        origin: 'IBgp',
        asPath: '64550-64540',
        weight: 32768,
      }]
Azure VPN Gateway
Azure VPN Gateway
An Azure service that enables the connection of on-premises networks to Azure through site-to-site virtual private networks.
{count} votes

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.