summaryrefslogtreecommitdiffstats
path: root/sbin/ifconfig
diff options
context:
space:
mode:
authorjesper <jesper@FreeBSD.org>2001-05-05 19:53:20 +0000
committerjesper <jesper@FreeBSD.org>2001-05-05 19:53:20 +0000
commitda4bd71ba54c6cef03c8b248a7dd42b16a7b348e (patch)
tree2e34ae5ab9dd9156916bfa807fdab53969a5b6ec /sbin/ifconfig
parentbe0936b342aa7da598866dfcc826c967f90b96d1 (diff)
downloadFreeBSD-src-da4bd71ba54c6cef03c8b248a7dd42b16a7b348e.zip
FreeBSD-src-da4bd71ba54c6cef03c8b248a7dd42b16a7b348e.tar.gz
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>
Diffstat (limited to 'sbin/ifconfig')
-rw-r--r--sbin/ifconfig/ifconfig.812
1 files changed, 11 insertions, 1 deletions
diff --git a/sbin/ifconfig/ifconfig.8 b/sbin/ifconfig/ifconfig.8
index e684d4a..1517055 100644
--- a/sbin/ifconfig/ifconfig.8
+++ b/sbin/ifconfig/ifconfig.8
@@ -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
OpenPOWER on IntegriCloud