07-21-2008 08:02 PM - edited 03-03-2019 10:49 PM
Hi all,
Can BGP run load balance? As I know,
BGP will choose the BEST route and installed in the routing table. I just think only Load sharing can be done rather than load balance. Am I right ?
07-21-2008 08:13 PM
Hi, [Pls RATE if HELPS]
If the router receives and installs multiple paths with the same administrative distance and cost to a destination, load-balancing can occur. The number of paths used is limited by the number of entries the routing protocol puts in the routing table. Four entries is the default in IOS for most IP routing protocols with the exception of Border Gateway Protocol (BGP), where one entry is the default. Six different paths configured is the maximum number.
Per-destination or per-packet load-balancing depends on the type of switching scheme used for IP packets. By default, on most Cisco routers, fast switching is enabled under interfaces. This is a demand caching scheme that does per-destination load-balancing. To set per-packet load-balancing, enable process switching (or disable fast switching), use these commands:
Router# config t
Router(config)# interface Ethernet 0
Router(config-if)# no ip route-cache
Router(config-if)# ^Z
Now the router CPU looks at every single packet and load balances on the number of routes in the routing table for the destination. This can crash a low-end router because the CPU must do all the processing. To re-enable fast switching, use these commands:
Router# config t
Router(config)# interface Ethernet 0
Router(config-if)# ip route-cache
Router(config-if)# ^Z
Hope I am Informative.
Pls RATE if HELPS
Best Regards,
Guru Prasad R
07-21-2008 09:30 PM
That means BGP can only perform load sharing , not load balancing .Right?
07-22-2008 12:09 AM
Just like router A connect with Router B with 2 x serial link. Even though AD and metric is equal [20/0]. Only one route will be installed in routing table. Am I right?
07-22-2008 12:29 AM
Simplest answer is: by default, BGP is configured only to choose a single BEST path.
You can configure "maximum-paths
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