From owner-freebsd-doc Sat May 5 11: 8:59 2001 Delivered-To: freebsd-doc@freebsd.org Received: from bazooka.unixfreak.org (bazooka.unixfreak.org [63.198.170.138]) by hub.freebsd.org (Postfix) with ESMTP id 1189037B422; Sat, 5 May 2001 11:08:56 -0700 (PDT) (envelope-from dima@unixfreak.org) Received: from spike.unixfreak.org (spike [63.198.170.139]) by bazooka.unixfreak.org (Postfix) with ESMTP id A2DD13E28; Sat, 5 May 2001 11:08:55 -0700 (PDT) To: Jesper Skriver Cc: freebsd-doc@FreeBSD.org Subject: Re: cvs commit: src/sbin/ifconfig ifconfig.c In-Reply-To: <20010505184509.A5508@skriver.dk>; from jesper@FreeBSD.org on "Sat, 5 May 2001 18:45:09 +0200" Date: Sat, 05 May 2001 11:08:55 -0700 From: Dima Dorfman Message-Id: <20010505180855.A2DD13E28@bazooka.unixfreak.org> Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Jesper Skriver 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