- Documented the host/bits syntax for destination argument.

- Documented that netmask could be specified with third argument.
This commit is contained in:
Ruslan Ermilov 2000-09-29 10:52:21 +00:00
parent 4eed20b85f
commit ce6da1a92a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=66450

View File

@ -133,6 +133,7 @@ The other commands have the following syntax:
.Ar command .Ar command
.Op Fl net No \&| Fl host .Op Fl net No \&| Fl host
.Ar destination gateway .Ar destination gateway
.Op Ar netmask
.Ed .Ed
.Pp .Pp
where where
@ -142,7 +143,8 @@ is the destination host or network,
is the next-hop intermediary via which packets should be routed. is the next-hop intermediary via which packets should be routed.
Routes to a particular host may be distinguished from those to Routes to a particular host may be distinguished from those to
a network by interpreting the Internet address specified as the a network by interpreting the Internet address specified as the
.Ar destination argument . .Ar destination
argument.
The optional modifiers The optional modifiers
.Fl net .Fl net
and and
@ -160,6 +162,11 @@ or if the
is the symbolic name of a network, then the route is is the symbolic name of a network, then the route is
assumed to be to a network; otherwise, it is presumed to be a assumed to be to a network; otherwise, it is presumed to be a
route to a host. route to a host.
Optionally, the
.Ar destination
could also be specified in the
.Ar host Ns / Ns Ar bits
format.
.Pp .Pp
For example, For example,
.Li 128.32 .Li 128.32
@ -171,10 +178,13 @@ is interpreted as
.Fl net Li 128.32 .Fl net Li 128.32
is interpreted as is interpreted as
.Li 128.32.0.0; .Li 128.32.0.0;
and
.Fl net Li 128.32.130 .Fl net Li 128.32.130
is interpreted as 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 .Pp
A A
.Ar destination .Ar destination