Publish 2 Identical Routes with Different Metric
-
Hi,
I have 2 BGP neighbors configured. They have different route maps associated. They're only different in the Weight, Local Pref, and Metric which is set on them.
I use the main BGP settings page to specify the routes I want to publish. I've tried using route map none on the two routes and when I check the status page, the metric sent is picked randomly from one of the neighbor associated route maps.
I've tried adding the routes in twice to BGP settings with different route maps assigned but still only one route with one metric is published to my BGP peers.
How do I publish the same route twice but with a different metric so my peer will prefer one route over the other?
-
@jamiegb
try BGP AS Paths -
@jamiegb
I'm not using FRR, and am a bit rusty in BGP nowadays.
But have done similar things on a Cisco.You could make the backup connection "one hop longer", by prepending your own AS number, before announcing.
https://www.noction.com/blog/as-path-and-as-path-prependingThis might be a tip (I think ...)
https://forum.netgate.com/post/744191Remember BGP is like "The Highlander" ... There can be ONLY ONE (active)
So you might have to dig a bit deeper to see the "Inactive",/Bingo
-
@jamiegb said in Publish 2 Identical Routes with Different Metric:
te twice but with a different metric so my peer will pre
Its common to adjust either local-pref or as-path prepend attributes. In your case, if you want your peer to use one path for a destination vs another then as-path prepend that route out a few times[using your local-as of course].