aboutsummaryrefslogtreecommitdiffstats
path: root/chapter09
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@mengyan1223.wang>2022-01-31 19:41:34 +0800
committerXi Ruoyao <xry111@mengyan1223.wang>2022-01-31 19:42:18 +0800
commit1966b8db8f0cd40e3427f5df67e228a6f691ee3e (patch)
treecdc3ada3325b6358357c9f2ce796e6355f6b8bb3 /chapter09
parent4d323c324f5506fd068eeba9d12d4810c7925f0f (diff)
network cfg: mention that LFS and the host may name interfaces differently
Diffstat (limited to 'chapter09')
-rw-r--r--chapter09/network.xml22
-rw-r--r--chapter09/networkd.xml11
2 files changed, 27 insertions, 6 deletions
diff --git a/chapter09/network.xml b/chapter09/network.xml
index 52eb35c18..5ea7e3add 100644
--- a/chapter09/network.xml
+++ b/chapter09/network.xml
@@ -27,12 +27,22 @@
address(es), subnet masks, and so forth. It is necessary that the stem of
the filename be <emphasis>ifconfig</emphasis>.</para>
- <note><para>If the procedure in the previous section was not used, udev
- will assign network card interface names based on system physical
- characteristics such as enp2s1. If you are not sure what your interface
- name is, you can always run <command>ip link</command> or <command>ls
- /sys/class/net</command> after you have booted your system.
- </para></note>
+ <note>
+ <para>If the procedure in the previous section was not used, udev
+ will assign network card interface names based on system physical
+ characteristics such as enp2s1. If you are not sure what your interface
+ name is, you can always run <command>ip link</command> or <command>ls
+ /sys/class/net</command> after you have booted your system.
+ </para>
+
+ <para>The interface names depend on the implementation and
+ configuration of the udev daemon running on the system. The udev
+ daemon for LFS (installed in <xref linkend="ch-system-eudev"/>) will
+ not run until the LFS system is booted. So it's unreliable to
+ determine the interface names being used in LFS system by running
+ those commands on the host distro,
+ <emphasis>even though in the chroot environment</emphasis>.</para>
+ </note>
<para>The following command creates a sample file for the
<emphasis>eth0</emphasis> device with a static IP address:</para>
diff --git a/chapter09/networkd.xml b/chapter09/networkd.xml
index 9090596c0..82a0740ad 100644
--- a/chapter09/networkd.xml
+++ b/chapter09/networkd.xml
@@ -53,6 +53,17 @@
<command>ip link</command> after you have booted your system.
</para>
+ <note>
+ <para>The interface names depend on the implementation and
+ configuration of the udev daemon running on the system. The udev
+ daemon for LFS (<command>systemd-udevd</command>, installed in
+ <xref linkend="ch-system-systemd"/>) will not run unless the LFS
+ system is booted. So it's unreliable to determine the interface
+ names being used in LFS system by running those commands on the host
+ distro,
+ <emphasis>even though in the chroot environment</emphasis>.</para>
+ </note>
+
<para>
For most systems, there is only one network interface for
each type of connection. For example, the classic interface