Changeset d29a03b for chapter07/network.xml
- Timestamp:
- 08/12/2012 08:02:11 PM (12 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 9dea41d
- Parents:
- 0840dab
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter07/network.xml
r0840dab rd29a03b 24 24 class="directory">/etc/rc.d/rc*.d</filename>).</para> 25 25 26 <sect2 >26 <sect2 id='stable-net-names'> 27 27 <title>Creating stable names for network interfaces</title> 28 28 … … 42 42 to network cards based on their MAC address.</para> 43 43 44 <para>Pre-generate the rules to ensure the same names get assigned to the 45 same devices at every boot, including the first:</para> 46 47 <screen><userinput>for NIC in /sys/class/net/* ; do 48 INTERFACE=${NIC##*/} udevadm test --action=add $NIC 49 done</userinput></screen> 50 51 <para>Now, inspect the <filename>/etc/udev/rules.d/70-persistent-net.rules</filename> 52 file, to find out which name was assigned to which network device:</para> 44 <para>The rules were pre-generated in the build instructions for 45 <application>udev (systemd)</application> in the last chapter. Inspect the 46 <filename>/etc/udev/rules.d/70-persistent-net.rules</filename> file, to 47 find out which name was assigned to which network device:</para> 53 48 54 49 <screen role="nodump"><userinput>cat /etc/udev/rules.d/70-persistent-net.rules</userinput></screen> 50 51 <note><para>In some cases such as when MAC addresess have been assigned to 52 a network card manually or in a virtual envirnment such as Xen, 53 the network rules file may not have been generated because addresses 54 are not consistently assigned. In these cases, just continue to 55 the next section.</para></note> 55 56 56 57 <para>The file begins with a comment block followed by two lines for each
Note:
See TracChangeset
for help on using the changeset viewer.