Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 05 May 2001 11:08:55 -0700
From:      Dima Dorfman <dima@unixfreak.org>
To:        Jesper Skriver <jesper@FreeBSD.org>
Cc:        freebsd-doc@FreeBSD.org
Subject:   Re: cvs commit: src/sbin/ifconfig ifconfig.c 
Message-ID:  <20010505180855.A2DD13E28@bazooka.unixfreak.org>
In-Reply-To: <20010505184509.A5508@skriver.dk>; from jesper@FreeBSD.org on "Sat, 5 May 2001 18:45:09 %2B0200"

next in thread | previous in thread | raw e-mail | index | archive | help
Jesper Skriver <jesper@FreeBSD.org> writes:
> On Sat, May 05, 2001 at 11:03:14AM +0200, Jesper Skriver wrote:
> > Yes, it get something together, but man pages is woodoo to me, any good
> > guides ?
> 
> If someone could have a look at the diff I've made at 
> 
> http://people.FreeBSD.org/~jesper/ifconfig.8.diff

Looks pretty good.  I've cleaned up the markup and English a little,
and fixed your spacing problem (description snipped).  Diff attached.

Hope this helps,

					Dima Dorfman
					dima@unixfreak.org


Index: ifconfig.8
===================================================================
RCS file: /st/src/FreeBSD/src/sbin/ifconfig/ifconfig.8,v
retrieving revision 1.35
diff -u -r1.35 ifconfig.8
--- ifconfig.8	2001/02/01 16:32:06	1.35
+++ ifconfig.8	2001/05/05 18:07:06
@@ -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 @@
 .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 @@
 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

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-doc" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010505180855.A2DD13E28>