Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Nov 2001 17:33:36 +0200
From:      Ruslan Ermilov <ru@FreeBSD.ORG>
To:        Ceri <setantae@submonkey.net>
Cc:        freebsd-doc@FreeBSD.ORG
Subject:   Re: docs/32373: Bad ifconfig(8) alias advice in FAQ 10.9
Message-ID:  <20011129173336.A54658@sunbay.com>
In-Reply-To: <200111291410.fATEA1191309@freefall.freebsd.org>
References:  <200111291410.fATEA1191309@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <setantae@submonkey.net>
> To: Peter Pentchev <roam@ringlet.net>
> 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 @@
>             <para>How can I setup Ethernet aliases?</para>
>           </question><answer>
>  
>  -          <para>Add <literal>netmask 0xffffffff</literal> to your
>  -            &man.ifconfig.8; command-line like the following:</para>
>  +          <para>If the alias is on the same subnet as an address already configured on
>  +          the interface, then add <literal>netmask 0xffffffff</literal> to your
>  +          &man.ifconfig.8; command-line, as in the following:</para>
>  
>  -          <screen>&prompt.root; <userinput>ifconfig ed0 alias 204.141.95.2 netmask 0xffffffff</userinput></screen>
>  +          <screen>&prompt.root; <userinput>ifconfig ed0 alias 10.20.30.40 netmask 0xffffffff</userinput></screen>
>  +
>  +         <para>Otherwise, just specify the network address and netmask as usual:</para>
>  +
>  +         <screen>&prompt.root; <userinput>ifconfig ed0 alias 172.16.141.5 netmask 0xffffff00</userinput</screen>
>           </answer>
>         </qandaentry>
>  
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




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