Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Feb 1996 10:57:08 -0500 (EST)
From:      Charles Henrich <henrich@crh.cl.msu.edu>
To:        ptroot@uswest.com (Paul T. Root)
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Static routes for multiple subnets?
Message-ID:  <199602061557.KAA10232@crh.cl.msu.edu>
In-Reply-To: <9602061330.AA02222@kermit.acs.uswest.com> from "Paul T. Root" at Feb 6, 96 07:30:30 am

next in thread | previous in thread | raw e-mail | index | archive | help
> 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

Thats was my point, I dont want a second gateway at .2.  I want my machine to
know that the second class C is also locally attached ethernet.  The solution
turns out to be:

route add -net 198.100.2.0 -interface hostname or 0 (not ed0 as one would
expect!)

-Crh

    Charles Henrich     Michigan State University     henrich@crh.cl.msu.edu

                     http://rs560.msu.edu/~henrich/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199602061557.KAA10232>