Ignore:
Timestamp:
06/12/2020 09:04:48 PM (4 years ago)
Author:
Douglas R. Reno <renodr@…>
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, 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:
4234aea6
Parents:
a3d0817
Message:

Updates to chapter09 for systemd

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11929 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter09/networkd.xml

    ra3d0817 r9e7475a  
    4949      <para>
    5050        Udev normally assigns network card interface names based
    51         on system physical characteristics such as enp2s1. If you are
     51        on physical system characteristics such as enp2s1. If you are
    5252        not sure what your interface name is, you can always run
    5353        <command>ip link</command> after you have booted your system.
     
    7777             Create a manual naming scheme, for example by naming the
    7878             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:
     79             To do that, create .link files in /etc/systemd/network/ that
     80             select an explicit name or a better naming scheme for your
     81             network interfaces. For example:
    8382          </para>
    8483
     
    171170      <note><para>If using another means to configure your network
    172171      interfaces (ex: ppp, network-manager, etc.), or if using any type of
    173       local resolver (ex: bind, dnsmasq, etc.), or any other software that
    174       generates an <filename>/etc/resolv.conf</filename> (ex: resolvconf), the
    175       <command>systemd-resolved</command> service should not be
     172      local resolver (ex: bind, dnsmasq, unbound, etc.), or any other software
     173      that generates an <filename>/etc/resolv.conf</filename> (ex: resolvconf),
     174      the <command>systemd-resolved</command> service should not be
    176175      used.</para></note>
    177176
     
    207206      <para>Replace
    208207      <replaceable>&lt;IP address of the nameserver&gt;</replaceable>
    209       with the IP address of the DNS most appropriate for the setup. There will
    210       often be more than one entry (requirements demand secondary servers for
    211       fallback capability). If you only need or want one DNS server, remove the
    212       second <emphasis>nameserver</emphasis> line from the file. The IP address
    213       may also be a router on the local network.</para>
     208      with the IP address of the DNS server most appropriate for your setup.
     209      There will often be more than one entry (requirements demand secondary
     210      servers for fallback capability). If you only need or want one DNS server,
     211      remove the second <emphasis>nameserver</emphasis> line from the file.
     212      The IP address may also be a router on the local network. Another option
     213      is to use the Google Public DNS service using the IP addresses below as
     214      nameservers.</para>
    214215
    215216      <note><para>The Google Public IPv4 DNS addresses are
     
    263264
    264265     <para>Decide on a fully-qualified domain name (FQDN), and possible aliases
    265      for use in the <filename>/etc/hosts</filename> file. If using static
     266     for use in the <filename>/etc/hosts</filename> file. If using static IP
    266267     addresses, you'll also need to decide on an IP address. The syntax
    267268     for a hosts file entry is:</para>
     
    286287
    287288     <para>Even if not using a network card, a valid FQDN is still required.
    288      This is necessary for certain programs to operate correctly.</para>
    289 
    290      <para>If using DHCP, DHCPv6, IPv6 Autoconfiguration, or if a network card
    291      is not going to be configured, create the <filename>/etc/hosts</filename>
    292      file by running the following command:</para>
     289     This is necessary for certain programs, such as MTAs, to operate properly.</para>
     290
     291     <para>Create the /etc/hosts file using the following command:</para>
    293292
    294293<screen role="nodump"><userinput>cat &gt; /etc/hosts &lt;&lt; "EOF"
     
    308307     specifically for the FQDN.</para>
    309308
     309<!--
    310310     <para>If using a static address, create the <filename>/etc/hosts</filename>
    311311     file by running this command instead:</para>
     
    314314<literal># Begin /etc/hosts
    315315
    316 127.0.0.1 localhost
     316127.0.0.1 localhost.localdomain localhost
    317317127.0.1.1 <replaceable>&lt;FQDN&gt;</replaceable> <replaceable>&lt;HOSTNAME&gt;</replaceable>
    318318<replaceable>&lt;192.168.0.2&gt;</replaceable> <replaceable>&lt;FQDN&gt;</replaceable> <replaceable>&lt;HOSTNAME&gt;</replaceable> <replaceable>[alias1] [alias2] ...</replaceable>
     
    330330     network/system administrator and the machine will be connected to an
    331331     existing network). The optional alias name(s) can be omitted.</para>
    332    
     332-->
    333333   </sect2>
    334334
Note: See TracChangeset for help on using the changeset viewer.