Propagated Gateway Routes

Steven J. Williams 25 Reputation points
2023-05-10T17:48:08.3933333+00:00

When selecting to enable of propagated routes for a route table, does this override all UDRs in the route table? I am trying to override the default route but its always selected as None when I try to forward it to another destination.

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.
2,764 questions
{count} votes

2 answers

Sort by: Most helpful
  1. msrini-MSFT 9,291 Reputation points Microsoft Employee
    2023-05-10T18:04:22.0433333+00:00

    Hi ,

    When you select NO to the Propagate gateway routes, then routes which are learnt by the Azure from On-Prem via BGP will discarded.

    Regarding the routing precedence, UDR always takes the maximum presidence.

    Regards,

    Karthik Srinivas

    1 person found this answer helpful.
    0 comments No comments

  2. ChaitanyaNaykodi-MSFT 27,476 Reputation points Microsoft Employee Moderator
    2023-05-23T22:25:23.2633333+00:00

    @Steven J. Williams

    Based on your questions above.

    When selecting to enable of propagated routes for a route table, does this override all UDRs in the route table?

    This will depend as Azure selects a route based on the destination IP address, using the longest prefix match algorithm. So, in the case above if the propagated route is more specific then it will be selected instead of the UDR.

    When you exchange routes with Azure using BGP, a separate route is added to the route table of all subnets in a virtual network for each advertised prefix. The route is added with Virtual network gateway listed as the source and next hop type.

    If multiple routes contain the same address prefix, Azure selects the route type, based on the following priority:

    1. User-defined route
    2. BGP route
    3. System route

    This is currently documented here.

    I am trying to override the default route but its always selected as None when I try to forward it to another destination.

    In this case you can create a UDR route with the same prefix to override the default route.

    Hope this helps! Please let me know if you have any additional questions.


    ​​Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    0 comments No comments

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.