02-15-2018 12:14 AM - edited 03-05-2019 09:56 AM
Hello All,
We have 2 ISP connections with Public IPs /30 mask,
would like to configure Bgp for redundancy with 1st ISP priority 1000 and 2nd ISP priority 100
Please suggest/Guide on the same, thank you in advance.
Router (ISR 4000 series)
02-15-2018 01:05 AM
02-16-2018 08:26 AM
Hi,
Define priority, is it inbound or outbound or both? with BGP you have to treat Incoming/outgoing traffic as a "virtual circuit" each with its own rules.
Assuming both ISPs are different, then you'd need to:
1.- For outgoing traffic, set a LOCAL_PREFERENCE above 100 for all the routes coming from the ISP you want to be used as main, here if you're receiving more than a default route, I'd suggest you to only get it and not full tables, since all the traffic would anyway reach internet using always the same path unless there's a problem.
2.- For incoming traffic you could use many things each having a different success rate, for instance you could use:
A.- prepending, do take into account that this doesn't work 100% of the time, AS can choose what path to use at will even if you explicitly tell them that's not prefered.
B.- Publish a more specific prefix over main ISP and the aggregate over the secondary ISP, this always work (at least I haven't seen any tricks to bypass it), but this requires you to have at least a /23 to publish, so main ISP would get 2x /24 and secondary would get just the aggregated /23
C.- Use some sort of BGP conditional advertisement so you never broadcast the prefix to ISP2 unless some conditions are met (for instance ISP1 detecting as down), check this https://www.cisco.com/c/en/us/support/docs/ip/border-gateway-protocol-bgp/16137-cond-adv.html as long this is done correctly, should always work since to start with the world wouldn't see you via ISP2
HTH
Please remember to rate useful posts
02-17-2018 04:51 AM
I am looking for a solution that has conditional advertisements where I have 2 routers peering with eachother and each of these routers has a link to a different ISP. I want the secondary router to only advertise its public IP addresses when the primary router looses its connections to its ISP. any thoughts? (pS AS path prepend is not working for this purpose as the ISPs have some sort of preferred path that ignores the prepends)
02-17-2018 04:51 AM
I am looking for a solution that has conditional advertisements where I have 2 routers peering with eachother and each of these routers has a link to a different ISP. I want the secondary router to only advertise its public IP addresses when the primary router looses its connections to its ISP. any thoughts? (pS AS path prepend is not working for this purpose as the ISPs have some sort of preferred path that ignores the prepends)
02-17-2018 07:42 AM
Hello,
I am thinking the easiest way to accomplish this is with an EEM script and an IP SLA, can you try that ?
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