Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Feb 1996 07:30:30 -0600 (CST)
From: (Paul T. Root)
To: (Charles Henrich)
Subject:   Re: Static routes for multiple subnets?
Message-ID:  <>
In-Reply-To: <> 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 and your 2nd is Your default
gateway (to the internet) will be and your gateway to the 2 net
will be So:

route add default 
route add -net


Paul T. Root - USWEST !NTERPRISE Networking Service

      `9_ 9  )   `-.  (     ).`-.__.`)          
      (_Y_.)'  ._   )  `._ `. ``-..-'       
    _..`--'_..-_/  /--'_.' .'              
   (il).-''  ((i).'  ((!.-'          

Want to link to this message? Use this URL: <>