White space fix only. Translators can ignore.

Sponsored by:	iXsystems
This commit is contained in:
Dru Lavigne 2014-04-01 23:24:54 +00:00
parent 7368863960
commit 2fd8e9b78e
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=44415

View file

@ -489,10 +489,10 @@ static_routes="internalnet2"
route_internalnet2="-net 192.168.2.0/24 192.168.1.2"</programlisting> route_internalnet2="-net 192.168.2.0/24 192.168.1.2"</programlisting>
<para>The <literal>static_routes</literal> configuration <para>The <literal>static_routes</literal> configuration
variable is a list of strings separated by a space, where variable is a list of strings separated by a space, where each
each string references a route name. The variable string references a route name. The variable
<literal>route_<replaceable>internalnet2</replaceable></literal> contains the static <literal>route_<replaceable>internalnet2</replaceable></literal>
route for that route name.</para> contains the static route for that route name.</para>
<para>Using more than one string in <para>Using more than one string in
<literal>static_routes</literal> creates multiple static <literal>static_routes</literal> creates multiple static
@ -2009,7 +2009,8 @@ wpa_pairwise=CCMP TKIP <co xml:id="co-ap-wpapsk-pwise"/></programlisting>
clients can associate with it. See <xref clients can associate with it. See <xref
linkend="network-wireless-wpa"/> for more details. It linkend="network-wireless-wpa"/> for more details. It
is possible to see the stations associated with the is possible to see the stations associated with the
<acronym>AP</acronym> using <command>ifconfig <replaceable>wlan0</replaceable> list <acronym>AP</acronym> using <command>ifconfig
<replaceable>wlan0</replaceable> list
sta</command>.</para> sta</command>.</para>
</sect4> </sect4>
</sect3> </sect3>
@ -2143,7 +2144,8 @@ freebsdap 00:11:95:c3:0d:ac 1 54M 22:1 100 EPS</screen>
Debugging messages can be enabled in the 802.11 protocol Debugging messages can be enabled in the 802.11 protocol
support layer using &man.wlandebug.8;. On a &os; system support layer using &man.wlandebug.8;. On a &os; system
prior to &os;&nbsp;9.1, this program can be found in prior to &os;&nbsp;9.1, this program can be found in
<filename class="directory">/usr/src/tools/tools/net80211</filename>. <filename
class="directory">/usr/src/tools/tools/net80211</filename>.
For example, to enable console messages related to For example, to enable console messages related to
scanning for access points and the 802.11 protocol scanning for access points and the 802.11 protocol
handshakes required to arrange communication:</para> handshakes required to arrange communication:</para>
@ -2151,9 +2153,9 @@ freebsdap 00:11:95:c3:0d:ac 1 54M 22:1 100 EPS</screen>
<screen>&prompt.root; <userinput>wlandebug -i <replaceable>ath0</replaceable> +scan+auth+debug+assoc</userinput> <screen>&prompt.root; <userinput>wlandebug -i <replaceable>ath0</replaceable> +scan+auth+debug+assoc</userinput>
net.wlan.0.debug: 0 =&gt; 0xc80000&lt;assoc,auth,scan&gt;</screen> net.wlan.0.debug: 0 =&gt; 0xc80000&lt;assoc,auth,scan&gt;</screen>
<para>Many useful statistics are maintained by <para>Many useful statistics are maintained by the 802.11
the 802.11 layer and <command>wlanstats</command>, found layer and <command>wlanstats</command>, found in <filename
in <filename class="directory">/usr/src/tools/tools/net80211</filename>, class="directory">/usr/src/tools/tools/net80211</filename>,
will dump this information. These statistics should will dump this information. These statistics should
display all errors identified by the 802.11 layer. display all errors identified by the 802.11 layer.
However, some errors are identified in the device drivers However, some errors are identified in the device drivers
@ -3329,16 +3331,17 @@ BEGEMOT-BRIDGE-MIB::begemotBridgeDefaultBridgeIf.0 s bridge2</screen>
<para>&os; provides the &man.lagg.4; interface which can be used <para>&os; provides the &man.lagg.4; interface which can be used
to aggregate multiple network interfaces into one virtual to aggregate multiple network interfaces into one virtual
interface in order to provide failover and link aggregation. interface in order to provide failover and link aggregation.
Failover allows traffic to continue to flow as long as at least one Failover allows traffic to continue to flow as long as at least
aggregated network interface has an established link. Link aggregation works best on one aggregated network interface has an established link. Link
switches which support <acronym>LACP</acronym>, as this aggregation works best on switches which support
protocol distributes traffic bi-directionally while responding <acronym>LACP</acronym>, as this protocol distributes traffic
to the failure of individual links.</para> bi-directionally while responding to the failure of individual
links.</para>
<para>The aggregation protocols supported by the lagg interface <para>The aggregation protocols supported by the lagg interface
determine which ports are used for outgoing traffic and determine which ports are used for outgoing traffic and whether
whether or not a specific port accepts incoming traffic. The or not a specific port accepts incoming traffic. The following
following protocols are supported by &man.lagg.4;:</para> protocols are supported by &man.lagg.4;:</para>
<variablelist> <variablelist>
<varlistentry> <varlistentry>
@ -4905,19 +4908,18 @@ route_hostD="192.168.173.4 hatm0 0 102 llc/snap ubr"</programlisting>
(<acronym>CARP</acronym>) allows multiple hosts to share the (<acronym>CARP</acronym>) allows multiple hosts to share the
same <acronym>IP</acronym> address and Virtual Host ID same <acronym>IP</acronym> address and Virtual Host ID
(<acronym>VHID</acronym>) in order to provide <firstterm>high (<acronym>VHID</acronym>) in order to provide <firstterm>high
availability</firstterm> for one or more services. This means that one or more availability</firstterm> for one or more services. This means
hosts can fail, and the that one or more hosts can fail, and the other hosts will
other hosts will transparently take over so that users do not see a service transparently take over so that users do not see a service
failure.</para> failure.</para>
<para>In <para>In addition to the shared <acronym>IP</acronym> address,
addition to the shared <acronym>IP</acronym> address, each host each host has its own <acronym>IP</acronym> address for
has its own <acronym>IP</acronym> address for management and management and configuration. All of the machines that share an
configuration. All of the machines that share an
<acronym>IP</acronym> address have the same <acronym>IP</acronym> address have the same
<acronym>VHID</acronym>. The <acronym>VHID</acronym> for each <acronym>VHID</acronym>. The <acronym>VHID</acronym> for each
virtual <acronym>IP</acronym> address must be unique across virtual <acronym>IP</acronym> address must be unique across the
the broadcast domain of the network interface.</para> broadcast domain of the network interface.</para>
<para>High availability using <acronym>CARP</acronym> is built <para>High availability using <acronym>CARP</acronym> is built
into &os;, though the steps to configure it vary slightly into &os;, though the steps to configure it vary slightly
@ -4925,25 +4927,23 @@ route_hostD="192.168.173.4 hatm0 0 102 llc/snap ubr"</programlisting>
example configuration for versions before and equal to or after example configuration for versions before and equal to or after
&os;&nbsp;10.</para> &os;&nbsp;10.</para>
<para>This example <para>This example configures failover support with three hosts,
configures failover support with three hosts, all with unique all with unique <acronym>IP</acronym> addresses, but providing
<acronym>IP</acronym> addresses, but providing the same web the same web content. It has two different masters named
content. It has two different masters named
<systemitem>hosta.example.org</systemitem> and <systemitem>hosta.example.org</systemitem> and
<systemitem>hostb.example.org</systemitem>, with <systemitem>hostb.example.org</systemitem>, with a shared backup
a shared backup named named <systemitem>hostc.example.org</systemitem>.</para>
<systemitem>hostc.example.org</systemitem>.</para>
<para>These machines are load balanced with a Round Robin <para>These machines are load balanced with a Round Robin
<acronym>DNS</acronym> configuration. The master and backup <acronym>DNS</acronym> configuration. The master and backup
machines are configured identically except for their hostnames machines are configured identically except for their hostnames
and management <acronym>IP</acronym> addresses. These servers and management <acronym>IP</acronym> addresses. These servers
must have the same configuration and run the same services. must have the same configuration and run the same services.
When the failover occurs, requests to the service on the When the failover occurs, requests to the service on the shared
shared <acronym>IP</acronym> address can only be answered <acronym>IP</acronym> address can only be answered correctly if
correctly if the backup server has access to the same content. the backup server has access to the same content. The backup
The backup machine has two additional <acronym>CARP</acronym> machine has two additional <acronym>CARP</acronym> interfaces,
interfaces, one for each of the master content server's one for each of the master content server's
<acronym>IP</acronym> addresses. When a failure occurs, the <acronym>IP</acronym> addresses. When a failure occurs, the
backup server will pick up the failed master machine's backup server will pick up the failed master machine's
<acronym>IP</acronym> address.</para> <acronym>IP</acronym> address.</para>
@ -4952,9 +4952,9 @@ route_hostD="192.168.173.4 hatm0 0 102 llc/snap ubr"</programlisting>
<title>Using <acronym>CARP</acronym> on &os;&nbsp;10 and <title>Using <acronym>CARP</acronym> on &os;&nbsp;10 and
Later</title> Later</title>
<para>Enable boot-time support for <acronym>CARP</acronym> by adding an entry for the <para>Enable boot-time support for <acronym>CARP</acronym> by
<filename>carp.ko</filename> kernel module in adding an entry for the <filename>carp.ko</filename> kernel
<filename>/boot/loader.conf</filename>:</para> module in <filename>/boot/loader.conf</filename>:</para>
<programlisting>carp_load="YES"</programlisting> <programlisting>carp_load="YES"</programlisting>
@ -4964,15 +4964,15 @@ route_hostD="192.168.173.4 hatm0 0 102 llc/snap ubr"</programlisting>
<para>For users who prefer to use a custom kernel, include the <para>For users who prefer to use a custom kernel, include the
following line in the custom kernel configuration file and following line in the custom kernel configuration file and
compile the kernel as described in compile the kernel as described in <xref
<xref linkend="kernelconfig"/>:</para> linkend="kernelconfig"/>:</para>
<programlisting>device carp</programlisting> <programlisting>device carp</programlisting>
<para>The hostname, management <acronym>IP</acronym> address and subnet mask, <para>The hostname, management <acronym>IP</acronym> address and
shared <acronym>IP</acronym> address, and <acronym>VHID</acronym> are all set by subnet mask, shared <acronym>IP</acronym> address, and
adding entries to <filename>/etc/rc.conf</filename>. This <acronym>VHID</acronym> are all set by adding entries to
example is for <filename>/etc/rc.conf</filename>. This example is for
<systemitem>hosta.example.org</systemitem>:</para> <systemitem>hosta.example.org</systemitem>:</para>
<programlisting>hostname="<replaceable>hosta.example.org</replaceable>" <programlisting>hostname="<replaceable>hosta.example.org</replaceable>"
@ -4982,11 +4982,10 @@ ifconfig_<replaceable>em0</replaceable>_alias0="vhid <replaceable>1</replaceable
<para>The next set of entries are for <para>The next set of entries are for
<systemitem>hostb.example.org</systemitem>. Since it <systemitem>hostb.example.org</systemitem>. Since it
represents a second master, it uses a different shared represents a second master, it uses a different shared
<acronym>IP</acronym> address and <acronym>IP</acronym> address and <acronym>VHID</acronym>.
<acronym>VHID</acronym>. However, the passwords specified with However, the passwords specified with <option>pass</option>
<option>pass</option> must be identical as must be identical as <acronym>CARP</acronym> will only listen
<acronym>CARP</acronym> will only listen to and accept to and accept advertisements from machines with the correct
advertisements from machines with the correct
password.</para> password.</para>
<programlisting>hostname="<replaceable>hostb.example.org</replaceable>" <programlisting>hostname="<replaceable>hostb.example.org</replaceable>"
@ -4995,15 +4994,15 @@ ifconfig_<replaceable>em0</replaceable>_alias0="vhid <replaceable>2</replaceable
<para>The third machine, <para>The third machine,
<systemitem>hostc.example.org</systemitem>, is configured to <systemitem>hostc.example.org</systemitem>, is configured to
handle failover from either master. This handle failover from either master. This machine is
machine is configured with two <acronym>CARP</acronym> configured with two <acronym>CARP</acronym>
<acronym>VHID</acronym>s, one to handle the virtual <acronym>VHID</acronym>s, one to handle the virtual
<acronym>IP</acronym> address for each of the master hosts. <acronym>IP</acronym> address for each of the master hosts.
The <acronym>CARP</acronym> The <acronym>CARP</acronym> advertising skew,
advertising skew, <option>advskew</option>, is set to ensure that the backup host <option>advskew</option>, is set to ensure that the backup
advertises later than the master, since <option>advskew</option> host advertises later than the master, since
controls the order of precedence when there are multiple <option>advskew</option> controls the order of precedence when
backup servers.</para> there are multiple backup servers.</para>
<programlisting>hostname="hostc.example.org" <programlisting>hostname="hostc.example.org"
ifconfig_<replaceable>em0</replaceable>="inet <replaceable>192.168.1.5</replaceable> netmask <replaceable>255.255.255.0</replaceable>" ifconfig_<replaceable>em0</replaceable>="inet <replaceable>192.168.1.5</replaceable> netmask <replaceable>255.255.255.0</replaceable>"
@ -5030,8 +5029,8 @@ ifconfig_<replaceable>em0</replaceable>_alias1="vhid <replaceable>2</replaceable
<screen>&prompt.root; <userinput>ifconfig em0 vhid 1 state backup</userinput></screen> <screen>&prompt.root; <userinput>ifconfig em0 vhid 1 state backup</userinput></screen>
</note> </note>
<para>Once the configuration is complete, either restart networking or reboot <para>Once the configuration is complete, either restart
each system. High availability is now networking or reboot each system. High availability is now
enabled.</para> enabled.</para>
<para><acronym>CARP</acronym> functionality can be controlled <para><acronym>CARP</acronym> functionality can be controlled
@ -5050,8 +5049,8 @@ ifconfig_<replaceable>em0</replaceable>_alias1="vhid <replaceable>2</replaceable
<acronym>CARP</acronym> device must first be created and <acronym>CARP</acronym> device must first be created and
referred to in the configuration.</para> referred to in the configuration.</para>
<para>Enable boot-time support for <acronym>CARP</acronym> by loading the <para>Enable boot-time support for <acronym>CARP</acronym> by
<filename>if_carp.ko</filename> kernel module in loading the <filename>if_carp.ko</filename> kernel module in
<filename>/boot/loader.conf</filename>:</para> <filename>/boot/loader.conf</filename>:</para>
<programlisting>if_carp_load="YES"</programlisting> <programlisting>if_carp_load="YES"</programlisting>
@ -5062,19 +5061,19 @@ ifconfig_<replaceable>em0</replaceable>_alias1="vhid <replaceable>2</replaceable
<para>For users who prefer to use a custom kernel, include the <para>For users who prefer to use a custom kernel, include the
following line in the custom kernel configuration file and following line in the custom kernel configuration file and
compile the kernel as described in compile the kernel as described in <xref
<xref linkend="kernelconfig"/>:</para> linkend="kernelconfig"/>:</para>
<programlisting>device carp</programlisting> <programlisting>device carp</programlisting>
<para>Next, on each host, create a <acronym>CARP</acronym> device:</para> <para>Next, on each host, create a <acronym>CARP</acronym>
device:</para>
<screen>&prompt.root; <userinput>ifconfig carp0 create</userinput></screen> <screen>&prompt.root; <userinput>ifconfig carp0 create</userinput></screen>
<para>Set the hostname, management <para>Set the hostname, management <acronym>IP</acronym>
<acronym>IP</acronym> address, the shared address, the shared <acronym>IP</acronym> address, and
<acronym>IP</acronym> address, and <acronym>VHID</acronym> <acronym>VHID</acronym> by adding the required lines to
by adding the required lines to
<filename>/etc/rc.conf</filename>. Since a virtual <filename>/etc/rc.conf</filename>. Since a virtual
<acronym>CARP</acronym> device is used instead of an alias, <acronym>CARP</acronym> device is used instead of an alias,
the actual subnet mask of <literal>/24</literal> is used the actual subnet mask of <literal>/24</literal> is used
@ -5104,8 +5103,8 @@ ifconfig_carp0="vhid <replaceable>1</replaceable> advskew <replaceable>100</repl
ifconfig_carp1="vhid <replaceable>2</replaceable> advskew <replaceable>100</replaceable> pass <replaceable>testpass</replaceable> <replaceable>192.168.1.51/24</replaceable>"</programlisting> ifconfig_carp1="vhid <replaceable>2</replaceable> advskew <replaceable>100</replaceable> pass <replaceable>testpass</replaceable> <replaceable>192.168.1.51/24</replaceable>"</programlisting>
<note> <note>
<para>Preemption is disabled in the GENERIC &os; kernel. <para>Preemption is disabled in the GENERIC &os; kernel. If
If Preemption has been enabled with a custom kernel, Preemption has been enabled with a custom kernel,
<systemitem>hostc.example.org</systemitem> may not release <systemitem>hostc.example.org</systemitem> may not release
the <acronym>IP</acronym> address back to the original the <acronym>IP</acronym> address back to the original
content server. The administrator can force the backup content server. The administrator can force the backup
@ -5118,10 +5117,9 @@ ifconfig_carp1="vhid <replaceable>2</replaceable> advskew <replaceable>100</repl
interface which corresponds to the correct host.</para> interface which corresponds to the correct host.</para>
</note> </note>
<para>Once the configuration is complete, either restart networking or reboot <para>Once the configuration is complete, either restart
each system. High availability is now networking or reboot each system. High availability is now
enabled.</para> enabled.</para>
</sect2> </sect2>
</sect1> </sect1>
</chapter> </chapter>