diff options
Diffstat (limited to 'chapter07/networkd.xml')
-rw-r--r-- | chapter07/networkd.xml | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/chapter07/networkd.xml b/chapter07/networkd.xml index 2087bc70f..1ce19b8c1 100644 --- a/chapter07/networkd.xml +++ b/chapter07/networkd.xml @@ -237,14 +237,18 @@ EOF</userinput></screen> <screen role="nodump"><userinput>cat > /etc/hosts << "EOF" <literal># Begin /etc/hosts -127.0.0.1 <replaceable><HOSTNAME.example.org></replaceable> <replaceable><HOSTNAME></replaceable> localhost <replaceable>[alias1] [alias2] ...</replaceable> -::1 <replaceable><HOSTNAME.example.org></replaceable> <replaceable><HOSTNAME></replaceable> localhost <replaceable>[alias1] [alias2] ...</replaceable> +127.0.0.1 localhost +127.0.1.1 <replaceable><FQDN></replaceable> <replaceable><HOSTNAME></replaceable> +::1 localhost ip6-localhost ip6-loopback +ff02::1 ip6-allnodes +ff02::2 ip6-allrouters # End /etc/hosts</literal> EOF</userinput></screen> <para>The ::1 entry is the IPv6 counterpart of 127.0.0.1 and represents -the IPv6 loopback interface.</para> + 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> @@ -253,14 +257,17 @@ the IPv6 loopback interface.</para> <literal># Begin /etc/hosts 127.0.0.1 localhost -::1 localhost -<replaceable><192.168.0.2></replaceable> <replaceable><HOSTNAME.example.org></replaceable> <replaceable><HOSTNAME></replaceable> <replaceable>[alias1] [alias2] ...</replaceable> +127.0.1.1 <replaceable><FQDN></replaceable> <replaceable><HOSTNAME></replaceable> +<replaceable><192.168.0.2></replaceable> <replaceable><FQDN></replaceable> <replaceable><HOSTNAME></replaceable> <replaceable>[alias1] [alias2] ...</replaceable> +::1 localhost ip6-localhost ip6-loopback +ff02::1 ip6-allnodes +ff02::2 ip6-allrouters # End /etc/hosts</literal> EOF</userinput></screen> <para>The <replaceable><192.168.0.2></replaceable>, - <replaceable><HOSTNAME.example.org></replaceable>, and + <replaceable><FQDN></replaceable>, and <replaceable><HOSTNAME></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 |