From owner-freebsd-net@FreeBSD.ORG Tue Feb 13 16:43:12 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7E9F716A400 for ; Tue, 13 Feb 2007 16:43:12 +0000 (UTC) (envelope-from katherrafi@hcl.in) Received: from gws04.hcl.in (gws04.mail.hcl.in [203.105.186.20]) by mx1.freebsd.org (Postfix) with ESMTP id B5E4E13C4A6 for ; Tue, 13 Feb 2007 16:43:06 +0000 (UTC) (envelope-from katherrafi@hcl.in) Received: from gws04.hcl.in (gws04 [10.249.64.135]) by localhost.hcl.in (Postfix) with ESMTP id A6838360013 for ; Tue, 13 Feb 2007 22:01:51 +0530 (IST) Received: from chn-egw02-out.corp.hcl.in (unknown [10.249.64.38])by gws04.hcl.in (Postfix) with ESMTP id 83C3A36000Ffor ; Tue, 13 Feb 2007 22:01:51 +0530 (IST) Received: from CHN-HCLT-EVS01.HCLT.CORP.HCL.IN ([10.101.26.14]) by chn-egw02-out.corp.hcl.in with Microsoft SMTPSVC(6.0.3790.1830); Tue, 13 Feb 2007 22:01:51 +0530 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Date: Tue, 13 Feb 2007 22:01:33 +0530 Message-ID: <6B2C2CD6EB6A2743950CB51B60DEB946278EDA@CHN-HCLT-EVS01.HCLT.CORP.HCL.IN> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: "route add" how it behaves Thread-Index: AcdPjGyOIVR4SiyNQjqANbOXsWXtMg== From: "Kather Rafi -TLS,Chennai" To: X-OriginalArrivalTime: 13 Feb 2007 16:31:51.0226 (UTC) FILETIME=[76E7B1A0:01C74F8C] X-imss-version: 2.046 X-imss-result: Passed X-imss-scanInfo: M:T L:E SM:1 X-imss-tmaseResult: TT:1 TS:-10.4586 TC:1F TRN:57 TV:3.6.1039(14996.003) X-imss-scores: Clean:100.00000 C:0 M:0 S:0 R:0 X-imss-settings: Baseline:2 C:2 M:2 S:2 R:2 (0.0000 0.0000) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: "route add" how it behaves X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Feb 2007 16:43:12 -0000 Hi all, I am new to FreeBSD. I want to know how the "route add " is working for the network routes and host routes in the case of with out specifying the gateway. In linux we can add like "route add -host 10.0.12.24 eth0" but in FreeBSD it should be like "route add -host 10.0.12.24 -iface fxp0" I want to know 1. how the flag -iface provides gateway to the route inside the kernel.? 2. If it does not provide the gateway address how it identifies the ifaddr inside the kernel (ie interface address for the particular interface)? =20 Thanks and Regards , Kather Rafi Ibrahim =20 =20 DISCLAIMER: ---------------------------------------------------------------------------= -------------------------------------------- The contents of this e-mail and any attachment(s) are confidential and= intended for the named recipient(s) only. It shall not attach any liability on the originator or HCL or its= affiliates. Any views or opinions presented in=20 this email are solely those of the author and may not necessarily reflect= the opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification,= distribution and / or publication of=20 this message without the prior written consent of the author of this e-mail= is strictly prohibited. If you have=20 received this email in error please delete it and notify the sender= immediately. Before opening any mail and=20 attachments please check them for viruses and defect. ---------------------------------------------------------------------------= --------------------------------------------