Mailinglist Archive: opensuse (1597 mails)

< Previous Next >
Re: [opensuse] How do I route traffic through different interfaces
  • From: Dave Plater <davejplater@xxxxxxxxx>
  • Date: Thu, 29 Oct 2009 15:29:26 +0200
  • Message-id: <4AE998B6.30401@xxxxxxxxx>
On 10/29/2009 02:55 PM, Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



On Thursday, 2009-10-29 at 14:17 +0200, Dave Plater wrote:

Hi, I have a normal adsl ip account setup on eth0, I also have a local
only account setup as a tunnel through dsl0. The dsl0 account cannot
access anything outside of South Africa and if I enable it everything
tries to use it. What can I use to only route local
(41.0.0.1/41.95.255.255 and 196.0.0.1/196.255.255.255) through dsl0 and
anything else through eth0?

Simply edit the routing table (for that interface). I assume you have
two network interfaces?

- -- Cheers,
Carlos E. R.
I only have one physical eth0 interface, dsl0 is a pppoe tunnel that
uses the same physical interface. If I ifup dsl0 then all traffic tries
to use that interface. I've also tried with dsl0 and dsl1 together but
that also doesn't work. The contents of /etc/sysconfig/routes are :-
1.0.0.1/41.95.255.255 10.0.0.2 - dsl0
196.0.0.1/196.255.255.255 10.0.0.2 - dsl0
1.0.0.1/9.255.255.255 10.0.0.2 - dsl1
11.0.0.1/40.255.255.255 10.0.0.2 - dsl1
41.96.0.1/195.255.255.255 10.0.0.2 - dsl1
197.0.0.1/255.255.255 10.0.0.2 - dsl1
default 10.0.0.2 - eth0
Thanks
Dave P
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >