From owner-freebsd-questions Sat Mar 15 7:19: 6 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 5E86737B401 for ; Sat, 15 Mar 2003 07:19:04 -0800 (PST) Received: from ra.dweebsoft.com (ra.dweebsoft.com [209.237.40.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3A87043FD7 for ; Sat, 15 Mar 2003 07:19:01 -0800 (PST) (envelope-from daxbert_news@dweebsoft.com) Received: from ra.dweebsoft.com (localhost [127.0.0.1]) by ra.dweebsoft.com (8.12.6/8.12.6) with ESMTP id h2FFJ1Mc094533; Sat, 15 Mar 2003 07:19:01 -0800 (PST) (envelope-from daxbert_news@dweebsoft.com) Received: (from http@localhost) by ra.dweebsoft.com (8.12.6/8.12.3/Submit) id h2FFJ0Z2094532; Sat, 15 Mar 2003 07:19:00 -0800 (PST) X-Authentication-Warning: ra.dweebsoft.com: http set sender to daxbert_news@dweebsoft.com using -f Received: from 64.81.58.36 ( [64.81.58.36]) as user daxbert@localhost by ra.dweebsoft.com with HTTP; Sat, 15 Mar 2003 07:19:00 -0800 Message-ID: <1047741540.3e734464b7f13@ra.dweebsoft.com> Date: Sat, 15 Mar 2003 07:19:00 -0800 From: Daxbert To: "W. J. Williams" Cc: "" Subject: Re: five networks MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.1 X-Originating-IP: 64.81.58.36 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 Quoting "W. J. Williams" : > 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. > defaultrouter is used to define the host's router of last resort. It doesn't configure any interfaces on the host. If you want a BSD host to act as a router, it's advised that you have more than one NIC, and that you configure those NICs with valid IPs and netmasks for each connected network. example: tl0 and fxp0 as interfaces... ifconfig_tl0="inet 192.168.1.10 netmask 255.255.255.0" ifconfig_fxp0="inet 192.168.2.1 netmask 255.255.255.0" defaultrouter="192.168.1.1" gateway_enable="YES" router_enable="NO" The defaultrouter assumes that you want to use the DSL router as the default gateway for this host. I've set router_enable to "NO", because from the nature of your question, and the lack of complexity in your network, I doubt that you are actually running any routing protocols (RIP, etc.) which would need routed running. You'd be better served with plain static routes on each gateway. You don't really provide enough info to help further. --daxbert To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message