Date: Tue, 6 Feb 1996 07:30:30 -0600 (CST) From: ptroot@uswest.com (Paul T. Root) To: henrich@crh.cl.msu.edu (Charles Henrich) Cc: freebsd-questions@freebsd.org Subject: Re: Static routes for multiple subnets? Message-ID: <9602061330.AA02222@kermit.acs.uswest.com> In-Reply-To: <199602060603.BAA08846@crh.cl.msu.edu> from "Charles Henrich" at Feb 6, 96 01:03:11 am
next in thread | previous in thread | raw e-mail | index | archive | help
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).' ((!.-'
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9602061330.AA02222>