From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerome Kerdreux Date: Thu, 11 Jul 2002 14:12:07 +0000 Subject: Re: [LARTC] Multiple ADSL link Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org Today, mahhy a =E9crit: m>On Thu, 11 Jul 2002, Jerome Kerdreux wrote: m>> ip route add default scope global nexthop via $P1 dev $IF1 weight 1 m>> nexthop via $P2 dev $IF2 weight 1 m>I havent looked at the LARTC HOWTO in depth yet, but I believe you are m>wanting to implement Equal Cost Multipath Routing. ECM allows for m>*outgoing* traffic to be load-balanced across multiple ISP connections. m> m>There is some good information in the Advanced Routing HOWTO on m>http://www.linuxdoc.org, I suggest you read that as well. m> m>Here is the general script I use to implement ECM, you will have to edit m>it for your own values (different interface names, IP addresses, gateway m>addresses, etc): m> m> /sbin/ip rule add from table 124 m> /sbin/ip rule add from table 120 m> /sbin/ip route add default via dev eth0 table 124 m> /sbin/ip route add default via dev ppp0 table 120 m> /sbin/ip route delete default m> /sbin/ip route add default scope global nexthop via dev m>eth0 nexthop via dev ppp0 m> /sbin/ip route flush cache m> m> is the first IP address on my Linux Router m> is the second IP address on my Linux Router m> is the first IP address's default Gateway m> is the second IP address's default Gateway m> m>replace them with appropriate values for your system. Oh thanks Mahhy I test that :) Here is what I test : /sbin/ip rule add from table T1 /sbin/ip rule add from table T2 /sbin/ip route add default via dev ppp0 table T1 /sbin/ip route add default via dev ppp1 table T2 /sbin/ip route delete default /sbin/ip route add default scope global nexthop via dev ppp0 = nexthop via dev ppp1 /sbin/ip route flush cache but I still have the same pb =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ip route: 194.206.78.3 dev ppp1 proto kernel scope link src 62.212.102.172 80.15.151.1 dev ppp0 proto kernel scope link src 80.15.151.117 192.168.0.0/16 dev eth2 proto kernel scope link src 192.168.0.1 default nexthop via 80.15.151.117 dev ppp0 weight 1 dead nexthop via 62.212.102.172 dev ppp1 weight 1 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ppp0 seems to be detected as dead. So all the trafic go throught ppp1 and only get this on ppp0 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D tcpdump -i ppp0: 15:50:22.786991 80.24.174.28.1073 > 80.15.151.117.4665: udp 6 15:50:22.787074 80.15.151.117 > 80.24.174.28: icmp: 80.15.151.117 udp port 4665 unreachable [tos 0xc0] 15:50:36.917769 62.178.40.99.1275 > 80.15.151.117.4665: udp 6 15:50:36.917855 80.15.151.117 > 62.178.40.99: icmp: 80.15.151.117 udp port 4665 unreachable [tos 0xc0] 15:50:37.446685 217.235.251.61.2588 > 80.15.151.117.4665: udp 6 15:50:37.446767 80.15.151.117 > 217.235.251.61: icmp: 80.15.151.117 udp port 4665 unreachable [tos 0xc0] =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D all the trafic i get it that :( Another thing is that when I drop all the route and just put ppp0 as default route. this interface works well . this sound really strange. Any body have a idea ? I put the list in Cc: too :) /Thanks _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/