From owner-freebsd-questions Wed Sep 25 00:50:53 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id AAA23703 for questions-outgoing; Wed, 25 Sep 1996 00:50:53 -0700 (PDT) Received: from lib.amu.edu.pl (bogusz@lib.amu.edu.pl [150.254.100.254]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id AAA23639 for ; Wed, 25 Sep 1996 00:50:48 -0700 (PDT) From: bogusz@lib.amu.edu.pl Received: (from bogusz@localhost) by lib.amu.edu.pl (8.6.12/8.6.9) id IAA07606; Wed, 25 Sep 1996 08:53:42 +0200 Date: Wed, 25 Sep 1996 08:53:42 +0200 (MET DST) To: mitch@hardware.com cc: questions@FreeBSD.org Subject: Re: Private network & routing to the internet via PPP w/one IP In-Reply-To: <3248045D.5173@fsl.noaa.gov> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk On Tue, 24 Sep 1996, Sean Kelly wrote: > Mitch James wrote: > > My question is: Can > > FreeBSD 2.1.5 route the trafic for a private IP network as it comes on the > > CD-Rom without any other software? > > It sure can. I do this with my systems at home: one FreeBSD host has a > ppp connection to the Internet and an Ethernet interface to all the > other FreeBSD hosts. You just need to edit /etc/sysconfig and set the > gateway option to YES: > > # If you want this host to be a gateway, set to YES. > gateway=YES > > Also, make sure you've set up routing correctly. It means - do not forget following lines (an example from my router's sysconfig) network_interfaces="ed0 ed1 lo0" ifconfig_ed0="inet 150.254.178.65 netmask 255.255.255.192" ifconfig_ed1="inet 150.254.162.217 netmask 255.255.255.252" ifconfig_lo0="inet localhost" >Then, reboot your > system. Remember to set the irqs and I/Os correctly (type -c at startup to run the boot interpreter) for both your cards. You will also have to run route -q Cheers, Bogusz