mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-19 03:39:20 +01:00
network cfg: mention that LFS and the host may name interfaces differently
This commit is contained in:
parent
4d323c324f
commit
1966b8db8f
@ -27,12 +27,22 @@
|
|||||||
address(es), subnet masks, and so forth. It is necessary that the stem of
|
address(es), subnet masks, and so forth. It is necessary that the stem of
|
||||||
the filename be <emphasis>ifconfig</emphasis>.</para>
|
the filename be <emphasis>ifconfig</emphasis>.</para>
|
||||||
|
|
||||||
<note><para>If the procedure in the previous section was not used, udev
|
<note>
|
||||||
|
<para>If the procedure in the previous section was not used, udev
|
||||||
will assign network card interface names based on system physical
|
will assign network card interface names based on system physical
|
||||||
characteristics such as enp2s1. If you are not sure what your interface
|
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
|
name is, you can always run <command>ip link</command> or <command>ls
|
||||||
/sys/class/net</command> after you have booted your system.
|
/sys/class/net</command> after you have booted your system.
|
||||||
</para></note>
|
</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
|
<para>The following command creates a sample file for the
|
||||||
<emphasis>eth0</emphasis> device with a static IP address:</para>
|
<emphasis>eth0</emphasis> device with a static IP address:</para>
|
||||||
|
@ -53,6 +53,17 @@
|
|||||||
<command>ip link</command> after you have booted your system.
|
<command>ip link</command> after you have booted your system.
|
||||||
</para>
|
</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>
|
<para>
|
||||||
For most systems, there is only one network interface for
|
For most systems, there is only one network interface for
|
||||||
each type of connection. For example, the classic interface
|
each type of connection. For example, the classic interface
|
||||||
|
Loading…
Reference in New Issue
Block a user