From owner-freebsd-questions@FreeBSD.ORG Fri Jun 1 20:16:57 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6DC6916A41F for ; Fri, 1 Jun 2007 20:16:57 +0000 (UTC) (envelope-from lreid@cs.okstate.edu) Received: from a.cs.okstate.edu (a.cs.okstate.edu [139.78.113.1]) by mx1.freebsd.org (Postfix) with ESMTP id 504AF13C45A for ; Fri, 1 Jun 2007 20:16:57 +0000 (UTC) (envelope-from lreid@cs.okstate.edu) Received: from [172.18.0.137] (sky_cpfw-1.tulsatech.org [70.168.226.130]) by a.cs.okstate.edu (Postfix) with ESMTP id 60DF3A0891; Fri, 1 Jun 2007 15:16:56 -0500 (CDT) Message-ID: <46607EB6.9070202@cs.okstate.edu> Date: Fri, 01 Jun 2007 15:16:54 -0500 From: Reid Linnemann User-Agent: Thunderbird 2.0.0.0 (X11/20070517) MIME-Version: 1.0 To: bsenthil References: <4660673A.6080203@adventnet.com> <200706011416.02148.freebsd@dfwlp.com> <46607B8C.4080508@adventnet.com> In-Reply-To: <46607B8C.4080508@adventnet.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: add route entries in freebsd os. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jun 2007 20:16:57 -0000 Written by bsenthil on 06/01/07 15:03>> > Thanks Horne, > > I have two interfaces > eth0 - 192.168.1.5 (gateway - 192.168.1.2) > eth1 -192.168.2.5 (gatwway - 192.168.2.2) > > and i try to add router entries in below order ... > > route add -net 192.168.100.5 192.168.4.2 255.255.255.0 (??? inteligent > not enough to decide which network goes to which interface. which one it > take eth0 / eth1) > You haven't laid out how to get to the 192.168.4/24 network, so the interface that is connected to the default route is the only legitimate choice the routing machinery has.