From owner-freebsd-doc Sat May 5 12:47:10 2001 Delivered-To: freebsd-doc@freebsd.org Received: from freesbee.wheel.dk (freesbee.wheel.dk [193.162.159.97]) by hub.freebsd.org (Postfix) with ESMTP id 88F3537B424 for ; Sat, 5 May 2001 12:47:06 -0700 (PDT) (envelope-from jesper@skriver.dk) Received: by freesbee.wheel.dk (Postfix, from userid 1001) id B6CCF5D60; Sat, 5 May 2001 21:47:21 +0200 (CEST) Date: Sat, 5 May 2001 21:47:21 +0200 From: Jesper Skriver To: Dima Dorfman Cc: freebsd-doc@FreeBSD.org Subject: Re: cvs commit: src/sbin/ifconfig ifconfig.c Message-ID: <20010505214721.A7747@skriver.dk> References: <20010505184509.A5508@skriver.dk> <20010505180855.A2DD13E28@bazooka.unixfreak.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010505180855.A2DD13E28@bazooka.unixfreak.org>; from dima@unixfreak.org on Sat, May 05, 2001 at 11:08:55AM -0700 X-PGP-Fingerprint: 6B88 9CE8 66E9 E631 C9C5 5EB4 22AB F0EC F956 1C31 X-PGP-Public-Key: http://freesbee.wheel.dk/~jesper/gpgkey.pub Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sat, May 05, 2001 at 11:08:55AM -0700, Dima Dorfman wrote: > 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. Thanks a lot /Jesper > 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 > /Jesper -- Jesper Skriver, jesper(at)skriver(dot)dk - CCIE #5456 Work: Network manager @ AS3292 (Tele Danmark DataNetworks) Private: FreeBSD committer @ AS2109 (A much smaller network ;-) One Unix to rule them all, One Resolver to find them, One IP to bring them all and in the zone to bind them. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message