Let ifconfig(8) catch up with the new functionality where

one can specify addresses and netmask in CIDR notation.

Submitted by:	Dima Dorfman <dima@unixfreak.org>
This commit is contained in:
Jesper Skriver 2001-05-05 19:53:20 +00:00
parent 5dc0b7cdd3
commit 12813062e3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=76295

View File

@ -44,7 +44,7 @@
.Ar interface
.Op Ar address_family
.Oo
.Ar address
.Ar address Ns Op Cm / Ns Ar prefixlength
.Op Ar dest_address
.Oc
.Op Ar parameters
@ -87,6 +87,11 @@ or a
.Tn DARPA
Internet address expressed in the Internet standard
.Dq dot notation .
.Pp
It is also possible to use the CIDR notation (also known as the
slash notation) to include the netmask.
That is, one can specify an address like
.Dl 192.168.0.1/16
.\" For the Xerox Network Systems(tm) family,
.\" addresses are
.\" .Ar net:a.b.c.d.e.f ,
@ -325,6 +330,11 @@ and 0's for the host part.
The mask should contain at least the standard network portion,
and the subnet field should be contiguous with the network
portion.
.Pp
The netmask can also be specified in CIDR notation after the address.
See the
.Ar address
option above for more information.
.It Cm prefixlen Ar len
(Inet6 only)
Specify that