[97405] in RedHat Linux List
Re: ifconfig and route with multiple networks
daemon@ATHENA.MIT.EDU (Michael Jinks)
Tue Nov 3 01:45:46 1998
Date: Tue, 03 Nov 1998 05:41:07 +0000
From: Michael Jinks <michael@twopoint.com>
To: redhat-list@redhat.com
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
Is the idea to connect the two LAN's through your RedHat box, or just to
have it be able to talk to both of them?
All I've ever done has been to list interface X as the gateway for
interface Y and vise-versa. Set up the kernel and enable IP forwarding,
and voila, router. If you don't want the two LAN's to talk through your
RedHat box, then just configure the interfaces and you're done. If the
LAN's have gateways to the outer net, then the interface which faces a
given LAN should use that LAN's gateway as its own.
> Almost all config's I've tried worked but most of them can't
> be correct.
Are you sure? If it works, that's good enough for me. How do you know
that your configs are wrong? Unless I'm missing some detail, I don't
think that you should need to directly modify your routing tables at
all.
> I am also getting the following warning when running
> traceroute:
>
> traceroute: Warning: Multiple interfaces found; using xxx.xxx.xxx.xxx @
> eth0
This just means exactly what it says: you have two interfaces, and
traceroute doesn't know enough to determine on its own which one to use,
so it grabs the first one it finds. If you want to specifically test
routes for your other interface, give the command "traceroute -i eth1"
(or whatever the name of your other interface is). You might want to
check the traceroute man page for an explanation of how traceroute
works.
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com http://archive.redhat.com
To unsubscribe: mail redhat-list-request@redhat.com with
"unsubscribe" as the Subject.