From mboxrd@z Thu Jan 1 00:00:00 1970 From: Edmundo Carmona Subject: Re: experimenting with 2 ISP's Date: Mon, 15 Aug 2005 17:06:57 -0400 Message-ID: <65aa6af90508151406d10894@mail.gmail.com> References: <4300EACB.2030400@eccotours.dyndns.org> Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <4300EACB.2030400@eccotours.dyndns.org> Content-Disposition: inline List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-bounces@lists.netfilter.org Errors-To: netfilter-bounces@lists.netfilter.org Content-Type: text/plain; charset="us-ascii" To: netfilter@lists.netfilter.org That's not the right way to set the default GW. You have to use IP. Remove your default GWs. then: ip route add default netxhop via 196.36.10.114 dev eth0 nexthop via 196.168.10.100 dev eth2 ip route flush cache. If you set the routing tables correctly, It should start working right away= . On 8/15/05, Brent Clark wrote: > Hi list >=20 > I have just a added a few rules to my routing table. >=20 > Would someone be so kind as to see if my setup is correct. >=20 > My setup is as so >=20 > eth0 > IP 196.36.10.114 > GW 196.36.10.113 (my routers IP) >=20 > eth1 192.168.111.10 > PRIVATE LAN >=20 > eth2 > IP 192.168.10.200 > GW 192.168.10.100 (my adsl modem) >=20 > Please keep in mind that my router that is connected to eth0 has a static= ip, where as my adsl modem that is connected to eth2 is dynamically assign= ed. >=20 > echo 200 IS >> /etc/iproute2/rt_tables > echo 201 TELKOM >> /etc/iproute2/rt_tables >=20 > /sbin/ip route add 196.36.10.0 dev eth0 src 196.36.10.114 table IS > /sbin/ip route add default via 196.36.10.113 table IS >=20 > /sbin/ip route add 192.168.10.0 dev eth2 src 192.168.10.100 table TELKOM > /sbin/ip route add default via 192.168.10.100 table TELKOM >=20 > /sbin/ip route add 196.36.10.0 dev eth0 src 196.36.10.114 > /sbin/ip route add 192.168.10.0 dev eth2 src 192.168.10.100 >=20 > /sbin/ip route add default via 196.36.10.113 >=20 > /sbin/ip rule add from 196.36.10.114 table IS > /sbin/ip rule add from 192.168.10.100 table TELKOM >=20 > From my routing table all seem ok: > gate:~# route -n > Kernel IP routing table > Destination Gateway Genmask Flags Metric Ref Use I= face > 196.36.10.0 0.0.0.0 255.255.255.255 UH 0 0 0 e= th0 > 192.168.10.0 0.0.0.0 255.255.255.255 UH 0 0 0 e= th2 > 196.36.10.112 0.0.0.0 255.255.255.248 U 0 0 0 e= th0 > 192.168.111.0 0.0.0.0 255.255.255.0 U 0 0 0 e= th1 > 192.168.10.0 0.0.0.0 255.255.255.0 U 0 0 0 e= th2 > 0.0.0.0 196.36.10.113 0.0.0.0 UG 0 0 0 e= th0 > gate:~# >=20 > If anyone has any tips or advise they would care to add, it would be most= appreciated. >=20 > Kind Regards > Brent Clark >=20 >=20 >