mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-03-06 06:14:47 +00:00
Update /etc/hosts in network configuration.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11204 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
945b760f0c
commit
bd4a1d9bf9
@ -42,6 +42,15 @@
|
||||
<listitem revision="sysv"> or <listitem revision="systemd"> as
|
||||
appropriate for the entry or if needed the entire day's listitem.
|
||||
-->
|
||||
<listitem>
|
||||
<para>2017-03-08</para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>[dj] - Update /etc/hosts in network configuration.</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para>2017-03-03</para>
|
||||
<itemizedlist>
|
||||
|
@ -267,13 +267,18 @@ EOF</userinput></screen>
|
||||
<literal># Begin /etc/hosts (network card version)
|
||||
|
||||
127.0.0.1 localhost
|
||||
<replaceable><192.168.1.1></replaceable> <replaceable><HOSTNAME.example.org></replaceable> <replaceable>[alias1] [alias2 ...]</replaceable>
|
||||
127.0.1.1 <replaceable><FQDN></replaceable> <replaceable><HOSTNAME></replaceable>
|
||||
<replaceable><192.168.1.1></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 (network card version)</literal>
|
||||
EOF</userinput></screen>
|
||||
|
||||
<para>The <replaceable><192.168.1.1></replaceable> and
|
||||
<replaceable><HOSTNAME.example.org></replaceable> values need to be
|
||||
<para>The <replaceable><192.168.1.1></replaceable>,
|
||||
<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
|
||||
existing network). The optional alias name(s) can be omitted.</para>
|
||||
@ -284,7 +289,11 @@ EOF</userinput></screen>
|
||||
<screen role="nodump"><userinput>cat > /etc/hosts << "EOF"
|
||||
<literal># Begin /etc/hosts (no network card version)
|
||||
|
||||
127.0.0.1 <replaceable><HOSTNAME.example.org></replaceable> <replaceable><HOSTNAME></replaceable> localhost
|
||||
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 (no network card version)</literal>
|
||||
EOF</userinput></screen>
|
||||
|
@ -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
|
||||
|
@ -1,13 +1,13 @@
|
||||
<!ENTITY version "SVN-20170303">
|
||||
<!ENTITY version "SVN-20170308">
|
||||
<!ENTITY short-version "svn"> <!-- Used below in &blfs-book;
|
||||
Change to x.y for release but not -rc releases -->
|
||||
<!ENTITY generic-version "development"> <!-- Use "development" or "x.y[-pre{x}]" -->
|
||||
|
||||
<!ENTITY versiond "20170303-systemd">
|
||||
<!ENTITY versiond "20170308-systemd">
|
||||
<!ENTITY short-versiond "systemd">
|
||||
<!ENTITY generic-versiond "systemd">
|
||||
|
||||
<!ENTITY releasedate "March 3, 2017">
|
||||
<!ENTITY releasedate "March 8, 2017">
|
||||
|
||||
<!ENTITY copyrightdate "1999-2017"><!-- jhalfs needs a literal dash, not – -->
|
||||
<!ENTITY milestone "8.1">
|
||||
|
Loading…
Reference in New Issue
Block a user