08-06-2023 11:25 PM - last edited on 10-17-2023 03:57 AM by Translator
Hi,
I have 2 sites running eBGP on the same ASN peering with same ISP but at different locations. I use communities to prefer a prefix on each router.
R1 and R2 are connected together with iBGP and exchange full-view. R1 and R2 are the same local-preference.
I get a metric from the BGP neighbors of the ISP...I would like to be able to remove this metric so that it is 0.
What do you recommend ? set metric 0 in
route-map
in with match ASN of ISP ?
Thanks !
Solved! Go to Solution.
08-09-2023 11:57 PM - last edited on 10-17-2023 05:17 AM by Translator
No it's not mandatory. Just as a precaution if the
route-map
is used later when adding another ISP...
08-10-2023 12:06 AM
OK @sebastien3!
08-10-2023 12:32 AM - last edited on 10-17-2023 05:24 AM by Translator
Hello
You can negate the med calculation by using a different BGP attribute.
Example 1
for egress traffic = Give RTR1 a higher Local-preference than RTR2
for ingress traffic = Advertise a longer as-path sequence from RTR2 towards its ebgp peering's
Or
for ingress traffic = If applicable to do - Advertise a summary route for your local networks from both RTR1 & RTR2 towards their ebgp peers and then advertise more specific routes( no longer then /24) from the rtr you wish return traffic for that prefix should take ------(this is more elegant solution I think)
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide