Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
linux:networking:loadbalancing [2012/05/16 19:07]
188.143.232.12 NfbxQFxeFIasyEBJ
linux:networking:loadbalancing [2012/05/17 08:38] (current)
greebo old revision restored
Line 1: Line 1:
-Nice job.The only thingI would put  show  output isntead of commands for better readabilityThis is kind of advanced topic so intended audience can convert configuration to set's for sure+====== Load balancing / linux way ====== 
 + 
 +See also: 
 +   * [[http://tetro.net/misc/multilink.html|Balancing Connections Over Multiple Links - great for p2p]] 
 +   * http://linux-ip.net/html/adv-multi-internet.html 
 +   * http://shorewall.net/MultiISP.html (good document) 
 + 
 + 
 +   echo "11 line1" >> /etc/iproute2/rt_tables 
 +   echo "12 line2" >> /etc/iproute2/rt_tables 
 +    
 +   ip route add1.2.3.0/29 dev eth0 src 1.2.3.6 table line1 
 +   ip route add default via1.2.3.5 table line1 
 +    
 +   ip route add 192.168.6.0/24 dev eth1 src 192.168.6.4 table line2 
 +   ip route add default via 192.168.6.254 table line2 
 +    
 +   ip rule add from1.2.3.6 table line1 
 +   ip rule add from 192.168.6.4 table line2 
 +    
 +   ip route add default scope global nexthop via 1.2.3.5 dev eth0 weight 1 nexthop via 192.168.6.254 dev eth1 weight 1 
 + 
 + 
 +//pls change ips accordingly. and add these to rc.local file// 
linux/networking/loadbalancing.1337188072.txt.gz · Last modified: 2012/05/16 19:07 by 188.143.232.12
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 ipv6 ready