From: Whit Blauvelt <whit@transpect.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] multiple gateway problem
Date: Thu, 06 Dec 2001 17:44:24 +0000 [thread overview]
Message-ID: <marc-lartc-100766090623773@msgid-missing> (raw)
In-Reply-To: <marc-lartc-100740321228322@msgid-missing>
On Thu, Dec 06, 2001 at 10:12:23AM -0800, Ross Simpson wrote:
> Well, I've done some more testing and am still having trouble.
>
> I added another IP to eth0:
> ip addr add 10.4.44.1224 brd 10.4.44.255 dev eth0
typo, right? ------------------^
> The packets seem to hit the correct ip on the webserver, but I can't tell
> what happens next. I'm assuming that the packets are routed back through
> the system default gw (10.4.44.1), and therefore never received by the
> client.
>
> One thing that I've noticed is strange -- when I issue an 'ip route' command
> after setting up the two rules and routes, I get:
> 10.4.44.0/24 dev eth0 proto kernel scope link src 10.4.44.11
> 127.0.0.0/8 dev lo scope link
> default via 10.4.44.1 dev eth0
It might be conceptually clearer to set the rules to each IP to point to
different tables. For 10.4.44.0/24 have it lookup table whatever, where that
table has the default route back through the router those would come in on,
and for the other IP block do the same back to its router. This has worked
in my testing here for a very similar setup. It doesn't cover stuff that
originates on the server, but does seem to be working for stuff that comes
in on whatever interface. This should also be doable in a single table, but
the logic is harder to follow. (For stuff originating locally, I understand
the rules will see it as "dev lo" - haven't tested that out.)
Whit
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/
prev parent reply other threads:[~2001-12-06 17:44 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-03 18:13 [LARTC] multiple gateway problem Ross Simpson
2001-12-04 14:48 ` Jorge Castellet
2001-12-04 17:54 ` Whit Blauvelt
2001-12-04 21:09 ` Ross Simpson
2001-12-04 21:31 ` Whit Blauvelt
2001-12-05 7:14 ` Kristian Hoffmann
2001-12-06 17:13 ` Ross Simpson
2001-12-06 17:44 ` Whit Blauvelt [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-100766090623773@msgid-missing \
--to=whit@transpect.com \
--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.