12-13-2019 10:16 PM - edited 12-15-2019 07:22 PM
if tow routers advertise the same prefix to each other, which router is selected to advertise first ?
Router1 and Router2 advertise 192.168.1.0/24 to each other, which one will advertise it? Can I control it ?
thanks !!
Sorry I did not describe the issue clearly. This is the diagram for my question. R1 and R2 both receive default route from the ISP, then they advertise to each other. When R1 receives default from R2, it does not advertise default route back R2, when R2 receive default route, it does not advertise it to R1.
what I need to achieve is either server-1 or server-2 can go to internet when either ISP connectivity is lost.
My question is how I can control R1 always advertise default route first. right now both of them randomly take turns.
thanks !!
Anyone can help me on this ? appreciate it !!
Solved! Go to Solution.
12-16-2019 12:08 AM - edited 12-16-2019 12:13 AM
Hello
Now you have posted the diagram and elaborated it has now cleared some query’s so by default and if both rtrs are peering to each isp as ebgp peers them each rtr will receive and prefer their own directly connected default route but you can manipulate this by applying a default local preference to the rtr you want to be the preferred default for the whole site
Example:
R1-R2 have an ibgp peering between each other and an ebgp peering to their respective isp
R1 < facing ISP1
router bgp xx
bgp default local-preference 20000
12-14-2019 12:45 AM - edited 12-14-2019 12:46 AM
you need to look which one takes the best path to go out (if this in a different topic) is important here, that is your decision to send the traffic out with your Traffic engineering, BGP have many attributes to use - whichever works for you.
here is one good example to use it :
12-14-2019 01:30 AM
Hello,
what are you trying to accomplish ? If both BGP neighbors advertise the exact same network to each other, these networks will never make it into each other routing tables anyway, since they are directly connected already. The only way to override a connected network is by having a more specific route in the routing table...
12-14-2019 04:57 AM
Hello
Depends on the origin of that subnet in the first place, if they’re directly connected on of the rtr themselves then they’ll prefer their own connected routes, however if they are being re-advertised to each from another source then the bgp selection process will take precedence
12-15-2019 08:06 PM
Is it eBGP between R1 and R2?
Thanks.
12-16-2019 01:18 AM
Hello
I would have assumed an ibgp peering between those two rtrs ? Or is this two totally independent sites or just and lab senario?
12-16-2019 07:41 AM
12-16-2019 07:40 AM
12-16-2019 12:08 AM - edited 12-16-2019 12:13 AM
Hello
Now you have posted the diagram and elaborated it has now cleared some query’s so by default and if both rtrs are peering to each isp as ebgp peers them each rtr will receive and prefer their own directly connected default route but you can manipulate this by applying a default local preference to the rtr you want to be the preferred default for the whole site
Example:
R1-R2 have an ibgp peering between each other and an ebgp peering to their respective isp
R1 < facing ISP1
router bgp xx
bgp default local-preference 20000
12-16-2019 07:42 AM
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