From: Robin Szemeti <robin@redpoint.org.uk>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] have any of you got my iproute2 directory?
Date: Mon, 16 Jun 2003 15:17:25 +0000 [thread overview]
Message-ID: <marc-lartc-105577686303817@msgid-missing> (raw)
In-Reply-To: <marc-lartc-105577427100607@msgid-missing>
OK .. well .. I made the directory and added the files, I still have problems
:)
What I have is a box with two connections onto the internet, one slowish, on
fast .. the default route is eth0, and as it stands, connections coming in on
eth1 get answered by eth0, legal, but not what I want and are blocked by some
stateful firewalls.
so ... I read the faq and did this:
#!/bin/bash
IP_CMD="/sbin/ip"
IF1=eth0
IP1= x.x.x.x
P1_NET=x.x.x.0/24
P1_GATE= x.x.x.1
IF2=eth1
IP2= y.y.y.y
P2_NET=y.y.y.0/24
P2_GATE=y.y.y.1
echo "flushing"
$IP_CMD route flush table T1
$IP_CMD route flush table T2
$IP_CMD route flush scope link
echo "eth0 routes in table 1"
$IP_CMD route add $P1_NET dev $IF1 src $IP1 table T1
$IP_CMD route add default via $P1_GATE table T1
echo "eth1 routes in table 2"
$IP_CMD route add $P2_NET dev $IF2 src $IP2 table T2
$IP_CMD route add default via $P2_GATE table T2
echo "assign routes to IP"
# make sure it goes out where it came in.
$IP_CMD route add $P1_NET dev $IF1 src $IP1
$IP_CMD route add $P2_NET dev $IF2 src $IP2
# default route
$IP_CMD route add default via $P1_GATE
$IP_CMD route add 127.0.0.0/8 dev lo
echo "assign tables to IP"
$IP_CMD rule add from $IP1 table T1
$IP_CMD rule add from $IP2 table T2
echo "done"
..... but I get :
flushing
eth0 routes in table 1
RTNETLINK answers: Network is unreachable
eth1 routes in table 2
RTNETLINK answers: Network is unreachable
assign routes to IP
RTNETLINK answers: File exists
assign tables to IP
done
and the asymetric routinf is still happening, so I guess its not worked then
...
suggestions ..?
--
Robin Szemeti
Redpoint Consulting Limited
Real Solutions For A Virtual World
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
prev parent reply other threads:[~2003-06-16 15:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-16 14:36 [LARTC] have any of you got my iproute2 directory? Robin Szemeti
2003-06-16 14:40 ` Martin A. Brown
2003-06-16 15:17 ` Robin Szemeti [this message]
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-105577686303817@msgid-missing \
--to=robin@redpoint.org.uk \
--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.