aboutsummaryrefslogtreecommitdiffstats
path: root/chapter09/networkd.xml
diff options
context:
space:
mode:
authorDouglas R. Reno <renodr@linuxfromscratch.org>2020-06-12 21:04:48 +0000
committerDouglas R. Reno <renodr@linuxfromscratch.org>2020-06-12 21:04:48 +0000
commit9e7475a6c30cbc40d2cf69118ea65d682189b091 (patch)
tree0fcb373ca419a2f077f38c9eee6c452cc4cd86bf /chapter09/networkd.xml
parenta3d0817020eee2b1ea6ebfe10f3a0ea9e26829be (diff)
Updates to chapter09 for systemd
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11929 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter09/networkd.xml')
-rw-r--r--chapter09/networkd.xml40
1 files changed, 20 insertions, 20 deletions
diff --git a/chapter09/networkd.xml b/chapter09/networkd.xml
index 688c315aa..1acc215b9 100644
--- a/chapter09/networkd.xml
+++ b/chapter09/networkd.xml
@@ -48,7 +48,7 @@
<para>
Udev normally assigns network card interface names based
- on system physical characteristics such as enp2s1. If you are
+ on physical system characteristics such as enp2s1. If you are
not sure what your interface name is, you can always run
<command>ip link</command> after you have booted your system.
</para>
@@ -76,10 +76,9 @@
<para>
Create a manual naming scheme, for example by naming the
interfaces something like "internet0", "dmz0", or "lan0".
- For that, create .link
- files in /etc/systemd/network/, that choose an explicit name or a
- better naming scheme for one, some, or all of your interfaces.
- For example:
+ To do that, create .link files in /etc/systemd/network/ that
+ select an explicit name or a better naming scheme for your
+ network interfaces. For example:
</para>
<screen role="nodump"><userinput>cat &gt; /etc/systemd/network/10-ether0.link &lt;&lt; "EOF"
@@ -170,9 +169,9 @@ EOF</userinput></screen>
<note><para>If using another means to configure your network
interfaces (ex: ppp, network-manager, etc.), or if using any type of
- local resolver (ex: bind, dnsmasq, etc.), or any other software that
- generates an <filename>/etc/resolv.conf</filename> (ex: resolvconf), the
- <command>systemd-resolved</command> service should not be
+ local resolver (ex: bind, dnsmasq, unbound, etc.), or any other software
+ that generates an <filename>/etc/resolv.conf</filename> (ex: resolvconf),
+ the <command>systemd-resolved</command> service should not be
used.</para></note>
<para>When using <command>systemd-resolved</command> for DNS
@@ -206,11 +205,13 @@ EOF</userinput></screen>
<para>Replace
<replaceable>&lt;IP address of the nameserver&gt;</replaceable>
- with the IP address of the DNS most appropriate for the setup. There will
- often be more than one entry (requirements demand secondary servers for
- fallback capability). If you only need or want one DNS server, remove the
- second <emphasis>nameserver</emphasis> line from the file. The IP address
- may also be a router on the local network.</para>
+ with the IP address of the DNS server most appropriate for your setup.
+ There will often be more than one entry (requirements demand secondary
+ servers for fallback capability). If you only need or want one DNS server,
+ remove the second <emphasis>nameserver</emphasis> line from the file.
+ The IP address may also be a router on the local network. Another option
+ is to use the Google Public DNS service using the IP addresses below as
+ nameservers.</para>
<note><para>The Google Public IPv4 DNS addresses are
<parameter>8.8.8.8</parameter> and <parameter>8.8.4.4</parameter>
@@ -262,7 +263,7 @@ EOF</userinput></screen>
</indexterm>
<para>Decide on a fully-qualified domain name (FQDN), and possible aliases
- for use in the <filename>/etc/hosts</filename> file. If using static
+ for use in the <filename>/etc/hosts</filename> file. If using static IP
addresses, you'll also need to decide on an IP address. The syntax
for a hosts file entry is:</para>
@@ -285,11 +286,9 @@ EOF</userinput></screen>
this IP could be lfs.example.org.</para>
<para>Even if not using a network card, a valid FQDN is still required.
- This is necessary for certain programs to operate correctly.</para>
+ This is necessary for certain programs, such as MTAs, to operate properly.</para>
- <para>If using DHCP, DHCPv6, IPv6 Autoconfiguration, or if a network card
- is not going to be configured, create the <filename>/etc/hosts</filename>
- file by running the following command:</para>
+ <para>Create the /etc/hosts file using the following command:</para>
<screen role="nodump"><userinput>cat &gt; /etc/hosts &lt;&lt; "EOF"
<literal># Begin /etc/hosts
@@ -307,13 +306,14 @@ EOF</userinput></screen>
the IPv6 loopback interface. 127.0.1.1 is a loopback entry reserved
specifically for the FQDN.</para>
+<!--
<para>If using a static address, create the <filename>/etc/hosts</filename>
file by running this command instead:</para>
<screen><userinput>cat &gt; /etc/hosts &lt;&lt; "EOF"
<literal># Begin /etc/hosts
-127.0.0.1 localhost
+127.0.0.1 localhost.localdomain localhost
127.0.1.1 <replaceable>&lt;FQDN&gt;</replaceable> <replaceable>&lt;HOSTNAME&gt;</replaceable>
<replaceable>&lt;192.168.0.2&gt;</replaceable> <replaceable>&lt;FQDN&gt;</replaceable> <replaceable>&lt;HOSTNAME&gt;</replaceable> <replaceable>[alias1] [alias2] ...</replaceable>
::1 localhost ip6-localhost ip6-loopback
@@ -329,7 +329,7 @@ EOF</userinput></screen>
changed for specific uses or requirements (if assigned an IP address by a
network/system administrator and the machine will be connected to an
existing network). The optional alias name(s) can be omitted.</para>
-
+-->
</sect2>
</sect1>