From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ralph van Etten Date: Wed, 04 Jul 2001 18:32:35 +0000 Subject: Re: [LARTC] Source based routing with two internet connections Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org On Wed, 4 Jul 2001, Arthur van Leeuwen wrote: > > #ip rule add from 192.168.11.70 table fast pref 102 > > #ip route add 0/0 dev eth2 table fast > > #ip route flush cache > > You're not doing source address selection (the src argument to ip route add), > causing the masquerading code to possibly select the wrong address to > masquerade to. Check the archives for the postings on multipath upstream > routing for information on a setup with multiple upstreams. Such a setup > will gladly masquerade on each of the uplinks, and *work*. From that you can, > without a doubt, simplify to your situation. I've read the articles in the archive again and first I though of the following : #ip route add 0/0 src 123.123.123.123 dev eth2 table adsl But this didn't worked, so I read some more and tried this : #ip route add 123.123.123.1 dev eth2 table fast #ip route add 0/0 via 123.123.123.123 dev eth2 table fast with and without src argument and this gave exactly the same problem. Are the above commands correct ? Should the default route in the main table be a multipath route for this to work ? Thanks, Ralph. _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/