Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 01 Jan 2002 12:24:39 -0500
From:      Bill Moran <wmoran@potentialtech.com>
To:        Stefan Cars <stefan@globalwire.se>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Two different subnets, routing.
Message-ID:  <3C31F0D7.3040502@potentialtech.com>
References:  <Pine.LNX.4.40.0201011759260.4977-100000@tjatte.globalwire.se>

next in thread | previous in thread | raw e-mail | index | archive | help
Stefan Cars wrote:
> We are connected to the Internet using a gt-90 router and we have been
> assinged two ip-blocks. x.x.48.96/28 and x.x.49.192/27. Since the router
> is only going on 10mbit we would like to have all of our machines
> communicate directly and not through the router even if they are on
> different ip-blocks. In linux you can add a route saying "route add
> x.x.49.192/27 eth0" which makes it communicate directly on eth0 without
> going through the default gateway when going to that specific ip-block. Is
> it possible todo the same in freebsd ?

Yes, read the man page for route.  You'll be using the -interface switch.

-- 
Bill Moran
Potential Technology
http://www.potentialtech.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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