From owner-freebsd-questions@FreeBSD.ORG Fri Jun 1 20:06:31 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 4FB7F16A46E for ; Fri, 1 Jun 2007 20:06:30 +0000 (UTC) (envelope-from bsenthil@adventnet.com) Received: from alps.manageengine.org (tapti.adventnet.co.in [203.199.211.109]) by mx1.freebsd.org (Postfix) with ESMTP id 34EE013C45B for ; Fri, 1 Jun 2007 20:06:29 +0000 (UTC) (envelope-from bsenthil@adventnet.com) Received: from smtp.india.adventnet.com (smtp.india.adventnet.com [192.168.4.41]) by alps.manageengine.org (8.13.8/8.13.4/Debian-3) with ESMTP id l51K6KCM009523 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sat, 2 Jun 2007 01:36:20 +0530 Received: from [192.168.111.179] (bsenthil.india.adventnet.com [192.168.111.179]) by smtp.india.adventnet.com (8.13.4/8.13.4/Debian-3) with ESMTP id l51K5Nev009380 for ; Sat, 2 Jun 2007 01:35:24 +0530 Message-ID: <46607B8C.4080508@adventnet.com> Date: Sat, 02 Jun 2007 01:33:24 +0530 From: bsenthil User-Agent: Mozilla Thunderbird 1.0.6-6mdk (X11/20050322) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4660673A.6080203@adventnet.com> <200706011416.02148.freebsd@dfwlp.com> In-Reply-To: <200706011416.02148.freebsd@dfwlp.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.90.1/3336/Fri Jun 1 16:58:33 2007 on mail-hub.india.adventnet.com X-Virus-Status: Clean 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:06:31 -0000 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. - bsenthil Jonathan Horne wrote: >On Friday 01 June 2007 13:36:42 bsenthil wrote: > > >>Hi, >> >>I want to add route entries in freebsd os. >> >>route [-n] command [-net | -host] destination gateway [netmask] >>route add -net 192.168.11.2 192.168.5.1 255.255.255.0 >> >>Problem :: I have two interface ,I want to specify device "xlo" or "xl1" >>to route . >> >>-bsenthil. >> >> >> >>_______________________________________________ >>freebsd-questions@freebsd.org mailing list >>http://lists.freebsd.org/mailman/listinfo/freebsd-questions >>To unsubscribe, send any mail to >>"freebsd-questions-unsubscribe@freebsd.org" >> >> > >i believe its already inteligent enough to decide which network goes to which >interface... unless you mean that you have 2 nics on the same subnet in the >same switch? > >cheers, > >