Lets say I have two routers: R1 and R2. Each of them is connected to each other with an iBGP relationship in AS 50.
R1 connects to ISP1 in AS 10 via eBGP
R2 connects to ISP2 in AS 20 via eBGP
This is a Single Multihomed setup.
Both R1 and R2 recieved a route for public network A via eBGP from their respecitve ISP Router.
The AS Path and Origin from each ISP is the same. All the defaults are the same.
This is very similar to a setup I currently have in GNS3. I am finding that the LOCAL_PREF is the deciding factor (I think).
When R1 gets its route for network A it gives it to R2 and says " this is my best path to A and has LOCAL_PREF of 100 (default)"
R2 looks at where it is getting its routes from. It has two paths:
1. Through R1
2. Through ISP2
R1 has LOCAL_PREF of 100
ISP2 has LOCAL_PREF of <blank> (in show ip bgp table)
In my GNS3 lab R2 is chosing the link via R1 because of the LOCAL_PREF. If I use a route-map and set an inbound filter for everything from ISP2 to have a LOCAL_PREF of 100, the competing routes now draw on LOCAL_PREF and the deciding step then becomes Neighbor Type (eBGP via ISP2 is preferred over iBGP through R1).
At least I THINK this is what is happening. But my questions are as follows:
> Why does the same thing not happen to R1 (i.e. why doesn't R1 see R2's route with a LOCAL_PREF of 100 and prefer the link over R2 as opposed the ISP1. My first thought was "because R2 will only advertise its BEST route to R1 which it has already decided on being the route through R1. Becasue BGP will not advertise a route back the supplying router, it sends nothing". But then why does it happen in one particular direction (from R1 to R2) and not the other? Maybe the route age? But if I reset R1s BGP neighborships (thus making its routes the NEWER routes) nothing changes.
> In any given scenario, if a router receives two routes, one from iBGP and one from eBGP, the iBGP will have LOCAL_PREF 100 by default and eBGP will have no LOCAL_PREF (at least the column in the show ip bgp output is blank ... is this zero?). Does this mean it will always prefer iBGP routes over eBGP routes simply because the LOCAL_PREF comes before the Neighbor Type when looking at characteristics for choosing the best BGP route?
I hope these questions are clear enough. I have copied my network diagram below. A lot of it is redundant to this question but shows my basic setup. I am more than happy to copy and paste any output requested.
Thanks. Your response has guided me to the answer. No local pref mean the default local pref. I had set the local pref default to 94 on R2. It wasnt showing in the show ip bgp output. I should have used the show ip bgp x.x.x.x command.
This is actually a pretty cool feature, i didn't even know it existed until I was looking for a solution to advertise a subnet (prefix in BGP talk), only if a certain condition existed. This is exactly what conditional advertisements does
j ai une question j ai achete un routeur cisco 887VA-k9 , je le configuré avec la configuration ci- dessous
si je le lier avec mon pc portable sur l un de ses ports directement ça marche toute est bien ( la connexion internet + m...
Attached policy provides CLI access to the Cisco 4G router over text messaging. Two files are in the attached .tar file:
2. PDF with instructions on how to load and use the .tcl file.