From owner-freebsd-questions Tue Oct 3 20:16:36 1995 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id UAA15335 for questions-outgoing; Tue, 3 Oct 1995 20:16:36 -0700 Received: from who.cdrom.com (who.cdrom.com [192.216.222.3]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id UAA15330 for ; Tue, 3 Oct 1995 20:16:33 -0700 Received: from nike.efn.org (garcia.efn.org [198.68.17.5]) by who.cdrom.com (8.6.12/8.6.11) with ESMTP id UAA04300 for ; Tue, 3 Oct 1995 20:15:38 -0700 Received: (from gurney_j@localhost) by nike.efn.org (8.6.11/8.6.9) id UAA04594; Tue, 3 Oct 1995 20:16:00 -0700 Date: Tue, 3 Oct 1995 20:15:59 -0700 (PDT) From: John-Mark Gurney Reply-To: John-Mark Gurney To: Andrew Solberg cc: "'FreeBSD Questions'" Subject: Re: small subnet, PPP, and Internet In-Reply-To: <01BA91B0.363933A0@apollo> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org Precedence: bulk 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)