From owner-freebsd-questions Mon Jun 3 05:16:12 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id FAA11297 for questions-outgoing; Mon, 3 Jun 1996 05:16:12 -0700 (PDT) Received: from tepcogw.tepco.co.jp (tepcogw.tepco.co.jp [202.32.50.1]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id FAA11290 for ; Mon, 3 Jun 1996 05:16:09 -0700 (PDT) Received: from tepcofw3.tepco.co.jp (tepcofw3.tepco.co.jp [202.32.50.7]) by tepcogw.tepco.co.jp (8.7.5/3.4W4-tepcogw) with ESMTP id VAA29009; Mon, 3 Jun 1996 21:13:12 +0900 (JST) Received: from h1009051.smtpgw.tepco.co.jp (smtpgw [130.0.9.51]) by tepcofw3.tepco.co.jp (8.7.5/3.4W4-tepcofw3) with SMTP id VAA17589; Mon, 3 Jun 1996 21:12:30 +0900 (JST) Received: from j1102041 (h1009043) by h1009051.smtpgw.tepco.co.jp (4.1/6.4J.6) id AA21254; Mon, 3 Jun 96 21:12:33 JST Received: from j1101044 by j1102041 (AIX 3.2/UCB 5.64/4.03) id AA154311; Mon, 3 Jun 1996 21:12:57 +0900 Received: from loopback by j1101044.pmail.tepco.co.jp (AIX 3.2/UCB 5.64/4.03) id AA21748; Mon, 3 Jun 1996 21:13:24 +0900 Received: by pmail.tepco.co.jp (ATSON-1) ; 3 Jun 96 21:13:24 JST Mime-Version: 1.0 Subject: Re: route command w/o metrics (why?) In-Reply-To: <199606030821.KAA04825@gilberto.physik.rwth-aachen.de> From: Motonori Shindou X-From: =?ISO-2022-JP?B?GyRCP0pGIyEhO3E3MRsoSg==?= Date: 3 Jun 96 21:13:20 JST To: kuku@gilberto.physik.rwth-aachen.de Cc: freebsd-questions@freefall.freebsd.org Lines: 30 Message-Id: <31B2D6E0.C630.001@pmail.tepco.co.jp> Content-Type: text/plain; charset=ISO-2022-JP Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Hi, > Just out of curiousity: Why does the BSD route command not require > a metrics parameter? It happened to me that I forgot to give > the metric on a HP-UX machine resulting in the fact that the > gateway did not get the G flag (netstat -r) and it took me a hell of > a time to find it out. My understanding: Even in the system that requires metric parameter in route command (e.g. SunOS), "metric" doesn't mean much. It just has a meaning whether it's zero or non-zero. The former creates a routing table for directly-connected host/network (without -G flag) while the latter creates one for not-directly-connected (with -G flag). It doesn't matter whether the metric is 1, 2, 3 or whatever greater than zero. This is probably the reason why recent system (including FreeBSD) doesn't require metric parameter in the route command. Since a routing table for a directly connected network is created when the interface is initiallized with ifconfig command, 'route add' comamnd creates an entry for not-directed-connected host/network in the routing table. Is this understanding correct? Is there any usage of the metric parameter in route add command? One possibility is the case it's compared with the metric exchanged by RIP, but I'm not sure... === Motonori Shindou Tokyo Electric Power Comany, Inc.