*BSD News Article 75159


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.eng.convex.com!newshost.convex.com!newsgate.duke.edu!news.mathworks.com!hunter.premier.net!news1.erols.com!newsmaster@erols.com
From: Ken Bigelow <kbigelow@www.play-hookey.com>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Routing problem with BSD
Date: Wed, 31 Jul 1996 20:54:58 -0700
Organization: Erols Internet Services
Lines: 45
Message-ID: <32002A92.4136@www.play-hookey.com>
References: <4tkbds$62k@quasar.dimensional.com> <4tkg0j$2mb@typo.org> <4tl5i9$95n@quasar.dimensional.com>
NNTP-Posting-Host: kenjb05.play-hookey.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 2.02 (Win16; I)

Monachus Silentium wrote:
> 
> BOFH (web@typo.org) wrote:
> :
> : Bets are your system doesn't know its supposed to be routing at all.
> :
> : Try this:
> :
> :   sysctl -m net.inet.ip.forwarding=1
> :
> 
> that seems to get me one step further.  my win95 machine (206.27.146.33)
> is now able to ping some things on my ISP's network (206.27.158.x), but
> only a select few.  everything else times out, including his nameserver
> and his gateway (206.27.158.10, 206.27.158.1), which doesn't really make
> much sense....
> 
> thanks for the start, though - that seems to be the right direction.  any
> other thoughts on the new development?  also, how can i have my machine
> perform forwarding as default?  i seem to have overlooked it in the kernel
> compile or wherever it's located.
> 

Correct me if I'm wrong about your setup. I gather you have one coherent 
Class-C subnet, and you're using pppd to reach your ISP (I'm verifying 
this because your original post seemed to imply that you are locally using 
two different Class C addresses). If my description is correct, you have 
the same sort of setup I do (32-node subnet with one pppd dialup to ISP).

Given this, you need one machine with both a modem and a net card, and it 
must have the GATEWAY function set to YES in /etc/sysconfig. Your ISP must 
recognize it as your local subnet gateway. Mine is also running my mail 
server and Apache, but that's up to you. If your ISP recognizes all of 
your local node IP addresses, you should be in business.

My setup does not require a sysctl function outside of netstart. The 
/etc/ppp/options file does include a 'defaultroute' line, however.

I hope this helps!
-- 
Ken

Are you interested in   |
byte-sized education    |   http://www.play-hookey.com
over the Internet?      |