From owner-freebsd-questions Sat Mar 15 11:40:57 2003 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 98D3D37B401 for ; Sat, 15 Mar 2003 11:40:55 -0800 (PST) Received: from web13508.mail.yahoo.com (web13508.mail.yahoo.com [216.136.175.87]) by mx1.FreeBSD.org (Postfix) with SMTP id 1EE0543F85 for ; Sat, 15 Mar 2003 11:40:55 -0800 (PST) (envelope-from will@willardjwilliams.com) Message-ID: <20030315194054.93598.qmail@web13508.mail.yahoo.com> Received: from [80.133.181.129] by web13508.mail.yahoo.com via HTTP; Sat, 15 Mar 2003 11:40:54 PST Date: Sat, 15 Mar 2003 11:40:54 -0800 (PST) From: "W. J. Williams" Subject: Re: five networks To: Bill Moran , "W. J. Williams" Cc: freebsd-questions@freebsd.org In-Reply-To: <3E734435.8090401@potentialtech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --- Bill Moran wrote: > W. J. Williams wrote: > > why isn`t this working: > > > > 1. I would like to configure a separate network on five freebsd boxes. > > > > 192.168.0 > > 192.168.1 > > 192.168.2 > > 192.168.3 > > 192.168.4 > > > > > > 2. My DSL router has network 192.168.0, I also have one of my fbsd > boxes > > in this network (192.168.0.2) > > > > 3. I can add the other machines to the 192.168.0 network, no problem, > > using default router 192.168.0.1, broadcast 255.255.255.0, > > > > 4. I tried to configure 192.168.2.1 on one box, using > > gateway_enable="YES", router_enable="YES", > > defaultrouter=192.168.2.1....doesnt work. > > > > what am i doing wrong in getting this box up and running? > > You don't understand routing. > If you ifconfig a box to be 192.168.2.1/24 and then set the default > router > to be 192.168.2.1: the machine sends all traffic not destined for > 192.168.2.0/24 to itself to be routed. However, it didn't know how > to route the traffic the first time, thus it isn't going to work the > second time either. One good rule to remember is that a default gateway > should always be a different machine, and one that has _more_ routing > capability that the one you're configuring. > If I understand your description correctly, the default gateway should > be 192.168.0.1 for all these machines. > I can only assume that you're configuring the system in such a manner > for experimental purposes, as I can see no reason for such a > configuration > in practice. > You leave netmasks off in your description, but I'm assuming that you're > using /24 for everything. This means you'll have to put static routes > in > each machine to allow them to get to 192.168.0.1, as they'll have no way > to automatically reach that machine. The default router will also need > routes manually configured in order to be able to communicate back to > them > (unless it's running some sort of route discovery program). > > If you're not configuring the network like this for experimental > reasons, > then you're configuring it very poorly. A small network like you > describe should have all the machines on the same subnet: 192.168.0.2, > 192.168.0.3, 192.168.0.4, etc > > -- > Bill Moran > Potential Technologies > http://www.potentialtech.com > yes, purely for experimenting...I have a lab of different pc'S and am LEARNING as much as possible about FreeBSD. Once I iron out this routing thing (that I don`t understand as well as most), I will move on to simulating a VPN between different sites throughout America. All the machines are currently in the same network, same subnet 192.168.0 Will ===== Will Williams To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message