Load balancing a BGP default route from 2 different providers / as-path multipath-relax

ASpathrelax
Generally with BGP you do not hear much about load balancing of routes.  Where I work we have some select remote sites with one router and two circuits going to two different service providers.  Within BGP you will not be able to load balance out a default route.  A better metric will occur and a default will be injected into the RIB where the other circuit does nothing but wait until the primary circuit with the better metric goes down.  So instead of adding more bandwidth to save money I went ahead and applied a nifty little trick.  This could have all been accomplished through static routing but who wants to do that.

Looking at the way it was setup before for a default route it through AS 1803 it is best and will be injected in the routing table only towards AS1803.

testrouter#sh ip bgp 0.0.0.0
BGP routing table entry for 0.0.0.0/0, version 6
Paths: (2 available, best #2, table Default-IP-Routing-Table)
Advertised to update-groups:
2
13979 64001, (received & used)
1.1.1.1 from 10.102.97.9 (12.123.67.236)
Origin IGP, localpref 100, valid, external
1803 64001, (received & used)
2.2.2.2from 10.102.97.13 (10.247.23.220)
Origin IGP, localpref 100, valid, external, best
Extended Community: RT:1803:4603

The routing table only showing one route for 0.0.0.0

testrouter#sh ip route 0.0.0.0
Routing entry for 0.0.0.0/0, supernet
Known via “bgp 6550”, distance 20, metric 0, candidate default path
Tag 1803, type external
Redistributing via eigrp 1
Advertised by eigrp 1 metric 2000 2100 255 1 1500
Last update from 10.102.97.13 3w5d ago
Routing Descriptor Blocks:
* 2.2.2.2, from 2.2.2.2, 3w5d ago
Route metric is 0, traffic share count is 1
AS Hops 2
Route tag 1803

Neighbor        V          AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
1.1.1.1     4      13979  156868  153101        6    0    0 3w5d            1
2.2.2.2     4       1803  156770  153099        6    0    0 3w5d            1
How to fix this?  BGP has two routes through its routing table but the second one is never injected into the routing table.  So we go ahead and work some magic to get it into the RIB.

conf t
router bgp 6500
maximum-paths 2
bgp bestpath as-path multipath-relax
end
!
clear ip bgp 2.2.2.2

After

fsp5958route#sh ip route 0.0.0.0
Routing entry for 0.0.0.0/0, supernet
Known via “bgp 6500”, distance 20, metric 0, candidate default path
Tag 1803, type external
Last update from 2.2.2.2 1w6d ago
Routing Descriptor Blocks:
2.2.2.2, from 2.2.2.2, 1w6d ago
Route metric is 0, traffic share count is 1
AS Hops 2
Route tag 1803
* 1.1.1.1, from 1.1.1.1, 1w6d ago
Route metric is 0, traffic share count is 1
AS Hops 2
Route tag 1803

Advertisements
Post a comment or leave a trackback: Trackback URL.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: