From owner-freebsd-questions Tue Feb 6 05:30:52 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id FAA25859 for questions-outgoing; Tue, 6 Feb 1996 05:30:52 -0800 (PST) Received: from uswat.advtech.uswest.com (uswat.advtech.uswest.com [130.13.16.1]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id FAA25846 for ; Tue, 6 Feb 1996 05:30:50 -0800 (PST) Received: from egate.mnet.uswest.com ([151.116.23.138]) by uswat.advtech.uswest.com (8.7.3/8.7.3) with ESMTP id GAA02658; Tue, 6 Feb 1996 06:30:48 -0700 (MST) Received: from easthub (easthub.mnet.uswest.com [151.117.26.86]) by egate.mnet.uswest.com (8.7.1/8.7.1) with SMTP id GAA18867; Tue, 6 Feb 1996 06:38:48 -0700 (MST) Received: by easthub.mnet.uswest.com (M-Net Hub.951228) Received: from astro.acs.uswest.com by acs.uswest.com (5.x/SMI-SVR4) id AA28694; Tue, 6 Feb 1996 07:30:41 -0600 Received: from kermit.acs.uswest.com by astro.acs.uswest.com (SMI-8.6/SMI-SVR4) id HAA00727; Tue, 6 Feb 1996 07:30:32 -0600 From: ptroot@uswest.com (Paul T. Root) Received: by kermit.acs.uswest.com (5.x/SPARCbook_POP1.1) id AA02222; Tue, 6 Feb 1996 07:30:31 -0600 Message-Id: <9602061330.AA02222@kermit.acs.uswest.com> Subject: Re: Static routes for multiple subnets? To: henrich@crh.cl.msu.edu (Charles Henrich) Date: Tue, 6 Feb 1996 07:30:30 -0600 (CST) Cc: freebsd-questions@freebsd.org In-Reply-To: <199602060603.BAA08846@crh.cl.msu.edu> from "Charles Henrich" at Feb 6, 96 01:03:11 am X-Organization: !nterprise Networking Services X-Phone: (612) 663-1979 X-Fax: (612) 663-8030 X-Page: (800) SKY-PAGE PIN: 537-7270 X-Address: 200 S. 5th St., Suite 1100 X-Address: Minneapolis, MN 55402 X-Mailer: ELM [version 2.4 PL25] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org Precedence: bulk In a previous message, Charles Henrich said: > > Okay, Im almost certain this should be doable, but I cant figure out how. > > I have a local lan with 2 class C's on the lan. My FreeBSD box has an IP in > In the first class C, the box I want to get to has an IP in the second class C. > I want to add a default route for the second class C network on my box so all > my packets dont bounce through the default router. Can this be done, and if so > how? Sounds pretty easy. Some numbers would be nice though. Ok. Lets say your 1st class C is 192.100.1.0 and your 2nd is 192.100.2.0. Your default gateway (to the internet) will be 192.100.1.1 and your gateway to the 2 net will be 192.100.1.2. So: route add default 192.100.1.1 route add -net 192.100.2.0 192.100.1.2 Paul. -- Paul T. Root - USWEST !NTERPRISE Networking Service ptroot@uswest.com ("\''/").___..--''"`-._ `9_ 9 ) `-. ( ).`-.__.`) (_Y_.)' ._ ) `._ `. ``-..-' _..`--'_..-_/ /--'_.' .' (il).-'' ((i).' ((!.-'