From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 6256 invoked from network); 2 Oct 1998 01:25:36 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 2 Oct 1998 01:25:36 -0000 Received: from adler.unix-ag.uni-siegen.de (root@adler.unix-ag.uni-siegen.de [141.99.42.52]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id VAA27108 for ; Thu, 1 Oct 1998 21:23:30 -0400 Received: from vmax.unix-ag.uni-siegen.de (vmax.unix-ag.uni-siegen.de [141.99.42.43]) by adler.unix-ag.uni-siegen.de (Mailhost) with ESMTP id DAA20252 for ; Fri, 2 Oct 1998 03:23:00 +0200 Received: (from nils@localhost) by vmax.unix-ag.uni-siegen.de (Spoolhost) id DAA08226 for axp-list@redhat.com; Fri, 2 Oct 1998 03:22:59 +0200 From: Nils Faerber Message-Id: <199810020122.DAA08226@vmax.unix-ag.uni-siegen.de> Subject: Re: two-ethernet cards In-Reply-To: <19981001223415.4172.rocketmail@send203.yahoomail.com> from Jacek Perry at "Oct 1, 98 03:34:15 pm" To: axp-list@redhat.com Date: Fri, 2 Oct 1998 03:22:58 +0200 (DFT) X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit > 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. netmask 255.255.255.0 eth1: IP 192.168.2. 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! --