From: Stephen <meridian@tha.net>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Multiple Internet Links problem
Date: Wed, 12 Dec 2001 21:53:00 +0000 [thread overview]
Message-ID: <marc-lartc-100819408819875@msgid-missing> (raw)
In-Reply-To: <marc-lartc-100810683231420@msgid-missing>
Julian I am already using a kernel patched with your routes-2.2.19 patch
here is an example of my rule and route list i am presently trying and the
errors i am getting. I have 202.1.1.0/25 + 2 other ips on ppp0 my main
static ip link. The 202.2.2 is my adsl on eth1. 202.3.3 is my cable
on eth2 which i try to route all my clients from 202.1.1.128/25 out of by
default.
I have built these on a working example of
ip ru add from 202.3.3.153/32 table 1
ip ro add 0.0.0.0/0 via 202.3.3.129 table 1
which ensures all data going to the cable ip leaves back out that
interface while my default gateway is still ppp0. Building on this however
causes problems
ip ru add from 202.1.1.0/25 pref 100 table ppp0
ip ru add from 202.1.1.151/32 pref 100 table ppp0
ip ru add from 202.1.1.152/32 pref 100 table ppp0
ip ru add from 202.1.1.128/25 pref 100 table eth0
ip ru add from 202.2.2.18/31 pref 200 table eth1
ip ru add from 202.2.2.20/31 pref 200 table eth1
ip ru add from 202.2.2.22/32 pref 200 table eth1
ip ru add from 202.3.3.153/32 pref 300 table eth2
ip ro add to 202.1.1.128/25 pref 1 dev eth0 table ppp0
ip ro add to 202.1.1.128/25 pref 1 dev eth0 table eth0
ip ro add to 202.1.1.128/25 pref 1 dev eth0 table eth1
ip ro add to 202.1.1.128/25 pref 1 dev eth0 table eth2
ip ro add 0.0.0.0/0 dev ppp0 table ppp0
ip ro add 0.0.0.0/0 dev ppp0
ip ro add 0.0.0.0/0 via 202.2.2.17 table eth1
ip ro add 0.0.0.0/0 via 202.3.3.129 table eth2
ip ro add from 202.1.1.128/25 via 202.3.3.129 table eth2
+ ip ru add from 202.1.1.0/25 pref 100 table ppp0
+ ip ru add from 202.1.1.151/32 pref 100 table ppp0
+ ip ru add from 202.1.1.152/32 pref 100 table ppp0
+ ip ru add from 202.1.1.128/25 pref 100 table eth0
+ ip ru add from 202.2.2.18/31 pref 200 table eth1
+ ip ru add from 202.2.2.20/31 pref 200 table eth1
+ ip ru add from 202.2.2.22/32 pref 200 table eth1
+ ip ru add from 202.3.3.153/32 pref 300 table eth2
+ ip ro add to 202.1.1.128/25 pref 1 dev eth0 table ppp0
RTNETLINK answers: File exists
+ ip ro add to 202.1.1.128/25 pref 1 dev eth0 table eth0
RTNETLINK answers: File exists
+ ip ro add to 202.1.1.128/25 pref 1 dev eth0 table eth1
RTNETLINK answers: File exists
+ ip ro add to 202.1.1.128/25 pref 1 dev eth0 table eth2
RTNETLINK answers: File exists
+ ip ro add 0.0.0.0/0 dev ppp0 table ppp0
RTNETLINK answers: File exists
+ ip ro add 0.0.0.0/0 dev ppp0
+ ip ro add 0.0.0.0/0 via 202.2.2.17 table eth1
+ ip ro add 0.0.0.0/0 via 202.3.3.129 table eth2
+ ip ro add from 202.1.1.128/25 via 202.3.3.129 table eth2
RTNETLINK answers: File exists
+ exit 0
On Tue, 11 Dec 2001, Julian Anastasov wrote:
> Date: Tue, 11 Dec 2001 23:50:56 +0000 (GMT)
> From: Julian Anastasov <ja@ssi.bg>
> To: Stephen <meridian@tha.net>
> Cc: lartc@mailman.ds9a.nl
> Subject: Re: [LARTC] Multiple Internet Links problem
>
>
> Hello,
>
> On Wed, 12 Dec 2001, Stephen wrote:
>
> > Here is one example of what I have been trying.
>
> Such order of rules and routes is not the recommended one.
> Use the links below to see how similar setups are handled, there are
> some rules you must follow. You can try them if you still don't
> prefer to use fwmarks. What is your preferred kernel?
>
> http://www.linuxvirtualserver.org/~julian/nano.txt
> http://www.linuxvirtualserver.org/~julian/#routes
>
> > ip rule add to privatenetwork pref 100 table eth0
> > ip rule add from default dev eth2 pref 200 table eth2
> > ip rule add from default dev ppp0 pref 500 table ppp0
> > ip rule add from default dev eth1 pref 600 table eth1
> > ip rule add from privatenetwork pref 5000 table eth0
> > ip rule add from pppip pref 5001 table ppp0
> >
> > ip route add to random_external_subnet via eth1gwip dev eth1
> > ip route add default from privatenetwork dev eth2 table eth0
> > ip route add to random_external_subnet via eth2gwip dev eth2
> > ip route add to privatenetwork dev eth0 table eth0
> > route add default dev ppp0
> > ip route add default dev ppp0 table ppp0
> > ip route add default dev eth0 table eth0
> > ip route add default via eth1gwip dev eth1 table eth1
> > ip route add default via eth2gwip dev eth2 table eth2
> > ip route add from eth1ip via eth1gwip dev eth1 table eth1
> > ip route add from eth1ip via eth2gwip dev eth2 table eth2
> >
> >
> > Thanks
> > Stephen
>
> Regards
>
> --
> Julian Anastasov <ja@ssi.bg>
>
Stephen Fletcher
mailto:stephen@tha.net
Technologically Higher Altitudes
http://www.tha.com.au
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
next prev parent reply other threads:[~2001-12-12 21:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-11 21:38 [LARTC] Multiple Internet Links problem Stephen
2001-12-11 21:50 ` Julian Anastasov
2001-12-12 21:53 ` Stephen [this message]
2001-12-13 0:14 ` Julian Anastasov
2001-12-13 17:23 ` Stephen
2001-12-13 18:41 ` Julian Anastasov
2001-12-14 0:35 ` Julian Anastasov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-lartc-100819408819875@msgid-missing \
--to=meridian@tha.net \
--cc=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.