r7455 - branches/udev_update/BOOK/chapter07

manuel at linuxfromscratch.org manuel at linuxfromscratch.org
Sat Mar 25 04:40:42 PST 2006


Author: manuel
Date: 2006-03-25 05:40:41 -0700 (Sat, 25 Mar 2006)
New Revision: 7455

Modified:
   branches/udev_update/BOOK/chapter07/network.xml
Log:
Indentation and tagging fixes.

Modified: branches/udev_update/BOOK/chapter07/network.xml
===================================================================
--- branches/udev_update/BOOK/chapter07/network.xml	2006-03-25 12:29:00 UTC (rev 7454)
+++ branches/udev_update/BOOK/chapter07/network.xml	2006-03-25 12:40:41 UTC (rev 7455)
@@ -25,28 +25,31 @@
 
   <sect2>
     <title>Creating stable names for network interfaces</title>
+
     <para>Instructions in this section are optional if you have only one
     network card.</para>
-    
-    <para>With Udev and modular network drivers, the network interface
-    numbering is not persistent across reboots by default, because the
-    drivers are loaded in parallel and, thus, in random order.
-    For example, on a computer having two network cards made by Intel and
-    Realtek, the network card manufactured by Intel may become eth0 and the
-    Realtek card becomes eth1.  In some cases, after a reboot the cards get
-    renumbered the other way around. To avoid this, create Udev rules that
-    assign stable names to network cards based on their MAC addresses.</para>
-    
+
+    <para>With Udev and modular network drivers, the network interface numbering
+    is not persistent across reboots by default, because the drivers are loaded
+    in parallel and, thus, in random order. For example, on a computer having
+    two network cards made by Intel and Realtek, the network card manufactured
+    by Intel may become <filename class="devicefile">eth0</filename> and the
+    Realtek card becomes  <filename class="devicefile">eth1</filename>. In some
+    cases, after a reboot the cards get renumbered the other way around. To
+    avoid this, create Udev rules that assign stable names to network cards
+    based on their MAC addresses.</para>
+
     <para>First, find out the MAC addresses of your network cards:</para>
+
 <screen role="nodump"><userinput>grep -H . /sys/class/net/*/address</userinput></screen>
+
     <para>For each network card (but not for the loopback interface),
     invent a descriptive name, such as <quote>realtek</quote>, and create
     Udev rules similar to the following:</para>
 
-<screen role="nodump"><userinput>
-cat > /etc/udev/rules.d/26-network.rules << "EOF"
-ACTION=="add", SUBSYSTEM=="net", SYSFS{address}=="<replaceable>52:54:00:12:34:56</replaceable>", NAME="<replaceable>realtek</replaceable>"
-ACTION=="add", SUBSYSTEM=="net", SYSFS{address}=="<replaceable>00:a0:c9:78:9a:bc</replaceable>", NAME="<replaceable>intel</replaceable>"
+<screen role="nodump"><userinput>cat > /etc/udev/rules.d/26-network.rules << "EOF"
+<literal>ACTION=="add", SUBSYSTEM=="net", SYSFS{address}=="<replaceable>52:54:00:12:34:56</replaceable>", NAME="<replaceable>realtek</replaceable>"
+ACTION=="add", SUBSYSTEM=="net", SYSFS{address}=="<replaceable>00:a0:c9:78:9a:bc</replaceable>", NAME="<replaceable>intel</replaceable>"</literal>
 EOF</userinput></screen>
 
     <para>These rules will always rename the network cards to
@@ -55,9 +58,13 @@
     <quote>eth0</quote> in the network interface configuration files created
     below.</para>
 
-    <note><para>Persistent names must be different from the default network
-    interface names assigned by the kernel.</para></note>
+    <note>
+      <para>Persistent names must be different from the default network
+      interface names assigned by the kernel.</para>
+    </note>
+
   </sect2>
+
   <sect2>
     <title>Creating Network Interface Configuration Files</title>
 




More information about the lfs-book mailing list