Adapt "General Network Configuration" for systemd to jhalfs

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11202 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
Pierre Labastie 2017-03-04 10:02:04 +00:00
parent 5fa3da5796
commit 4139f87eae

View File

@ -56,7 +56,7 @@
Static IP setup (using both systemd-networkd and
systemd-resolved):</para>
<screen role="nodump"><userinput>cat &gt; /etc/systemd/network/10-eth0-static.network &lt;&lt; "EOF"
<screen><userinput>cat &gt; /etc/systemd/network/10-eth0-static.network &lt;&lt; "EOF"
<literal>[Match]
Name=eth0
@ -108,7 +108,7 @@ EOF</userinput></screen>
from the ISP or network administrator, into
<filename>/etc/resolv.conf</filename>.</para>
<sect3 id="resolv-conf-systemd-resoloved">
<sect3 id="resolv-conf-systemd-resolved">
<title>systemd-resolved Configuration</title>
<note><para>If using another means to configure your network
@ -121,9 +121,9 @@ EOF</userinput></screen>
<para>When using <command>systemd-resolved</command> for DNS
configuration, it creates the file
<filename>/run/systemd/resolve/resolv.conf</filename>. Create a
symlink in <filename>/etc</filename> to use the generatd file:</para>
symlink in <filename>/etc</filename> to use the generated file:</para>
<screen><userinput remap="install">ln -sfv /run/systemd/resolve/resolv.conf /etc/resolv.conf</userinput></screen>
<screen><userinput>ln -sfv /run/systemd/resolve/resolv.conf /etc/resolv.conf</userinput></screen>
</sect3>
@ -234,7 +234,7 @@ EOF</userinput></screen>
is not going to be configured, create the <filename>/etc/hosts</filename>
file by running the following command:</para>
<screen><userinput>cat &gt; /etc/hosts &lt;&lt; "EOF"
<screen role="nodump"><userinput>cat &gt; /etc/hosts &lt;&lt; "EOF"
<literal># Begin /etc/hosts
127.0.0.1 <replaceable>&lt;HOSTNAME.example.org&gt;</replaceable> <replaceable>&lt;HOSTNAME&gt;</replaceable> localhost <replaceable>[alias1] [alias2] ...</replaceable>