Re: [LARTC] Source based routing with two internet connections

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.





[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux