From owner-freebsd-hackers Mon May 5 08:33:09 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id IAA01313 for hackers-outgoing; Mon, 5 May 1997 08:33:09 -0700 (PDT) Received: from helbig.informatik.ba-stuttgart.de (helbig.informatik.ba-stuttgart.de [141.31.166.22]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id IAA01302 for ; Mon, 5 May 1997 08:33:05 -0700 (PDT) Received: (from helbig@localhost) by helbig.informatik.ba-stuttgart.de (8.8.5/8.8.5) id RAA20790; Mon, 5 May 1997 17:32:48 +0200 (MET DST) From: Wolfgang Helbig Message-Id: <199705051532.RAA20790@helbig.informatik.ba-stuttgart.de> Subject: Re: 2nd machine without class c address In-Reply-To: <199705051252.IAA14968@user.xtdl.com> from Stephen Derdau at "May 5, 97 08:52:33 am" To: sderdau@xtdl.com (Stephen Derdau) Date: Mon, 5 May 1997 17:32:48 +0200 (MET DST) Cc: freebsd-hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL30 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Hi, > I have a second machine that is part of my local network. > One of my machines has a class c address which I can dial out and > connect to the internet on. > > The other machine has a 10.0.0.2 address. > I can communicate between the two machines and be connected > to the internet on the one with a class c address. However, > I cannot go onto my 2nd machine and telnet or ping any other > machines outside of my local network, "the 2 machines". > > Can what I am trying to do be done without another ip address. Your first machine needs another ip address (like 10.0.0.1) on the local ethernet interface. Then your class c machine has to be configured as a gateway. Change the gateway="NO" line in sysconfig to gateway="YES and reboot or do a # sysctl -w net.inet.ip.forwarding=1 > When I telnet from the 2nd machine it tells me no route to host. Then you have to tell your second machine that your first machine is a gateway. Do a # route add default 10.0.0.1 on your second machine. > I have the 1st system with the class c address as the default > router. However, that does not seem to work. I can be > connected on the 1st system with the ip address and get out > to the internet. But when I telnet to my second machine > and try to ping or anything to a machine out on the net. > I get no route to host. > > I am new to this stuff and working on getting an insight to > this whole networking stuff. > > Hope I didn't submit this to the wrong news group. No and yes.:-) No, because this is a mailing list and not a news group. Yes because this would fit better to the FreeBSD-questions@FreeBSD.org mailing list. > If I did I apologize. That's ok. > > Thanks. > You're welcome Wolfgang