[deployment-guide/comm-rel: 316/727] Fixed the command formatting.

Jaromir Hradilek jhradile at fedoraproject.org
Tue Oct 19 12:51:11 UTC 2010


commit 10f675fdac25aba0789bf8c82012627370a3378c
Author: Jaromir Hradilek <jhradile at redhat.com>
Date:   Tue Aug 10 15:10:59 2010 +0200

    Fixed the command formatting.

 en-US/Working_with_Kernel_Modules.xml |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/en-US/Working_with_Kernel_Modules.xml b/en-US/Working_with_Kernel_Modules.xml
index 049b446..ce5eeea 100644
--- a/en-US/Working_with_Kernel_Modules.xml
+++ b/en-US/Working_with_Kernel_Modules.xml
@@ -1083,9 +1083,9 @@ fi</programlisting>
         <para>First, bring up the bond you created by running <command>ifconfig <option>bond<replaceable>&lt;N&gt;</replaceable>
             </option>&#160;<option>up</option>
           </command> as root:</para>
-        <screen>~]# ifconfig bond0 up</screen>
+        <screen>~]#&#160;<command>ifconfig bond0 up</command></screen>
         <para>If you have correctly created the <filename>ifcfg-bond0</filename> bonding interface file, you will be able to see <computeroutput>bond0</computeroutput> listed in the output of running <command>ifconfig</command> (without any options):</para>
-        <screen>~]#  ifconfig
+        <screen>~]#&#160;<command>ifconfig</command>
 bond0     Link encap:Ethernet HWaddr 00:00:00:00:00:00
           UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1
           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
@@ -1103,17 +1103,17 @@ eth0      Link encap:Ethernet  HWaddr 52:54:00:26:9E:F1
 <lineannotation>[output truncated]</lineannotation>
         </screen>
         <para>To view all existing bonds, even if they are not up, run:</para>
-        <screen>~]# cat /sys/class/net/bonding_masters
+        <screen>~]#&#160;<command>cat /sys/class/net/bonding_masters</command>
 bond0</screen>
         <para>You can configure each bond individually by manipulating the files located in the <filename>/sys/class/net/bond<replaceable>&lt;N&gt;</replaceable>/bonding/</filename> directory. First, the bond you are configuring must be taken down:</para>
-        <screen>~]# ifconfig bond0 down</screen>
+        <screen>~]#&#160;<command>ifconfig bond0 down</command></screen>
         <para>As an example, to enable MII monitoring on bond0 with a 1 second interval, you could  run (as root):</para>
-        <screen>~]# echo 1000 > /sys/class/net/bond0/bonding/miimon</screen>
+        <screen>~]#&#160;<command>echo 1000 &gt; /sys/class/net/bond0/bonding/miimon</command></screen>
         <para>To configure bond0 for <parameter
             class="option">balance-alb</parameter> mode, you could run either:</para>
-        <screen>~]# echo 6 > /sys/class/net/bond0/bonding/mode</screen>
+        <screen>~]#&#160;<command>echo 6 &gt; /sys/class/net/bond0/bonding/mode</command></screen>
         <para>...or, using the name of the mode:</para>
-        <screen>~]# echo balance-alb > /sys/class/net/bond0/bonding/mode</screen>
+        <screen>~]#&#160;<command>echo balance-alb &gt; /sys/class/net/bond0/bonding/mode</command></screen>
         <para>After configuring some options for the bond in question, you can bring it up and test it by running <command>ifconfig bond<replaceable>&lt;N&gt;</replaceable>&#160;<option>up</option>
           </command>. If you decide to change the options, take the interface down, modify its parameters using <systemitem
             class="filesystem">sysfs</systemitem>, bring it back up, and re-test.</para>
@@ -1126,8 +1126,8 @@ bond0</screen>
             linkend="s2-networkscripts-interfaces-chan"/>.</para>
         <para>The following is a list of available channel bonding module parameters for the <filename>bonding</filename> module. For more in-depth information on configuring channel bonding and the exhaustive list of bonding module parameters, install the <package>kernel-doc</package> package (refer to <xref
             linkend="s1-kernel-modules-additional-resources"/>) and then locate and reference the <filename>bonding.txt</filename> file:</para>
-        <screen>~]# yum -y install kernel-doc
-~]# gedit $(rpm -ql kernel-doc |grep -i bonding.txt) &amp;</screen>
+        <screen>~]#&#160;<command>yum -y install kernel-doc</command>
+~]#&#160;<command>gedit $(rpm -ql kernel-doc |grep -i bonding.txt) &amp;</command></screen>
         <variablelist
           spacing="compact">
           <title>Bonding Interface Parameters</title>
@@ -1219,7 +1219,7 @@ bond0</screen>
             </term>
             <listitem>
               <para>Specifies (in milliseconds) how often MII link monitoring occurs. This is useful if high availability is required because MII is used to verify that the NIC is active. To verify that the driver for a particular NIC supports the MII tool, type the following command as root:</para>
-              <screen>~]# ethtool <replaceable>&lt;interface_name&gt;</replaceable> | grep "Link detected:"</screen>
+              <screen>~]#&#160;<command>ethtool <replaceable>&lt;interface_name&gt;</replaceable> | grep "Link detected:"</command></screen>
               <para>In this command, replace <replaceable>&lt;interface_name</replaceable>&gt; with the name of the device interface, such as <userinput>eth0</userinput>, not the bond interface. If MII is supported, the command returns:</para>
               <screen>Link detected: yes</screen>
               <para>If using a bonded interface for high availability, the module for each NIC must support MII. Setting the value to <userinput>0</userinput> (the default), turns this feature off. When configuring this setting, a good starting point for this parameter is <userinput>100</userinput>.</para>


More information about the docs-commits mailing list