cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1637
Views
40
Helpful
22
Replies

Using two ISP Internet on router to achieve load sharing and failover

isaiahchikuse
Level 1
Level 1

I have one connection on BGP and other on static


How can i go about it to achieve load balance and failover with BGP and Static connections
can you share how i can achieve this?
.

Thanks

22 Replies 22

". . . actual experience does trump possible ambiguity in documentation."

Indeed it might.  Although, it might also indicate an error in the documentation or the particular platform/IOS being used for the test.

" But pending config details . . ."

Seeing the configs will be helpful too, for example, shouldn't matter (?) but we were discussing the static and BGP being default routes and this result was for 1.1.1.1/32.

hostname R1

interface FastEthernet0/0
 ip address 100.0.0.1 255.255.255.0
 duplex full
!
interface FastEthernet1/1
 ip address 110.0.0.1 255.255.255.0
 speed auto
 duplex auto
!
router bgp 100
 bgp log-neighbor-changes
 neighbor 100.0.0.2 remote-as 200
!
ip route 1.1.1.1 255.255.255.255 110.0.0.3 20


hostname R2
!
interface FastEthernet1/1
 ip address 110.0.0.3 255.255.255.0
 speed auto
 duplex auto


hostname R3

interface FastEthernet0/0
 ip address 100.0.0.2 255.255.255.0
 duplex full
!
router bgp 200
 bgp log-neighbor-changes
 network 1.1.1.1 mask 255.255.255.255
 neighbor 100.0.0.1 remote-as 100
!
ip route 1.1.1.1 255.255.255.255 Null0
 

the topology seen above. 
@Joseph W. Doherty  this config I use to test BGP + static failover 

@MHM Cisco World - Thanks!!!

No glaring issues in those configs, beyond you're not using default routes, which again, don't believe it should matter.

Digging into this further, all mention of using a static with BGP and any static (overlapping) route with the default cost of 1 will cause a rib-failure, just as you show.  Have not found anyone mentioning setting AD equal to BGP's AD.

Could you please try:

Set static's AD to 21.  Would expect BGP route to be in route table.

Add "maximum-path 2" and "bgp bestpath as-path multipath-relax" to R1's "router bgp 100".

Try static route, again, with cost of 20.

If the forgoing doesn't work, possibly the approach of using a BGP network statement, on R1, to inject the static route into R1's BGP, would do the trick?  (Sure wish I had the capacity to lab this.)

you are welcome any time, I will do change you want and update you. 

maximum-path 2 <<-  my router image accept this command 

bgp bestpath as-path multipath-relax <<- my router image not accept this command 

"bgp bestpath as-path multipath-relax <<- my router image not accept this command"

I assume you didn't make any typos entering this command?  Reason I ask, it's a secret command, and I recall (?), a typo will reject the command.

If no error entering command, interesting it wouldn't accept it.  What's the platform and IOS?

316137429_508065768037005_5018000902661608244_n.jpgsorry for late reply 
I use GNS3 IOS image 7200. 
for the command 
bgp bestpath as-path multipath-relax 
is use in case you have two ISP and receive same prefix from two ISP, then we want multipath but the multipath need to be path is same, and since we have two different ISP AS we need BGP to skip the compare of AS-PATH for multipath selection. 
here we use this command. 

 

Yes, that's correct, for the "normal" usage of the command.

I suggested adding it as I don't know whether BGP considers the static route another AS.  If it did, it would reject using both routes.

Review Cisco Networking for a $25 gift card