From owner-freebsd-questions Wed Oct 10 20:33:14 2001 Delivered-To: freebsd-questions@freebsd.org Received: from scaup.mail.pas.earthlink.net (scaup.mail.pas.earthlink.net [207.217.121.49]) by hub.freebsd.org (Postfix) with ESMTP id DA55437B415 for ; Wed, 10 Oct 2001 20:33:07 -0700 (PDT) Received: from blossom.cjclark.org (dialup-209.245.140.245.Dial1.SanJose1.Level3.net [209.245.140.245]) by scaup.mail.pas.earthlink.net (EL-8_9_3_3/8.9.3) with ESMTP id UAA25333; Wed, 10 Oct 2001 20:33:04 -0700 (PDT) Received: (from cjc@localhost) by blossom.cjclark.org (8.11.6/8.11.3) id f9B3WxJ06342; Wed, 10 Oct 2001 20:32:59 -0700 (PDT) (envelope-from cjc) Date: Wed, 10 Oct 2001 20:32:59 -0700 From: "Crist J. Clark" To: "John Holstein, IS" Cc: freebsd-questions@FreeBSD.ORG, cjclark@alum.mit.edu Subject: Re: gateway and multiple subnets round II Message-ID: <20011010203259.S387@blossom.cjclark.org> Reply-To: cjclark@alum.mit.edu References: <5.1.0.14.2.20011009143853.041e3ec8@pop.cotse.com> <5.1.0.14.2.20011009143853.041e3ec8@pop.cotse.com> <20011009232857.D387@blossom.cjclark.org> <5.1.0.14.2.20011010141951.0419e750@mail.cnpapers.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <5.1.0.14.2.20011010141951.0419e750@mail.cnpapers.com>; from jholstein@cnpapers.com on Wed, Oct 10, 2001 at 02:47:16PM -0400 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 On Wed, Oct 10, 2001 at 02:47:16PM -0400, John Holstein, IS wrote: > At 11:28 PM 10/9/2001 -0700, you wrote: [snip] > >So, are you saying the real picture is, > > > > 192.168.0.x -----} > > 192.168.1.x -----} > > }--Cisco Router--|ed0 FreeBSD GW ed1|---- internet > > 192.9.200.x -----} > > 192.9.205.x -----} > > This is exactly what I need to do. > > >If that's the case, you just need to add the routes on the FreeBSD > >gateway, > > > > # route add net 192.168.0.0 > > # route add net 192.168.1.0 > > # route add net 192.168.200.0 > > # route add net 192.168.205.0 > > > >Where is the IP address of the router's interface on > >the network with the FreeBSD box's ed0. > > > >To load these at boot, put something like, > > > > static_routes="0 1 200 205" > > route_0="net 192.168.0.0 " > > route_1="net 192.168.0.0 " > > route_200="net 192.168.200.0 " > > route_205="net 192.168.205.0 " > > > >In rc.conf(5). > > I think I am missing something. I have done the above, completely, > including adding the routes to rc.conf but if I sit a box on _any_ subnet > other than 192.9.200 (the same subnet as ed0), I cannot get out. OK, then the picture is not right. It should be (?), 192.168.0.x --} 192.168.1.x --}-Cisco Router-{ 192.9.200.x }-|ed0 FreeBSD GW ed1|- internet 192.9.205.x --} In this case, you need to take the references to 192.9.205.0 out of the routing stuff. (Sorry about the "192.168" typos where I should have put "192.9" in there. 192.9.205.0 is owned by Sun Microsystems, BTW. That you?) I'm sensing that you may not have your various networks properly subnetted here. Could _you_ draw us a picture with all of the networks (including masks) and gateways? -- Crist J. Clark cjclark@alum.mit.edu cjclark@jhu.edu cjc@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message