From: Nils Faerber <Nils.Faerber@unix-ag.org>
To: axp-list@redhat.com
Subject: Re: two-ethernet cards
Date: Fri, 2 Oct 1998 03:22:58 +0200 (DFT) [thread overview]
Message-ID: <199810020122.DAA08226@vmax.unix-ag.uni-siegen.de> (raw)
In-Reply-To: <19981001223415.4172.rocketmail@send203.yahoomail.com> from Jacek Perry at "Oct 1, 98 03:34:15 pm"
> Hello
Hello!
> Is there any trick in order to configure 2 ehthernet card in the same
> machine.
> Here is what I am trying to do. I am trying to set up a private
> network (only couple nodes) and also have a "master" node that has
> access to the outside world. I can make the eth0 work just fine. It
> has no problem connecting to the internet. However my eth1 seems to
> have a problem. I can't ping the other 2 machines it says that the
> network is unreachable. I think that is probably because in my
> resolv.conf I have: search mynetwork. I need that statment however
> for the eth0. Is there any way to make sure that eth1 doesn't read
> the resolv.conf? Or do I have another problem?
Err ... I think you should read some documentation about configuring and
setting up TCP/IP networking. Your question shows that you are confusing
many things at once.
If you want to setup routing between interfaces you do not need to fiddle
with the /etc/resolv.conf. This file is only for name resolution i.e.
nameserver lookups and other ways to lookup hostnames.
What you need is a proper interface setup.
The easiest way to do this is to setup to different class C networks. Let's
say for example one network 192.168.1.0 and the second 192.168.2.0
You will then have to configure eth0 to
IP 192.168.1.<some-number> netmask 255.255.255.0
eth1:
IP 192.168.2.<some-number> netmask 255.255.255.0
You should then add two routes to your routing table using
route add -net 192.168.1.0 eth0
route add -net 192.168.2.0 eth1
Now you should be able to ping machines on either network.
If now machines from network 1 should be able to reach machines in network 2
via your machine you will have to add IP forwarding to your kernel
configuration. For 2.0.* kernel this is a kernel compile time option, for
kernels 2.1.* you will have to
echo "1" > /proc/sys/net/ipv4/conf/all/forwarding
which will enable IP forwarding for all interfaces.
> Any help would be GREATLY appreciated :)
Happy networking!
BTW: You might want to have a look at the "Linux Network Administrator's
Guide" by Olaf Kirch...
CU
nils
--
Nils Faerber (Linux Nils) eMail: nils@unix-ag.org
Student of computer science http://www.si.unix-ag.org/~nils/
Unix user group, University of Siegen, Germany
Siegen ... the arctic rain forest!
--
prev parent reply other threads:[~1998-10-02 1:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-10-01 22:34 two-ethernet cards Jacek Perry
1998-10-02 1:22 ` Nils Faerber [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox