Date: Mon, 5 May 1997 17:32:48 +0200 (MET DST) From: Wolfgang Helbig <helbig@MX.BA-Stuttgart.De> To: sderdau@xtdl.com (Stephen Derdau) Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: 2nd machine without class c address Message-ID: <199705051532.RAA20790@helbig.informatik.ba-stuttgart.de> In-Reply-To: <199705051252.IAA14968@user.xtdl.com> from Stephen Derdau at "May 5, 97 08:52:33 am"
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199705051532.RAA20790>