From owner-freebsd-questions@FreeBSD.ORG Fri Sep 9 16:23:38 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AA46016A41F for ; Fri, 9 Sep 2005 16:23:38 +0000 (GMT) (envelope-from deltaski@earthlink.net) Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5ACB043D45 for ; Fri, 9 Sep 2005 16:23:38 +0000 (GMT) (envelope-from deltaski@earthlink.net) Received: from [192.168.1.47] ([71.114.180.162]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0IMK00LJO5JDWVR0@vms046.mailsrvcs.net> for freebsd-questions@freebsd.org; Fri, 09 Sep 2005 11:23:38 -0500 (CDT) Date: Fri, 09 Sep 2005 11:25:05 -0500 From: deltaski@earthlink.net In-reply-to: <200509090758.49395.kstewart@owt.com> To: Kent Stewart Message-id: <200509091125.05724.deltaski@earthlink.net> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7bit Content-disposition: inline References: <200509090939.47357.deltaski@earthlink.net> <200509090758.49395.kstewart@owt.com> User-Agent: KMail/1.7.2 Cc: freebsd-questions@freebsd.org Subject: Re: Home Network Setup Problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Sep 2005 16:23:38 -0000 On Friday 09 September 2005 09:58 am, you wrote: > On Friday 09 September 2005 07:39 am, deltaski@earthlink.net wrote: > > Thank you all, who have considered this message! > > > > I am learning BSD with 3 successful units. 1-100mhz pent. running > > 4.11 1-180mhz pent. running 5.4 and one 266mhz AMD running 5.4 > > > > I have learned the ins and outs of X, changing rc.conf and am quite > > good at reinstalling the system after a few "learning" adjustments. > > > > Just for fun and my own enjoyment in learning, I have now accepted > > the challenge of my own home network. I have been able to connect all > > boxes to my DSL router with DHCP and manual IP assignments and > > changed/setup NIC's with ifconfig. My reference materal is the > > Handbook from FreeBSD.org and "The Complete FreeBSD" by Greg Lehey. > > > > Now the problem! > > > > DSL is 192.168.1.1 - Box B has two NIC's rl0=192.168.1.100 netmask > > 255.255.255.0 and is connected only to 192.168.1.1 ping works/outside > > internet works. > > Box B second NIC rl1=172.16.1.1 netmask 255.255.255.0 and is > > connected to a standalone switch/router. > > > > Box A has one NIC eth0=172.16.1.35 and is connected to the standalone > > switch/router. Box A can ping 172.16.1.35 and 172.16.1.1 on box b. It > > can NOT ping 192.168.1.1 or access any outside internet. > > > > >From Box B keyboard, I can ping > > > > 192.168.1.1/192.168.1.100/172.16.1.1/172.16.1.35 > > > > >From Box A keyboard, I can ping only 172.16.1.35/172.16.1.1 > > > > I have tried ifconfig rl0 192.168.1.100 172.16.1.1 netmask > > 255.255.255.0 among many other configurations without success. > > > > >From my reading, I think the error of my ways is in the Box B > > > between nic rl0 > > > > and rl1. The data packets are not being forwarded from rl1 to rl0 or > > rl0 to rl1. Somewhere I have missed something. If anyone could point > > me in the correct direction, it would be greatly appreciated. > > In your /etc/rc.conf, you need to tell machine B that it is a gateway. > Since you are using RFC1918 IP addresses, you probably should turn on > natd. It is much easier if the switch is right after your DSL because > then, you don't need B to be a gateway and you don't need to run ipfw > to get natd. > > Kent Kent, natd is turned on, default gateway is set. I understand your suggestion of changing the location of the switch, but, I simply wish to learn the setup of a gateway machine. Thank you for your input. Donald