AS-PATH Prepend with Azure Active-Active Tunnels

Hi Team,

I have vyos 1.2.8 and have two ISPs configured on on-prem Vyos. From there I have setup two A/A site2site tunnels with Azure. And this is BGP over IPsec using VTI
On vyos my vtis are 169.254.21.9 & 169.254.21.13
While at Azure end 169.254.21.1 & 169.254.22.1

The subnet for on-prem network is 192.168.40.0/23 while at Azure Vnet is 10.1144.0/22

Now I have been asked by Azure team to add AS-PATH Prepend and I have below questions/confusion.

  • This AS-PATH Prepend is going to be Import or export?
  • I need to keep vti2 as my secondary link hence I am creating a route-map for neighbor 169.254.21.1
  • Or will that be applied to 7.7.7.7?

Can someone please help me on this?

Is this what is needed?

set policy route-map add44Inboundweight rule 10 action permit
set policy route-map add44Inboundweight rule 10 set as-path-prepend '65002 65002'
set protocols bgp 65001 neighbor 10.11.44.20 address-family ipv4-unicast route-map import add44Inboundweight

For import I’m using local-pref, for export as path prepend

Thanks for the reply.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.