07-20-2009 11:21 AM - edited 03-04-2019 05:29 AM
I'm trying to determine the best way to prefer 1 default route over the other. I have a dozen or so remote sites and all of them need to prefer the same default route except for 1 location. I've prepended my AS to the less desirable default route and all works as expected, but 1 of the sites needs to use the default route from the less desirable location. I'm advertising communities at all locations so what i tried is to match these communities and set local preference and weight but it still prefers the shorter AS path. I'm just looking for some ideas on how to do this outside of blocking the default locally i don't want to use.
Thanks in advance.
07-20-2009 11:30 AM
use the path w/ the highest local perferences for all other route and then create a ACL for the one you don't want to follow that choosen path on the router
Hope this helps
07-20-2009 03:23 PM
if i were to do that i would have to touch every router. i want to prepend so the default goes through 1 location and just make an exception for this one site. Is there a reason matching communities and setting the local preference higher for this one site wouldn't work because it still selects the shortest as-path?
07-20-2009 04:35 PM
i think Darren's is such that:
- all remote site learn default route originating from 2 AS or 1 AS.
- a particular remote site wants to prefer default route originate with the longer AS-PATH.
can you confirm this is the scenario, and how many AS is originating the default route?
07-20-2009 11:58 PM
Hello Darren,
you should set rise the local-preference or weight with a route-map applied inbound on the single remote site that has to use the default route with the longer AS path.
neigh x route-map rise_locpref in
also you need to select the BGP next-hop of the path you want to prefer
access-list 11 permit host
ip prefix-list only-default permit 0.0.0.0/0
route-map rise_locpref permit 10
match ip prefix-list only-default
match ip next-hop 11
set local-preference 200
Then you may need to clear the ip bgp session (use soft option) to see the effect
Hope to help
Giuseppe
07-21-2009 06:53 AM
Hi Giuseppe. Thanks for the information.
Everything you said is pretty much what i'm doing but i'm unable to match next-hop because both default routes are coming from the same PE which has the same next-hop. I think thats why i'm running into the problem. See the attached diagram of the layout. RE is the remote site and HK & SiteA are the locations originating the default route. I'm prepending from SiteA so no site prefer it except RE.
07-21-2009 08:28 AM
Hello Darren,
>> because both default routes are coming from the same PE which has the same next-hop. I think thats why i'm running into the problem.
In this case RE will receive a single default route the best path from the point of view of PE node.
You need to move routing policy to PE node but I'm not sure this is easy to do.
Edit:
you need to have two different RDs to have both advertised to PE node but when PE node prepares updates for the CE node RE if there is an eBGP session in VRF it will send out a single message.
Only if the vpnv4 routes arrive on RE you can make a choice on this node.
Hope to help
Giuseppe
07-22-2009 07:03 AM
Hi Giuseppe,
I'll go back to my MPLS provider and see what they can do.
Thanks again for your help!
07-22-2009 03:35 PM
if this becomes hard for your provider, there's always option to use gre tunnel.
since there is only one remote site require this special case for default route only it wouldn't be hard to manage.
07-23-2009 03:29 PM
We are also testing that as well. We anticipate more site similar and i'm sure our provider can prefer 1 default over the other, so i'll see what they come back with.
Thanks for everyones help!
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