From: Ciprian Constantinescu Date: Sun, 22 Jan 2006 18:19:42 +0000 Subject: [LARTC] Problems with load balancing Message-Id: MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============1631151156==" List-Id: To: lartc@vger.kernel.org --===============1631151156== Content-Type: multipart/alternative; boundary="----=_Part_22747_22914869.1137953982940" ------=_Part_22747_22914869.1137953982940 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I have 2 providers, each on a separate interface, and a LAN on the third interface. After I do the load balancing, only one line is used and the traffic gets through very hard. Also, a simple command, like iptables -t na= t -L, takes very long to show the output. Does anyone know what could be wrong? I list my outputs here: taurus:~# ip route show all 192.168.2.0/26 dev eth0 proto kernel scope link src 192.168.2.22 86.55.39.128/25 dev eth1 proto kernel scope link src 86.55.39.223 10.0.0.0/24 dev eth2 proto kernel scope link src 10.0.0.1 default nexthop via 192.168.2.1 dev eth0 weight 1 nexthop via 86.55.39.129 dev eth1 weight 1 taurus:~# ip route show table RTC 192.168.2.0/26 dev eth0 scope link src 192.168.2.22 86.55.39.128/25 dev eth1 scope link 10.0.0.0/25 dev eth2 scope link 127.0.0.0/8 dev lo scope link default via 192.168.2.1 dev eth0 taurus:~# ip route show table EVO 192.168.2.0/26 dev eth0 scope link 86.55.39.128/25 dev eth1 scope link src 86.55.39.223 10.0.0.0/25 dev eth2 scope link 127.0.0.0/8 dev lo scope link default via 86.55.39.129 dev eth1 taurus:~# iptables -t nat -L Chain PREROUTING (policy ACCEPT) target prot opt source destination Chain POSTROUTING (policy ACCEPT) target prot opt source destination SNAT all -- 10.0.0.0/24 !10.0.0.0/24 to:10.0.0.1 Chain OUTPUT (policy ACCEPT) target prot opt source destination ------=_Part_22747_22914869.1137953982940 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I have 2 providers, each on a separate interface, and a LAN on the third in= terface. After I do the load balancing, only one line is used and the traff= ic gets through very hard. Also, a simple command, like iptables -t nat -L,= takes very long to show the output. Does anyone know what could be wrong?
I list my outputs here:

taurus:~# ip route show all
192.168.2.0/26 dev eth0  proto kernel&n= bsp; scope link  src 192.168.2.22<= br> 86.55.39.128/25 dev eth1  proto kernel  scope link  src = 86.55.39.223
10.0.0.0/24 dev eth2  proto kernel  scope link  = src 10.0.0.1
default
        nexth= op via 192.168.2.1  dev eth0 weight= 1
        nexthop via 86.55.39.129  dev eth1 weight 1


tauru= s:~# ip route show table RTC
192.168.2.0/26 dev eth0  sco= pe link  src 192.168.2.22
86.55.39.128/25 dev eth1  scope link=
10.0.0.0/25 dev eth2  scope link
127.0.0.0/8 dev lo  scope link
default via 192.168.2.1 dev eth0

taurus:~# ip route show table E= VO
192.168.2.0/26 dev eth0  scope link
86.55.39.128/25 dev eth1  scope link  src 86.55.39.223
10.= 0.0.0/25 dev eth2  scope link
127.0.0.0/8 dev lo  scope link<= br>default via 86.55.39.129 dev eth1
taurus:~# iptables -t nat -L
Chain PREROUTING (policy ACCEPT)
ta= rget     prot opt source     &= nbsp;         destination

Chain POSTROUTING (policy ACCEPT)
target    = prot opt source          = ;     destination
SNAT     =   all  --  10.0.0.0/24&nb= sp;        !10.0.0.0/24   = ;      to: 10.0.0.1

Chain OUTPUT (policy ACCEPT)
target   = ;  prot opt source        &nbs= p;      destination

------=_Part_22747_22914869.1137953982940-- --===============1631151156== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc --===============1631151156==--