Clear up the advice in the FAQ for adding aliases to Ethernet

interfaces. One should only use a 255.255.255.255 netmask on aliases
that are within another address's subnet.

PR:		docs/32373
This commit is contained in:
Crist J. Clark 2002-02-19 00:23:25 +00:00
parent af793344e1
commit 0228a828b9
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=12248

View file

@ -8380,13 +8380,18 @@ Key F15 A A Menu Workplace Nop</programlisting>
<qandaentry>
<question id="ethernet-aliases">
<para>How can I setup Ethernet aliases?</para>
</question><answer>
<para>How can I set up Ethernet aliases?</para>
</question>
<para>Add <literal>netmask 0xffffffff</literal> to your
&man.ifconfig.8; command-line like the following:</para>
<screen>&prompt.root; <userinput>ifconfig ed0 alias 204.141.95.2 netmask 0xffffffff</userinput></screen>
<answer>
<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 192.0.2.2 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>