Date: Thu, 29 Nov 2001 06:10:01 -0800 (PST) From: Ceri <setantae@submonkey.net> To: freebsd-doc@freebsd.org Subject: Re: docs/32373: Bad ifconfig(8) alias advice in FAQ 10.9 Message-ID: <200111291410.fATEA1191309@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
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> 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?200111291410.fATEA1191309>