From owner-freebsd-questions Wed Feb 15 10:14:23 1995 Return-Path: questions-owner Received: (from root@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id KAA28719 for questions-outgoing; Wed, 15 Feb 1995 10:14:23 -0800 Received: from pax.inria.fr (pax.inria.fr [138.96.24.78]) by freefall.cdrom.com (8.6.9/8.6.6) with ESMTP id KAA28713 for ; Wed, 15 Feb 1995 10:14:21 -0800 Received: by pax.inria.fr (8.6.9/8.6.9) id TAA13438; Wed, 15 Feb 1995 19:14:05 +0100 Message-Id: <199502151814.TAA13438@pax.inria.fr> To: "Stephen Darragh" cc: questions@FreeBSD.org Subject: Re: Routing with subnets In-reply-to: your message of Wed, 15 Feb 1995 15:37:15 +0800. Date: Wed, 15 Feb 1995 19:14:04 +0100 From: Andres Vega Garcia Sender: questions-owner@FreeBSD.org Precedence: bulk : "Stephen Darragh" 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