Im having trouble while getting my 4 isp to work in
the same LAN and balance the load soo that if one gets full to jump to the next
isp. Im Using Kernel: 2.6.8 I have the next interfaces: # ISP1 auto eth4 iface eth4 inet dhcp #ISP2 auto eth0 iface eth0 inet dhcp #ISP3 auto eth1 iface eth1 inet dhcp #ISP4 auto eth2 iface eth2 inet dhcp #Enlace 4 auto eth3 iface eth3 inet static address 192.168.1.1 netmask 255.255.255.0 network 192.168.1.0 broadcast 192.168.1.255 Im using the next script: ip route flush cache ip route flush default ip route flush default ip route flush table link1 ip route flush table link2 ip route flush table link3 ip route flush table link4 ip route add 192.168.1.0/24 dev eth3 src 192.168.1.1 ip route add 172.17.41.0/24 dev eth0 src
172.17.41.190 ip route add 200.53.101.0/24 dev eth1 src
200.53.101.144 ip route add 192.168.123.0/24 dev eth2 src
192.168.123.230 ip route add 192.168.123.0/24 dev eth4 src
192.168.123.225 ip route show table main | grep -Ev ^default | while
read ROUTE ; do ip route add table link1 $ROUTE ; done ip route show table main | grep -Ev ^default | while
read ROUTE ; do ip route add table link2 $ROUTE ; done ip route show table main | grep -Ev ^default | while
read ROUTE ; do ip route add table link3 $ROUTE ; done ip route show table main | grep -Ev ^default | while
read ROUTE ; do ip route add table link4 $ROUTE ; done ip route add table link1 default via 172.17.41.1 ip route add table link2 default via 200.53.101.1 ip route add table link3 default via 192.168.123.1 ip route add table link4 default via 192.168.123.1 ip rule add from 172.17.41.190 table link1 ip rule add from 200.53.101.144 table link2 ip rule add from 192.168.123.230 table link3 ip rule add from 192.168.123.225 table link4 ip route add default equalize nexthop via 172.17.41.1
dev eth0 weight 1 \ nexthop via 200.53.101.1 dev eth1 weight
1 \ nexthop via 192.168.123.1 dev eth2
weight 1 \ nexthop via 192.168.123.1 dev eth4 weight
1 #END Im using the next masquarde: /sbin/iptables -F /sbin/iptables -t nat -F echo 1 > /proc/sys/net/ipv4/ip_forward /sbin/iptables -t nat -A POSTROUTING -s
192.168.1.0/24 -j MASQUERADE Really I don’t know what is wrong, I cant share
the conections to balance de load. With 2 I have no problems, but with 4 at the
same time Im having trouble to detect the problem. |