Changes in BOOK/network/common/hosts.xml [99f8c39:0b9e109]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/network/common/hosts.xml
r99f8c39 r0b9e109 24 24 25 25 <para>If a network card is to be configured, decide on the IP address, 26 fully-qualified domain name (FQDN), and possible aliases for use in the26 FQDN, and possible aliases for use in the 27 27 <filename>/etc/hosts</filename> file. The syntax is:</para> 28 28 … … 35 35 are:</para> 36 36 37 <screen><literal>Private Network Address Range Normal Prefix 38 10.0.0.1 - 10.255.255.254 8 39 172.x.0.1 - 172.x.255.254 16 40 192.168.y.1 - 192.168.y.254 24</literal></screen> 41 42 <para>x can be any number in the range 16-31. y can be any number in the 43 range 0-255.</para> 37 <screen><literal> Class Networks 38 A 10.0.0.0 39 B 172.16.0.0 through 172.31.0.255 40 C 192.168.0.0 through 192.168.255.255</literal></screen> 44 41 45 42 <para>A valid IP address could be 192.168.1.1. A valid FQDN for this 46 IP could be <uri>www. cross-lfs.org</uri> (not recommended43 IP could be <uri>www.linuxfromscratch.org</uri> (not recommended 47 44 because this is a valid registered domain address and could cause 48 45 domain name server issues).</para> 49 46 50 <para>Even if not using a network card, a validFQDN is still required.47 <para>Even if not using a network card, an FQDN is still required. 51 48 This is necessary for certain programs to operate correctly.</para> 52 49 53 <para>Create the <filename>/etc/hosts</filename> file by running:</para>50 <para>Create the <filename>/etc/hosts</filename> file by running:</para> 54 51 55 52 <screen><userinput>cat > /etc/hosts << "EOF" … … 57 54 58 55 127.0.0.1 localhost 59 <replaceable>[192.168.1.1]</replaceable> <replaceable>[<HOSTNAME>.example.org]</replaceable> <replaceable>[HOSTNAME]</replaceable> <replaceable>[alias ...]</replaceable>56 <replaceable>[192.168.1.1]</replaceable> <replaceable>[<HOSTNAME>.example.org]</replaceable> <replaceable>[HOSTNAME]</replaceable> 60 57 61 58 # End /etc/hosts (network card version)</literal> … … 66 63 values need to be changed for specific users or requirements (if 67 64 assigned an IP address by a network/system administrator and the 68 machine will be connected to an existing network). The optional69 alias name(s) can be omitted.</para> 65 machine will be connected to an existing network).</para> 66 70 67 71 68 <para>If a network card is not going to be configured, create the
Note:
See TracChangeset
for help on using the changeset viewer.