Subject: bin/14286: route(8) missing "default" definition
To: None <gnats-bugs@gnats.netbsd.org>
From: None <reed@reedmedia.net>
List: netbsd-bugs
Date: 10/18/2001 06:37:04
>Number:         14286
>Category:       bin
>Synopsis:       route(8) is missing definition of "default" keyword
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 18 06:38:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        why does it ask for "current"?
>Organization:
http://bsd.reedmedia.net/
>Environment:
	
System: NetBSD rainier 1.5.1_BETA NetBSD 1.5.1_BETA (JCR-1.5-20010407) #0: Sat Apr 7 01:44:35 PDT 2001 reed@rainier:/usr/src/sys/arch/i386/compile/JCR-1.5-20010407 i386


>Description:
route(8) manual page for netbsd-1-5 is missing an
explanation for "default" keyword.
>How-To-Repeat:
man 8 route # and search for default
>Fix:
I see that route.8 for current has some examples, but still no definition
for "default".

Here is a idea:

--- /usr/src/sbin/route/route.8 Fri Jul 16 23:51:27 1999
+++ route.8     Thu Oct 18 06:24:38 2001
@@ -191,6 +191,14 @@
 is interpreted as
 .Li 128.32.130.0 .
 .Pp
+The keyword
+.Cm default
+can be used as the
+.Ar destination
+to set up a default route to a smart
+.Ar gateway.
+If no other routes match, this default route will be used as a last resort.
+.Pp
 If the destination is directly reachable
 via an interface requiring
 no intermediary system to act as a gateway, the

I think that 0 (zero) can also be used for default; maybe this should
be explained too.

Also, please move examples to netbsd-1-5 branch.
>Release-Note:
>Audit-Trail:
>Unformatted: