From owner-freebsd-questions Fri Sep 15 14:48: 0 2000 Delivered-To: freebsd-questions@freebsd.org Received: from java.dpcsys.com (java.dpcsys.com [206.16.184.7]) by hub.freebsd.org (Postfix) with ESMTP id D106A37B423 for ; Fri, 15 Sep 2000 14:47:58 -0700 (PDT) Received: from localhost (dan@localhost) by java.dpcsys.com (8.10.0.Beta12/8.10.0.Beta12) with SMTP id e8FLtXR03741; Fri, 15 Sep 2000 14:55:33 -0700 (PDT) Date: Fri, 15 Sep 2000 14:55:33 -0700 (PDT) From: Dan Busarow To: "Unice, Kyle" Cc: "'freebsd-questions@FreeBSD.ORG'" Subject: Re: Newbie net config question In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 15 Sep 2000, Unice, Kyle wrote: > Questions: > 1. Is there some kindoff document for FreeBSD 4.1 on how to do this? Possibly, but it is extremely easy so a document isn't really necessary. > 2. Should the IP Gateway for my local net (192.168.x.x) have a gateway > address of 192.168.x.y that is the IP address of my internal network nic on > the gateway or should the gateway for both nics be set to my ISPs gateway? Let's use some real number to make it clear. Internal network, 192.168.1.0/24 External network, 206.16.184.0/24 All changes (other than rc.firewall) go in /etc/rc.conf You don't need the firewall stuff to get the network up so you may want to set firewall_enable="NO" at first. Change NIC types to suite and these are the lines required to setup a gateway machine. network_interfaces="fxp0 fxp1 lo0" ifconfig_fxp0="inet 206.16.184.7 netmask 255.255.255.0" ifconfig_fxp1="inet 192.168.1.1 netmask 255.255.255.0" defaultrouter="206.16.184.1" gateway_enable="NO" That's it. Reboot and you'll have a working gateway. Hosts on the internal network should use 192.168.1.1 for their default gateway. Dan -- Dan Busarow 949 443 4172 Dana Point Communications, Inc. dan@dpcsys.com Dana Point, California 83 09 EF 59 E0 11 89 B4 8D 09 DB FD E1 DD 0C 82 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message