aboutsummaryrefslogtreecommitdiffstats
path: root/chapter07/network.xml
diff options
context:
space:
mode:
authorDJ Lucas <dj@linuxfromscratch.org>2017-03-08 00:47:35 +0000
committerDJ Lucas <dj@linuxfromscratch.org>2017-03-08 00:47:35 +0000
commitbd4a1d9bf993e0481da9365e9174213251b93a45 (patch)
tree3420faf82053f079b4873b825f16557f6d1d58cd /chapter07/network.xml
parent945b760f0cfd2559f49fabae5509af7d768c8f21 (diff)
Update /etc/hosts in network configuration.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11204 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter07/network.xml')
-rw-r--r--chapter07/network.xml17
1 files changed, 13 insertions, 4 deletions
diff --git a/chapter07/network.xml b/chapter07/network.xml
index f95f0e26d..942276478 100644
--- a/chapter07/network.xml
+++ b/chapter07/network.xml
@@ -267,13 +267,18 @@ EOF</userinput></screen>
<literal># Begin /etc/hosts (network card version)
127.0.0.1 localhost
-<replaceable>&lt;192.168.1.1&gt;</replaceable> <replaceable>&lt;HOSTNAME.example.org&gt;</replaceable> <replaceable>[alias1] [alias2 ...]</replaceable>
+127.0.1.1 <replaceable>&lt;FQDN&gt;</replaceable> <replaceable>&lt;HOSTNAME&gt;</replaceable>
+<replaceable>&lt;192.168.1.1&gt;</replaceable> <replaceable>&lt;FQDN&gt;</replaceable> <replaceable>&lt;HOSTNAME&gt;</replaceable> <replaceable>[alias1] [alias2 ...]</replaceable>
+::1 localhost ip6-localhost ip6-loopback
+ff02::1 ip6-allnodes
+ff02::2 ip6-allrouters
# End /etc/hosts (network card version)</literal>
EOF</userinput></screen>
- <para>The <replaceable>&lt;192.168.1.1&gt;</replaceable> and
- <replaceable>&lt;HOSTNAME.example.org&gt;</replaceable> values need to be
+ <para>The <replaceable>&lt;192.168.1.1&gt;</replaceable>,
+ <replaceable>&lt;FQDN&gt;</replaceable>, and
+ <replaceable>&lt;HOSTNAME&gt;</replaceable> values need to be
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>
@@ -284,7 +289,11 @@ EOF</userinput></screen>
<screen role="nodump"><userinput>cat &gt; /etc/hosts &lt;&lt; "EOF"
<literal># Begin /etc/hosts (no network card version)
-127.0.0.1 <replaceable>&lt;HOSTNAME.example.org&gt;</replaceable> <replaceable>&lt;HOSTNAME&gt;</replaceable> localhost
+127.0.0.1 localhost
+127.0.1.1 <replaceable>&lt;FQDN&gt;</replaceable> <replaceable>&lt;HOSTNAME&gt;</replaceable>
+::1 localhost ip6-localhost ip6-loopback
+ff02::1 ip6-allnodes
+ff02::2 ip6-allrouters
# End /etc/hosts (no network card version)</literal>
EOF</userinput></screen>