Ignore:
Timestamp:
06/29/2020 07:55:01 AM (4 years ago)
Author:
Thomas Trepl <thomas@…>
Branches:
multilib-10.1
Children:
c4804e8
Parents:
d4fdde6
Message:

Update to new lfs structure

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

File:
1 moved

Legend:

Unmodified
Added
Removed
  • chapter09/networkd.xml

    rd4fdde6 r37e35d2  
    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<!--
     292     <para>Create the /etc/hosts file using the following command:</para>
    293293
    294294<screen role="nodump"><userinput>cat &gt; /etc/hosts &lt;&lt; "EOF"
    295295<literal># Begin /etc/hosts
    296296
    297 127.0.0.1 localhost
     297127.0.0.1 localhost.localdomain localhost
    298298127.0.1.1 <replaceable>&lt;FQDN&gt;</replaceable> <replaceable>&lt;HOSTNAME&gt;</replaceable>
    299299::1       localhost ip6-localhost ip6-loopback
     
    303303# End /etc/hosts</literal>
    304304EOF</userinput></screen>
    305 
    306      <para>The ::1 entry is the IPv6 counterpart of 127.0.0.1 and represents
    307      the IPv6 loopback interface. 127.0.1.1 is a loopback entry reserved
    308      specifically for the FQDN.</para>
    309 
    310      <para>If using a static address, create the <filename>/etc/hosts</filename>
    311      file by running this command instead:</para>
     305-->
     306
     307     <para>Create the <filename>/etc/hosts</filename> file using the following
     308     command:</para>
    312309
    313310<screen><userinput>cat &gt; /etc/hosts &lt;&lt; "EOF"
    314311<literal># Begin /etc/hosts
    315312
    316 127.0.0.1 localhost
     313127.0.0.1 localhost.localdomain localhost
    317314127.0.1.1 <replaceable>&lt;FQDN&gt;</replaceable> <replaceable>&lt;HOSTNAME&gt;</replaceable>
    318315<replaceable>&lt;192.168.0.2&gt;</replaceable> <replaceable>&lt;FQDN&gt;</replaceable> <replaceable>&lt;HOSTNAME&gt;</replaceable> <replaceable>[alias1] [alias2] ...</replaceable>
     
    329326     changed for specific uses or requirements (if assigned an IP address by a
    330327     network/system administrator and the machine will be connected to an
    331      existing network). The optional alias name(s) can be omitted.</para>
    332    
     328     existing network). The optional alias name(s) can be omitted, and the
     329     <replaceable>&lt;192.168.0.2</replaceable> line can be omitted if you
     330     are using a connection configured with DHCP or IPv6 Autoconfiguration.</para>
     331
     332     <para>The ::1 entry is the IPv6 counterpart of 127.0.0.1 and represents
     333     the IPv6 loopback interface. 127.0.1.1 is a loopback entry reserved
     334     specifically for the FQDN.</para>
     335
    333336   </sect2>
    334337
Note: See TracChangeset for help on using the changeset viewer.