Subject: Re: route metric
To: None <tech-net@NetBSD.org>
From: Hanspeter Roth <hampi@rootshell.be>
List: tech-net
Date: 06/06/2005 11:43:22
  On Jun 06 at 09:39, Mike M. Volokhov spoke:

> On Fri, 3 Jun 2005 23:19:47 +0200
> Hanspeter Roth <hampi@rootshell.be> wrote:
> 
> > Hello,
> > 
> > is the metric attribute implemented in NetBSD routes?
> > If yes, how can one set it?
> > 
> > -Hanspeter
> 
> Hello!
> 
> For static routes use '-hopcount' option for route(8). For routed(8) or
> gated(8) please use the 'metric' keyword within context.

Thanks for your reply.
But it seems it's not possible to have two default routes with
different hopcounts.

I have a default route to gw1.
If I try
	route add default gw2 -hopcount 5
I get

writing to routing socket: File exists
add net default: gateway gw2: File exists

Is there something more to consider?
Or is it not allowed to have two default routes with different
hopcounts?

-Hanspeter