Fwd: BGP Load balancing solution with local-as

From: ying chang (ying_c@xxxxxxxxxxx)
Date: Sat Apr 06 2002 - 23:24:13 GMT-3


   
Hi all,

Not sure why I can't see the previous post. Here we go again. Please see
below for a neat way to do BGP load balancing with multiple ebgp peers by
Guy. Hope you can benefit it as I do.

Thanks,
Chang

>From: "Lupi, Guy" <Guy.Lupi@eurekaggn.com>
>To: 'ying chang' <ying_c@hotmail.com>
>Subject: RE: BGP MED - again
>Date: Sat, 6 Apr 2002 19:33:03 -0500
>
>Do me a favor, post it to the group, I can't post right now for some
>reason,
>maybe someone else can benefit from it.
>
>~-----Original Message-----
>~From: ying chang [mailto:ying_c@hotmail.com]
>~Sent: Saturday, April 06, 2002 7:38 PM
>~To: Lupi, Guy
>~Subject: RE: BGP MED - again
>~
>~
>~Hi Guy,
>~
>~Thanks a lot, this is THE answer! I've looked at local-as, but
>~never thought
>~it can be used like this way. This is great!
>~
>~Thanks,
>~Chang
>~
>~
>~>From: "Lupi, Guy" <Guy.Lupi@eurekaggn.com>
>~>To: 'ying chang' <ying_c@hotmail.com>
>~>Subject: RE: BGP MED - again
>~>Date: Sat, 6 Apr 2002 18:59:43 -0500
>~>
>~>Don't know if you ever got my other email then about the load
>~sharing from
>~>different AS's. Here is a workaround, I don't know if it would be
>~>acceptable, but if they don't say you can't do this, this
>~would be one way
>~>to get it working.
>~>
>~>You could use the local as feature on the remote router's neighbor
>~>statements to make the routes appear to come from the same AS
>~on the local
>~>router. As far as I know, the routes must come from the same
>~AS to load
>~>balance. That works, you could also prepend the routes
>~inbound on r5 with
>~>an instance of any AS# which would make it appear to come
>~from the same AS.
>~>Here is the setup and outputs for the local AS setup:
>~>
>~>r1------r5---------r3
>~>
>~>
>~>
>~>
>~>r5#sh ip b
>~>BGP table version is 3, local router ID is 172.16.5.5
>~>Status codes: s suppressed, d damped, h history, * valid, > best, i -
>~>internal
>~>Origin codes: i - IGP, e - EGP, ? - incomplete
>~>
>~> Network Next Hop Metric LocPrf Weight Path
>~>*> 11.11.11.0/24 172.16.7.3 0 0
>~6000 300 i
>~>* 172.16.7.1 0 0 6000 1 i
>~>r5#sh ip route
>~>Codes: C - connected, S - static, I - IGRP, R - RIP, M -
>~mobile, B - BGP
>~> D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
>~> N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
>~> E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
>~> i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia
>~- IS-IS inter
>~>area
>~> * - candidate default, U - per-user static route, o - ODR
>~> P - periodic downloaded static route
>~>
>~>Gateway of last resort is not set
>~>
>~> 172.16.0.0/16 is variably subnetted, 7 subnets, 3 masks
>~>C 172.16.56.0/25 is directly connected, Ethernet0
>~>R 172.16.33.0/24 [120/1] via 172.16.7.3, 00:00:06, Serial0
>~>R 172.16.12.0/24 [120/1] via 172.16.7.1, 00:00:06, Serial0
>~>R 172.16.11.0/28 [120/1] via 172.16.7.1, 00:00:06, Serial0
>~>C 172.16.5.0/24 is directly connected, Loopback0
>~>C 172.16.7.0/24 is directly connected, Serial0
>~>R 172.16.1.0/24 [120/1] via 172.16.7.1, 00:00:06, Serial0
>~>R 8.0.0.0/8 [120/1] via 172.16.56.8, 00:00:07, Ethernet0
>~> 11.0.0.0/24 is subnetted, 1 subnets
>~>B 11.11.11.0 [20/0] via 172.16.7.3, 00:00:07
>~> [20/0] via 172.16.7.1, 00:00:07
>~>r5#
>~>r5#sh run | begin router bgp
>~>router bgp 5
>~> no synchronization
>~> bgp log-neighbor-changes
>~> neighbor 172.16.7.1 remote-as 6000
>~> neighbor 172.16.7.1 soft-reconfiguration inbound
>~> neighbor 172.16.7.3 remote-as 6000
>~> neighbor 172.16.7.3 soft-reconfiguration inbound
>~> maximum-paths 2
>~> no auto-summary
>~>r5#
>~>
>~>r3#sh run | begin router bgp
>~>router bgp 300
>~> bgp log-neighbor-changes
>~> network 11.11.11.0 mask 255.255.255.0
>~> neighbor 172.16.7.5 remote-as 5
>~> neighbor 172.16.7.5 local-as 6000
>~>
>~>r1#sh run | begin router bgp
>~>router bgp 1
>~> no synchronization
>~> bgp log-neighbor-changes
>~> network 11.11.11.0 mask 255.255.255.0
>~> neighbor 172.16.7.5 remote-as 5
>~> neighbor 172.16.7.5 local-as 6000
>~> neighbor 172.16.7.5 soft-reconfiguration inbound
>~> no auto-summary
>~>



This archive was generated by hypermail 2.1.4 : Thu Jun 13 2002 - 10:57:58 GMT-3