Ignore:
Timestamp:
12/22/2017 08:18:46 PM (6 years ago)
Author:
Bruce Dubbs <bdubbs@…>
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, 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:
3b4e848
Parents:
896e77e
Message:

Update to linux-4.14.8.
Add discussion of ethernet device names (systemd).
Add discussion of audo file deletion (systemd).
Add discussion of separate /tmp (systemd).

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11340 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter07/networkd.xml

    r896e77e r94e3e7bd  
    4444    <filename>systemd-network(5)</filename> manual pages.</para>
    4545
    46     <note><para>Udev may assign network card interface names based
    47     on system physical characteristics such as enp2s1. If you are
    48     not sure what your interface name is, you can always run
    49     <command>ip link</command> after you have booted your system.
    50     </para></note>
     46    <sect3 id="systemd-network-devices">
     47      <title>Network Device Naming</title>
     48
     49      <para>
     50        Udev normally assigns network card interface names based
     51        on system physical characteristics such as enp2s1. If you are
     52        not sure what your interface name is, you can always run
     53        <command>ip link</command> after you have booted your system.
     54      </para>
     55
     56      <para>
     57        For most systems, there is only one network interface for
     58        each type of connection.  For example, the classic interface
     59        name for a wired connection is eth0.  A wireless connection
     60        will usually have the name wifi0 or wlan0.
     61      </para>
     62
     63      <para>
     64        If you prefer to use the classic or customized network interface names,
     65        there are three alternative ways to do that:</para>
     66
     67      <itemizedlist>
     68        <listitem>
     69          <para>
     70            Mask udev's .link file for the default policy:
     71<screen role="nodump"><userinput>ln -s /dev/null /etc/systemd/network/99-default.link</userinput></screen>
     72          </para>
     73        </listitem>
     74
     75        <listitem>
     76          <para>
     77             Create a manual naming scheme, for example by naming the
     78             interfaces something like "internet0", "dmz0", or "lan0".
     79             For that, create .link
     80             files in /etc/systemd/network/, that choose an explicit name or a
     81             better naming scheme for one, some, or all of your interfaces.
     82             For example:
     83          </para>
     84
     85<screen role="nodump"><userinput>cat &gt; /etc/systemd/network/10-ether0.link &lt;&lt; "EOF"
     86<literal>[Match]
     87# Change the MAC address as appropriate for your network device
     88MACAddress=12:34:45:78:90:AB
     89
     90[Link]
     91Name=ether0</literal>
     92EOF</userinput></screen>
     93
     94          <para>
     95             See the man page systemd.link(5) for more information.
     96          </para>
     97        </listitem>
     98
     99        <listitem>
     100          <para>
     101            In /boot/grub/grub.cfg, pass the option net.ifnames=0 on the
     102            kernel command line.
     103          </para>
     104        </listitem>
     105      </itemizedlist>
     106    </sect3>
    51107
    52108    <sect3 id="systemd-networkd-static">
     
    57113      systemd-resolved):</para>
    58114
    59 <screen><userinput>cat &gt; /etc/systemd/network/10-eth0-static.network &lt;&lt; "EOF"
     115<screen><userinput>cat &gt; /etc/systemd/network/10-eth-static.network &lt;&lt; "EOF"
    60116<literal>[Match]
    61 Name=eth0
     117Name=&lt;network-device-name&gt;
    62118
    63119[Network]
     
    80136      DHCP setup:</para>
    81137
    82 <screen role="nodump"><userinput>cat &gt; /etc/systemd/network/10-eth0-dhcp.network &lt;&lt; "EOF"
     138<screen role="nodump"><userinput>cat &gt; /etc/systemd/network/10-eth-dhcp.network &lt;&lt; "EOF"
    83139<literal>[Match]
    84 Name=eth0
     140Name=&lt;network-device-name&gt;
    85141
    86142[Network]
Note: See TracChangeset for help on using the changeset viewer.