Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Oct 1995 20:15:59 -0700 (PDT)
From:      John-Mark Gurney <gurney_j@nike.efn.org>
To:        Andrew Solberg <asolberg@success.net>
Cc:        "'FreeBSD Questions'" <freebsd-questions@freebsd.org>
Subject:   Re: small subnet, PPP, and Internet
Message-ID:  <Pine.NEB.3.91.951003200942.4581A-100000@nike.efn.org>
In-Reply-To: <01BA91B0.363933A0@apollo>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 3 Oct 1995, Andrew Solberg wrote:

> I am having problems getting my FreeBSD box connected.  I have a fulltime PPP
> dialup to my ISP and he has given me a 30 IPs on a subnet.  They are
> 198.51.81.225 -> 198.51.81.254.  In my office I have 4 machines,
> besides my FreeBSD box that I would like to setup so that the other 4 can
> get out of our local (office) ethernet through the FreeBSD box (running PPP).
> 
> I am running 2.1.0-950928-SNAP.  I am using pppd.  My problem is with setting
> up routing, and DNS.  I have pppd running, that is it dials, connects, logs in, and
> runs fine.  
> 
> 1st.  I am not able to get access anything on Internet with the FreeBSD machine.
> I can ping the PPP remote IP (198.51.79.14).  But I cannot ping any outside
> of 198.51.81.xxx.  I have read through several Linux How-To's and FAQs, but I do not know
> how to set up the route.
> 
> If i do a netstat -rn, It tells me:
> Routing tables
> 
> Internet:
> Destination	Gateway	Flags     Refs     Use     Netif Expire
> default		198.51.79.14	UGc         1        0      ppp0
> 127.0.0.1	127.0.0.1	UH          1        0       lo0
> 198.51.79.14	198.51.81.225	UH          2        0      ppp0
> 198.51.81.224	link#1		UC          0        0 
> 198.51.81.226	127.0.0.1	UGHS        0        0       lo0
> 198.51.81.230	0:20:af:e9:4c:80	UHLW        1       54       ed1   1150
> 198.51.81.255	link#1		UHLW        1       14 
> 224		link#1		UCS         0        0 

now is your freebsd machine 81.225 or 81.224 or 81.226...  above it has 
the packets for your isp going through 81.225...  yet your ethernet card 
is 81.224...  and 81.226 is routed to your local machine...  if you want 
to know...  I have a slip line to my isp... and I use 192.168.0.1 as both 
my ethernet ip address and the local address for the slip line...

> Will I have to add anything with route? > For my, local ethernet setup,
will I have to set up a nameserver?  I do know two of my ISP's DNS >
machines.  Should the other machines on the net use the FreeBSD box as
their gateway?  And > if so, which IP would they use, the ppp0 IP or the
ed1 IP??? 

I would recommend just a caching name server...  basicly a named.boot 
file that contains "cache . named.root" if I remeber right... this will 
allow regularly used names not have to be resolved over the ppp link...  
also...  yes... your ethernet machines should use your FreeBSD machine as 
their gateway... but you should only have one ip address... I'm not sure 
on what is "correct"... but I have always set it up using the same ip...  
hope this helps... TTYL..

John-Mark

gurney_j@efn.org
Modem/FAX: (503) 683-6954   (FreeBSD Box)

Live in Peace, destroy Micro$oft, support free software, run FreeBSD (unix)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.91.951003200942.4581A-100000>