From owner-freebsd-questions Mon Jun 3 08:32:19 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id IAA23987 for questions-outgoing; Mon, 3 Jun 1996 08:32:19 -0700 (PDT) Received: from premise.CS.Berkeley.EDU (root@premise.CS.Berkeley.EDU [128.32.33.172]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id IAA23978 for ; Mon, 3 Jun 1996 08:32:13 -0700 (PDT) Received: from premise.CS.Berkeley.EDU (localhost.Berkeley.EDU [127.0.0.1]) by premise.CS.Berkeley.EDU (8.6.11/8.6.9) with ESMTP id IAA27560; Mon, 3 Jun 1996 08:29:42 -0700 Message-Id: <199606031529.IAA27560@premise.CS.Berkeley.EDU> X-Mailer: exmh version 1.6.7 5/3/96 To: Garrett Wollman cc: "Christoph P. Kukulies" , freebsd-questions@freefall.freebsd.org Subject: Re: route command w/o metrics (why?) In-reply-to: Your message of "Mon, 03 Jun 1996 09:44:45 EDT." <9606031344.AA28071@halloran-eldar.lcs.mit.edu> From: bmah@cs.berkeley.edu (Bruce A. Mah) Reply-to: bmah@cs.berkeley.edu X-Face: g~c`.{#4q0"(V*b#g[i~rXgm*w;:nMfz%_RZLma)UgGN&=j`5vXoU^@n5v4:OO)c["!w)nD/!!~e4Sj7LiT'6*wZ83454H""lb{CC%T37O!!'S$S&D}sem7I[A 2V%N&+ Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 03 Jun 1996 08:29:40 -0700 Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Garrett Wollman writes: > < physik.rwth-aachen.de> said: > > > Just out of curiousity: Why does the BSD route command not require > > a metrics parameter? > > Why would it require one? What purpose would it serve? Well for starters, you could use a route with metric > 1 to set a backup route, in case a lower-metric route (configured using RIP or OSPF) went away. In most networks, this wouldn't be real useful because all of the routes would be advertised using a routing protocol anyways. However I've used it in situations where for administrative reasons I didn't have advertised routes through all of the links I was connected to. (If this was a bit vague on details, I'm trying to spare you the boring details of an experimental network setup we had here at Berkeley up until recently.) But for most situations (e.g. single-homed host, or multi-homed host running a routing protocol for all attached links) you're right, this doesn't serve a purpose. As a historical point, older BSD versions used to use the metric to distinguish between routes to directly-attached networks and routes through gateways. I always wondered why it couldn't figure this out from the list of interfaces in kernel. Cheers, Bruce.