* two-ethernet cards
@ 1998-10-01 22:34 Jacek Perry
1998-10-02 1:22 ` Nils Faerber
0 siblings, 1 reply; 2+ messages in thread
From: Jacek Perry @ 1998-10-01 22:34 UTC (permalink / raw)
To: axp-list
Hello
(Thank you very much for your info on the MPI Kiyoshi Yoda. I truly
appreciate it)
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?
Any help would be GREATLY appreciated :)
_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: two-ethernet cards
1998-10-01 22:34 two-ethernet cards Jacek Perry
@ 1998-10-02 1:22 ` Nils Faerber
0 siblings, 0 replies; 2+ messages in thread
From: Nils Faerber @ 1998-10-02 1:22 UTC (permalink / raw)
To: axp-list
> 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!
--
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1998-10-02 1:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-10-01 22:34 two-ethernet cards Jacek Perry
1998-10-02 1:22 ` Nils Faerber
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox