summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2000-09-29 10:52:21 +0000
committerru <ru@FreeBSD.org>2000-09-29 10:52:21 +0000
commit3985f458893cb9beccd77acd4bc6cfb155f7d5ca (patch)
tree570c2e95767ad962d4ef5d5102052360fc8aead3 /sbin
parent8ab228cbb3a9d70cc8dda947fbb997ac9bbe493d (diff)
downloadFreeBSD-src-3985f458893cb9beccd77acd4bc6cfb155f7d5ca.zip
FreeBSD-src-3985f458893cb9beccd77acd4bc6cfb155f7d5ca.tar.gz
- Documented the host/bits syntax for destination argument.
- Documented that netmask could be specified with third argument.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/route/route.816
1 files changed, 13 insertions, 3 deletions
diff --git a/sbin/route/route.8 b/sbin/route/route.8
index d8a36b9..f475f07 100644
--- a/sbin/route/route.8
+++ b/sbin/route/route.8
@@ -133,6 +133,7 @@ The other commands have the following syntax:
.Ar command
.Op Fl net No \&| Fl host
.Ar destination gateway
+.Op Ar netmask
.Ed
.Pp
where
@@ -142,7 +143,8 @@ is the destination host or network,
is the next-hop intermediary via which packets should be routed.
Routes to a particular host may be distinguished from those to
a network by interpreting the Internet address specified as the
-.Ar destination argument .
+.Ar destination
+argument.
The optional modifiers
.Fl net
and
@@ -160,6 +162,11 @@ or if the
is the symbolic name of a network, then the route is
assumed to be to a network; otherwise, it is presumed to be a
route to a host.
+Optionally, the
+.Ar destination
+could also be specified in the
+.Ar host Ns / Ns Ar bits
+format.
.Pp
For example,
.Li 128.32
@@ -171,10 +178,13 @@ is interpreted as
.Fl net Li 128.32
is interpreted as
.Li 128.32.0.0;
-and
.Fl net Li 128.32.130
is interpreted as
-.Li 128.32.130.0 .
+.Li 128.32.130.0;
+and
+.Li 192.168.0.0/16
+is interpreted as
+.Li 192.168.0.0 Fl netmask Li 255.255.0.0 .
.Pp
A
.Ar destination
OpenPOWER on IntegriCloud