From owner-freebsd-doc Thu Nov 29 7:34: 3 2001 Delivered-To: freebsd-doc@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id 43D0E37B422 for ; Thu, 29 Nov 2001 07:33:46 -0800 (PST) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.6/8.11.2) id fATFXac60288; Thu, 29 Nov 2001 17:33:36 +0200 (EET) (envelope-from ru) Date: Thu, 29 Nov 2001 17:33:36 +0200 From: Ruslan Ermilov To: Ceri Cc: freebsd-doc@FreeBSD.ORG Subject: Re: docs/32373: Bad ifconfig(8) alias advice in FAQ 10.9 Message-ID: <20011129173336.A54658@sunbay.com> References: <200111291410.fATEA1191309@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200111291410.fATEA1191309@freefall.freebsd.org> User-Agent: Mutt/1.3.23i Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Thu, Nov 29, 2001 at 06:10:01AM -0800, Ceri wrote: > The following reply was made to PR docs/32373; it has been noted by GNATS. > > From: Ceri > To: Peter Pentchev > Cc: freebsd-gnats-submit@freebsd.org > Subject: Re: docs/32373: Bad ifconfig(8) alias advice in FAQ 10.9 > Date: Thu, 29 Nov 2001 14:05:42 +0000 > > > > > Maybe "..as an address already configured on the interface"? > > It is quite possible (and quite common) to configure an Ethernet > > interface with several different addresses on several different subnets. > > Fair point. > This one ? > > Ceri > > --- doc/en_US.ISO8859-1/books/faq/book.sgml.old Thu Nov 29 13:18:34 2001 > +++ doc/en_US.ISO8859-1/books/faq/book.sgml Thu Nov 29 14:03:37 2001 > @@ -8802,10 +8802,15 @@ > How can I setup Ethernet aliases? > > > - Add netmask 0xffffffff to your > - &man.ifconfig.8; command-line like the following: > + If the alias is on the same subnet as an address already configured on > + the interface, then add netmask 0xffffffff to your > + &man.ifconfig.8; command-line, as in the following: > > - &prompt.root; ifconfig ed0 alias 204.141.95.2 netmask 0xffffffff > + &prompt.root; ifconfig ed0 alias 10.20.30.40 netmask 0xffffffff > + > + Otherwise, just specify the network address and netmask as usual: > + > + &prompt.root; ifconfig ed0 alias 172.16.141.5 netmask 0xffffff00 > > > Newer ifconfig(8) supports the address/bits syntax. :-) Cheers, -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message