Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Feb 1995 19:14:04 +0100
From:      Andres Vega Garcia <Andres.Vega_Garcia@sophia.inria.fr>
To:        "Stephen Darragh" <stephen@belgarath.it.com.au>
Cc:        questions@FreeBSD.org
Subject:   Re: Routing with subnets 
Message-ID:  <199502151814.TAA13438@pax.inria.fr>
In-Reply-To: your message of Wed, 15 Feb 1995 15:37:15 %2B0800.

next in thread | raw e-mail | index | archive | help
: "Stephen Darragh" <stephen@belgarath.it.com.au> wrote:
  
>G'day...
>
>I'm using FreeBSD 2.1 development (950210 snapshot).
>
>I want to have this route :
>
>203.8.116.40     203.8.116.4        UGSc        0        0       ed0
>
>(with netmask 255.255.255.248)
>
>route traffic to 203.8.116.41/42/43/44/45/46 via 203.8.116.4 instead of via
>the default route.
>
>Why doesn't it?
>
>... Stephen
 
	Assuming you are in the net 203.8.116.0 this should work:

	route add -net 203.8.116.40 203.8.116.4

	This way, according to the netmask, your host's IP addr and
203.8.116.4 belong to the same subnet.

	Remember the addrs (host) you use to route to other nets, must be one
in your host's subnet.
 
Andres

------------------------------
INRIA Sophia-Antipolis, France
      avega@pax.inria.fr



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