From owner-freebsd-questions Wed Oct 22 18:10:17 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id SAA16455 for questions-outgoing; Wed, 22 Oct 1997 18:10:17 -0700 (PDT) (envelope-from owner-freebsd-questions) Received: from freebie.lemis.com (gregl1.lnk.telstra.net [139.130.136.133]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id SAA16448 for ; Wed, 22 Oct 1997 18:10:12 -0700 (PDT) (envelope-from grog@freebie.lemis.com) Received: (from grog@localhost) by freebie.lemis.com (8.8.7/8.8.5) id KAA05718; Thu, 23 Oct 1997 10:40:03 +0930 (CST) Message-ID: <19971023104002.13010@lemis.com> Date: Thu, 23 Oct 1997 10:40:02 +0930 From: Greg Lehey To: michael dorin Cc: questions@FreeBSD.ORG Subject: Re: routing help needed! References: <199710221756.RAA23153@chaski.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.84e In-Reply-To: <199710221756.RAA23153@chaski.com>; from michael dorin on Wed, Oct 22, 1997 at 05:56:36PM +0000 Organisation: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog Fight-Spam-Now: http://www.cauce.org Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Wed, Oct 22, 1997 at 05:56:36PM +0000, michael dorin wrote: > > Recently I posted a message regarding getting ppp going between > my isp and my small network. ppp is working fine, but I can't seem > to route anything using bsd as the gateway, except stuff the comes > off of bsd. > > How do I route things from the ethernet over to the network? > > I have six static ip address. > > xxx.xxx.xxx.233 is where the ppp connection comes up. > xxx.xxx.xxx.234,235,236,237,238 are my other routed addresses. > > How can I do this? You turn IP forwarding on: # sysctl -w net.inet.ip.forwarding=1 You can do this automatically at boot time by setting the following line in /etc/rc.conf: gateway_enable="YES" # Set to YES if this host will be a gateway. > How can I route packets for a machine named xxx.xxx.xxx.234 to the > internet? You tell the machine that X.233 is the Internet gateway. Make sure your net mask is set correctly: 255.255.255.248. Greg