Browse Source

Add IPv6 loopback interface to /etc/hosts.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/systemd/BOOK@10593 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Krejzi 11 năm trước cách đây
mục cha
commit
abfa34b413
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      chapter07/network.xml

+ 4 - 0
chapter07/network.xml

@@ -209,6 +209,7 @@ EOF</userinput></screen>
 <literal># Begin /etc/hosts (network card version)
 
 127.0.0.1 localhost
+::1       localhost
 <replaceable>&lt;192.168.0.2&gt;</replaceable> <replaceable>&lt;HOSTNAME.example.org&gt;</replaceable> <replaceable>[alias1] [alias2] ...</replaceable>
 
 # End /etc/hosts (network card version)</literal>
@@ -227,10 +228,13 @@ EOF</userinput></screen>
 <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
+::1       localhost
 
 # End /etc/hosts (no network card version)</literal>
 EOF</userinput></screen>
 
+     <para>The ::1 entry is the IPv6 counterpart of 127.0.0.1 and represents the IPv6 loopback interface.</para>
+
    </sect2>
 
 </sect1>