|
@@ -23,7 +23,7 @@
|
|
<secondary>/etc/hosts</secondary></indexterm>
|
|
<secondary>/etc/hosts</secondary></indexterm>
|
|
|
|
|
|
<para>If a network card is to be configured, decide on the IP address,
|
|
<para>If a network card is to be configured, decide on the IP address,
|
|
- FQDN, and possible aliases for use in the
|
|
|
|
|
|
+ fully-qualified domain name (FQDN), and possible aliases for use in the
|
|
<filename>/etc/hosts</filename> file. The syntax is:</para>
|
|
<filename>/etc/hosts</filename> file. The syntax is:</para>
|
|
|
|
|
|
<screen><literal><IP address> myhost.example.org aliases</literal></screen>
|
|
<screen><literal><IP address> myhost.example.org aliases</literal></screen>
|
|
@@ -34,17 +34,18 @@
|
|
address is in the private network IP address range. Valid ranges
|
|
address is in the private network IP address range. Valid ranges
|
|
are:</para>
|
|
are:</para>
|
|
|
|
|
|
-<screen><literal> Class Networks
|
|
|
|
- A 10.0.0.0
|
|
|
|
- B 172.16.0.0 through 172.31.0.255
|
|
|
|
- C 192.168.0.0 through 192.168.255.255</literal></screen>
|
|
|
|
|
|
+<screen><literal>Private Network Address Range Normal Prefix
|
|
|
|
+10.0.0.1 - 10.255.255.254 8
|
|
|
|
+172.x.0.1 - 172.x.255.254 16
|
|
|
|
+192.168.y.1 - 192.168.y.254 24</literal></screen>
|
|
|
|
|
|
- <para>A valid IP address could be 192.168.1.1. A valid FQDN for this
|
|
|
|
- IP could be www.linuxfromscratch.org (not recommended because this is
|
|
|
|
- a valid registered domain address and could cause domain name server
|
|
|
|
- issues).</para>
|
|
|
|
|
|
+ <para>x can be any number in the range 16-31. y can be any number in
|
|
|
|
+ the range 0-255.</para>
|
|
|
|
|
|
- <para>Even if not using a network card, an FQDN is still required.
|
|
|
|
|
|
+ <para>A valid private IP address could be 192.168.1.1. A valid FQDN for this
|
|
|
|
+ IP could be lfs.example.org.</para>
|
|
|
|
+
|
|
|
|
+ <para>Even if not using a network card, a valid FQDN is still required.
|
|
This is necessary for certain programs to operate correctly.</para>
|
|
This is necessary for certain programs to operate correctly.</para>
|
|
|
|
|
|
<para>Create the <filename>/etc/hosts</filename> file by running:</para>
|
|
<para>Create the <filename>/etc/hosts</filename> file by running:</para>
|