From owner-freebsd-questions@FreeBSD.ORG Fri Jun 1 20:19:56 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 6C9D616A482 for ; Fri, 1 Jun 2007 20:19:56 +0000 (UTC) (envelope-from wmoran@potentialtech.com) Received: from mail.potentialtech.com (internet.potentialtech.com [66.167.251.6]) by mx1.freebsd.org (Postfix) with ESMTP id 3F9A113C469 for ; Fri, 1 Jun 2007 20:19:56 +0000 (UTC) (envelope-from wmoran@potentialtech.com) Received: from vanquish.pgh.priv.collaborativefusion.com (pr40.pitbpa0.pub.collaborativefusion.com [206.210.89.202]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.potentialtech.com (Postfix) with ESMTP id 55CE8EBC78 for ; Fri, 1 Jun 2007 16:19:55 -0400 (EDT) Date: Fri, 1 Jun 2007 16:19:54 -0400 From: Bill Moran To: freebsd-questions@freebsd.org Message-Id: <20070601161954.dbd4a0f0.wmoran@potentialtech.com> In-Reply-To: <46607B8C.4080508@adventnet.com> References: <4660673A.6080203@adventnet.com> <200706011416.02148.freebsd@dfwlp.com> <46607B8C.4080508@adventnet.com> X-Mailer: Sylpheed 2.3.1 (GTK+ 2.10.11; i386-portbld-freebsd6.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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:19:56 -0000 In response to bsenthil : > 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) > > > route add -net 192.168.3.5 192.168.1.2 255.255.255.0 (inteligent enough to decide which network goes to which > interface) > > > route add -net 192.168.4.5 192.168.2.2 255.255.255.0 (inteligent enough to decide which network goes to which > interface) > > > Problem : How the freebsd os handle the first router entries. It will send it via the default router, which you didn't mention. However, there is an -interface modifier that can be used to control what you want. I don't think you're doing what you think you're doing, or at least, you're describing it poorly. Why not provide us with your existing configuration and the resultant errors? -- Bill Moran http://www.potentialtech.com