09-19-2007 07:38 AM - edited 03-03-2019 06:49 PM
Location A is connected to Location B,C,D via an MPLS network running BGP
Location A has weighted static routes( metric of 250) for Location B,C,D pointing to a VPN Concentrator for a backup VPN connection.
The static routes are winning selection over the advertised BGP routes.
Why are the statics routes winning over the BGP routes?
09-20-2007 08:03 AM
Ive never set the local-preference to redistributed routes , personally I would apply the local-prefernce to the route when learned from the ebgp neigbhor.
An interesting twist to this scenario is as follows
a) Your router boots up. You have not applied the weighted static yet.
b) the route is learned via ebgp. SInce this is the only source for the prefix , it will be installed in the routing table
c) If you apply the static now, it will not replace the ebgp learned prefix (higher admin distance) and will not be redistributed into bgp. So, your intended outcome works, ie , static kicks in only when bgp route disappears. But, once your static kicks in, the sequence of events that I narrated before will happen and your routing will break.
Just thought to share this with u....
09-20-2007 10:55 AM
That is good to think. I wasn't even thinking about the switching back part.
09-20-2007 11:30 AM
How would you that? Would on set it at remote location?
Location A is HQ with the static routes for VPN backup
Location B is the remote location that is the home of the network (for example,10.10.10.0/24) Would I set the local preference At location B or would I set it when it coming into Location A's router?
I understand the end result but I am not sure how to get there.
09-20-2007 10:39 AM
hello
route-map setpref
set local-preference 90
set weight 0
without setting weight, localpref won't do anything since redistributed routes have by default a weight of 32768 and weight is considered before LOCAL_PREF right? ...
regards
Etienne
09-21-2007 02:11 AM
You would set it at location A. Use the route-map supplied by Etienne during redistribution.
so ure config will be
router bgp 1
redistribute static route-map setpref
or modifications of it.
09-21-2007 03:07 AM
Why not block of redistribution of this static route completely?
Like this:
global:
ip prefix-list blockstatic seq 5 permit 10.7.7.0/24
route-map blockstatic deny 10
match ip address prefix-list blockstatic
route-map blockstatic permit 20
bgp:
redistribute static blockstatic
09-21-2007 03:24 AM
Probably because thomas wants his internal peers to learn the backup route.
09-21-2007 08:09 AM
that is correct. My internal peers need to know the backup route.
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