mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-03-06 06:14:47 +00:00
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:
parent
5fa3da5796
commit
4139f87eae
@ -56,7 +56,7 @@
|
|||||||
Static IP setup (using both systemd-networkd and
|
Static IP setup (using both systemd-networkd and
|
||||||
systemd-resolved):</para>
|
systemd-resolved):</para>
|
||||||
|
|
||||||
<screen role="nodump"><userinput>cat > /etc/systemd/network/10-eth0-static.network << "EOF"
|
<screen><userinput>cat > /etc/systemd/network/10-eth0-static.network << "EOF"
|
||||||
<literal>[Match]
|
<literal>[Match]
|
||||||
Name=eth0
|
Name=eth0
|
||||||
|
|
||||||
@ -108,7 +108,7 @@ EOF</userinput></screen>
|
|||||||
from the ISP or network administrator, into
|
from the ISP or network administrator, into
|
||||||
<filename>/etc/resolv.conf</filename>.</para>
|
<filename>/etc/resolv.conf</filename>.</para>
|
||||||
|
|
||||||
<sect3 id="resolv-conf-systemd-resoloved">
|
<sect3 id="resolv-conf-systemd-resolved">
|
||||||
<title>systemd-resolved Configuration</title>
|
<title>systemd-resolved Configuration</title>
|
||||||
|
|
||||||
<note><para>If using another means to configure your network
|
<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
|
<para>When using <command>systemd-resolved</command> for DNS
|
||||||
configuration, it creates the file
|
configuration, it creates the file
|
||||||
<filename>/run/systemd/resolve/resolv.conf</filename>. Create a
|
<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>
|
</sect3>
|
||||||
|
|
||||||
@ -234,7 +234,7 @@ EOF</userinput></screen>
|
|||||||
is not going to be configured, create the <filename>/etc/hosts</filename>
|
is not going to be configured, create the <filename>/etc/hosts</filename>
|
||||||
file by running the following command:</para>
|
file by running the following command:</para>
|
||||||
|
|
||||||
<screen><userinput>cat > /etc/hosts << "EOF"
|
<screen role="nodump"><userinput>cat > /etc/hosts << "EOF"
|
||||||
<literal># Begin /etc/hosts
|
<literal># Begin /etc/hosts
|
||||||
|
|
||||||
127.0.0.1 <replaceable><HOSTNAME.example.org></replaceable> <replaceable><HOSTNAME></replaceable> localhost <replaceable>[alias1] [alias2] ...</replaceable>
|
127.0.0.1 <replaceable><HOSTNAME.example.org></replaceable> <replaceable><HOSTNAME></replaceable> localhost <replaceable>[alias1] [alias2] ...</replaceable>
|
||||||
|
Loading…
Reference in New Issue
Block a user