All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] 2 ISP connection sharing problem
@ 2007-09-01 21:01 Arman
  2007-09-01 23:33 ` Jorge Evangelista
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: Arman @ 2007-09-01 21:01 UTC (permalink / raw)
  To: lartc


[-- Attachment #1.1: Type: text/plain, Size: 2339 bytes --]

Hi all,

        I have a similar question like  many asked before I know but Please
help as i cant figure out where the problem is and how should I tackle.

I have 2 ISP connections. I want to share the bandwidth from both. I have
copied the script from many places and created my own after changes. Problem
is that only one connection is utilized at a time. Not both working. ratio
of consuming bandwisth between then is around 1:30.

both connections are from dhcp that is dynamic. configuration from 1 ISP
remains same and from 1 changes.

EXTERNAL_IP_2="201.81.219.95"
EXTERNAL_NETWORK_2="201.81.219.0"
EXTERNAL_GATEWAY_IP_2="201.81.219.1"

echo 200 T1 >> /etc/iproute2/rt_tables
echo 201 T2 >> /etc/iproute2/rt_tables

  ip route add 192.168.1.0 dev eth1 src 192.168.1.2 table T1
  ip route add default via 192.168.1.1 table T1
  ip route add $EXTERNAL_NETWORK_2 dev eth2 src $EXTERNAL_IP_2 table T2
  ip route add default via $EXTERNAL_GATEWAY_IP_2 table T2

  ip route add 192.168.3.0      dev eth0        table T1
  ip route add 192.168.1.0      dev eth1        table T1
  ip route add 127.0.0.0/8 dev lo   table T1
  ip route add 192.168.3.0      dev eth0        table T2
  ip route add $EXTERNAL_NETWORK_2      dev eth2        table T2
  ip route add 127.0.0.0/8 dev lo   table T2

  ip route add 192.168.1.0 dev eth1  src 192.168.1.2
  ip route add $EXTERNAL_NETWORK_2 dev eth2  src $EXTERNAL_IP_2

  ip route add default via $EXTERNAL_GATEWAY_IP_2

  ip rule add from 192.168.1.2 table T1
  ip rule add from $EXTERNAL_IP_2 table T2

 ip route add default scope global nexthop via 192.168.1.1 dev eth1 weight 1
nexthop via $EXTERNAL_GATEWAY_IP_2 dev eth2 weight 2


route command output is

Destination     Gateway           Genmask           Flags   Metric  Ref
Use  Iface
192.168.1.0     *                      255.255.255.255  UH      0
0        0    eth1
192.168.3.0     *                      255.255.255.0      U        0
0        0    eth0
192.168.1.0     *                      255.255.255.0      U        0
0        0    eth1
201.81.219.0    *                     255.255.255.0      U        0
0        0     eth2
default         201.81.219.1         0.0.0.0               UG      0
0        0      eth2

Problem is that the interface which is set gateway is used only. The other
one remains idle.

-- 
Regards,
Arman

[-- Attachment #1.2: Type: text/html, Size: 5206 bytes --]

[-- Attachment #2: Type: text/plain, Size: 143 bytes --]

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2007-09-03 18:17 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-01 21:01 [LARTC] 2 ISP connection sharing problem Arman
2007-09-01 23:33 ` Jorge Evangelista
2007-09-02 10:25 ` Arman
2007-09-02 11:33 ` Marek Kierdelewicz
2007-09-02 14:24 ` Arman
2007-09-02 20:04 ` Alex Samad
2007-09-03  8:35 ` Arman
2007-09-03 17:57 ` Arman
2007-09-03 18:09 ` Martin A. Brown
2007-09-03 18:12 ` Marek Kierdelewicz
2007-09-03 18:15 ` Pan'ko Alexander
2007-09-03 18:17 ` Jorge Evangelista

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.