From owner-freebsd-questions@FreeBSD.ORG Fri Nov 7 16:15:11 2003 Return-Path: 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 7288C16A4CE for ; Fri, 7 Nov 2003 16:15:11 -0800 (PST) Received: from smtp07.wxs.nl (smtp07.wxs.nl [195.121.6.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7D3FE43FA3 for ; Fri, 7 Nov 2003 16:15:08 -0800 (PST) (envelope-from akruijff@www.kruijff.org) Received: from kruij557.speed.planet.nl (ipd50a97ba.speed.planet.nl [213.10.151.186]) by smtp07.wxs.nl (iPlanet Messaging Server 5.2 HotFix 1.14 (built Mar 18 2003)) with ESMTP id <0HO000054BD6FP@smtp07.wxs.nl> for freebsd-questions@FreeBSD.ORG; Sat, 08 Nov 2003 01:15:07 +0100 (MET) Received: from Alex.lan (localhost [127.0.0.1]) by kruij557.speed.planet.nl (8.12.8p2/8.12.8) with ESMTP id hA80FC3c005228; Sat, 08 Nov 2003 01:15:12 +0100 (CET envelope-from akruijff@Alex.lan) Received: (from akruijff@localhost) by Alex.lan (8.12.8p2/8.12.8/Submit) id hA80FBgW005227; Sat, 08 Nov 2003 01:15:11 +0100 (CET) Date: Sat, 08 Nov 2003 01:15:11 +0100 From: Alex de Kruijff In-reply-to: <4932DC46-1104-11D8-A162-003065A70D30@shire.net> To: "Chad Leigh -- Shire.Net LLC" Message-id: <20031108001510.GB4756@dds.nl> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Content-disposition: inline User-Agent: Mutt/1.4.1i References: <4932DC46-1104-11D8-A162-003065A70D30@shire.net> cc: freebsd-questions@FreeBSD.ORG Subject: Re: gateway/routing questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Nov 2003 00:15:11 -0000 On Fri, Nov 07, 2003 at 02:25:11AM -0700, Chad Leigh -- Shire.Net LLC wrote: > I used to have a situation like this but it was a few years ago and I > have forgotten how to set this up in detail. > > I have a class C network (public) and I have a FreeBSD box with lots of > aliases on it providing various services. There is also a Mandrake > Linux box that belongs to a customer sitting on my net as well. My > provider where I am colocated provides the gateway for my class C in > his fancy shmancy switch :-) . > > I want to add another box (a Linux one unfortunately for some high > performance Java 1.4 stuff that won't run on FreeBSD) but I want to > make it so that it is on a private class C that should co-exist with my > regular class C. > > Lets say my public one is (this is made up) 128.1.1.0. This is where > the FBSD box lives. I want to overlay 192.168.1.0 on my LAN. I will > give my FBSD box the address (alias) of 192.168.1.1 . The new Linux > box will have a bunch of addresses starting at 192.168.1.10 . > > The Linux box on the 192.168 network should not have any access going > out (so I don't need NAT for example) nor of course coming in. But the > FBSD box should continue to have its normal public access on 128.1.1.0 > network plus access the Linux box on 192.168. The Linux box should be > able to talk to the FBSD box. > > I think that all I need to do is add an alias address (and a static > route out the ethernet port?) to my BSD box and it should work. I > don't need anything else to have the BSD box live in this private > network as well as the public one, since the private network does not > need to get out at all. > > Is this reasoning correct? In my test lab here I cannot recreate this > exactly given some restrictions on how it is set up and so when I go > and take the Linux box and stick it in the data room on Friday it > needs to work without lots of trouble :-) You don't need static route at all. You only use this when you default route doesn't apply. This doesn't apply to you since you only have traffic on your 192.168.1.0/24 network. So all you need is an alias. -- Alex Articles based on solutions that I use: http://www.kruijff.org/alex/index.php?dir=docs/FreeBSD/