cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3062
Views
5
Helpful
5
Replies

2 ISPs Redundancy with BGP priority

sharanb4u
Level 1
Level 1

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) 

5 Replies 5

Mark Malone
VIP Alumni
VIP Alumni
Hi
this guide shows you how to do it with examples configs

see sections
Load Sharing When Multihomed to Two ISPs Through a Single Local Router
Load Sharing When Multihomed to Two ISPs Through Multiple Local Routers

https://www.cisco.com/c/en/us/support/docs/ip/border-gateway-protocol-bgp/13762-40.html

Rafael Carvallo
Spotlight
Spotlight

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

 

 

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)

Please remember to rate useful posts, by clicking on the stars below.

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)

Please remember to rate useful posts, by clicking on the stars below.

Hello,

 

I am thinking the easiest way to accomplish this is with an EEM script and an IP SLA, can you try that ?