Ignore:
Timestamp:
01/06/2006 02:59:05 AM (19 years ago)
Author:
Jeremy Huntwork <jhuntwork@…>
Children:
e1ca33a
Parents:
1714f1a
Message:

Merged recent changes from trunk to lfs-alpha. Fixed typo.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/alphabetical/BOOK@7248 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter07/hosts.xml

    r1714f1a r46a2e9c  
    11<?xml version="1.0" encoding="ISO-8859-1"?>
    2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
     2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
     3  "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
    34  <!ENTITY % general-entities SYSTEM "../general.ent">
    45  %general-entities;
    56]>
     7
    68<sect1 id="ch-scripts-hosts">
    7 <title>Creating the /etc/hosts File</title>
    8 <?dbhtml filename="hosts.html"?>
     9  <?dbhtml filename="hosts.html"?>
    910
    10 <indexterm zone="ch-scripts-hosts"><primary sortas="e-/etc/hosts">/etc/hosts</primary></indexterm>
     11  <title>Creating the /etc/hosts File</title>
    1112
    12 <indexterm zone="ch-scripts-hosts">
    13 <primary sortas="d-localnet">localnet</primary>
    14 <secondary>/etc/hosts</secondary></indexterm>
     13  <indexterm zone="ch-scripts-hosts">
     14    <primary sortas="e-/etc/hosts">/etc/hosts</primary>
     15  </indexterm>
    1516
    16 <indexterm zone="ch-scripts-hosts">
    17 <primary sortas="d-network">network</primary>
    18 <secondary>/etc/hosts</secondary></indexterm>
     17  <indexterm zone="ch-scripts-hosts">
     18    <primary sortas="d-localnet">localnet</primary>
     19  <secondary>/etc/hosts</secondary></indexterm>
    1920
    20 <para>If a network card is to be configured, decide on the IP address,
    21 FQDN, and possible aliases for use in the
    22 <filename>/etc/hosts</filename> file. The syntax is:</para>
     21  <indexterm zone="ch-scripts-hosts">
     22    <primary sortas="d-network">network</primary>
     23  <secondary>/etc/hosts</secondary></indexterm>
    2324
    24 <screen>&lt;IP address&gt; myhost.example.org aliases</screen>
     25  <para>If a network card is to be configured, decide on the IP address,
     26  FQDN, and possible aliases for use in the
     27  <filename>/etc/hosts</filename> file. The syntax is:</para>
    2528
    26 <para>Unless the computer is to be visible to the Internet (i.e.,
    27 there is a registered domain and a valid block of assigned IP
    28 addresses&mdash;most users do not have this), make sure that the IP
    29 address is in the private network IP address range. Valid ranges
    30 are:</para>
     29<screen><literal>&lt;IP address&gt; myhost.example.org aliases</literal></screen>
    3130
    32 <screen>        Class Networks
     31  <para>Unless the computer is to be visible to the Internet (i.e.,
     32  there is a registered domain and a valid block of assigned IP
     33  addresses&mdash;most users do not have this), make sure that the IP
     34  address is in the private network IP address range. Valid ranges
     35  are:</para>
     36
     37<screen><literal>       Class Networks
    3338        A     10.0.0.0
    3439        B     172.16.0.0 through 172.31.0.255
    35         C     192.168.0.0 through 192.168.255.255</screen>
     40        C     192.168.0.0 through 192.168.255.255</literal></screen>
    3641
    37 <para>A valid IP address could be 192.168.1.1. A valid FQDN for this
    38 IP could be www.linuxfromscratch.org (not recommended because this is
    39 a valid registered domain address and could cause domain name server
    40 issues).</para>
     42  <para>A valid IP address could be 192.168.1.1. A valid FQDN for this
     43  IP could be www.linuxfromscratch.org (not recommended because this is
     44  a valid registered domain address and could cause domain name server
     45  issues).</para>
    4146
    42 <para>Even if not using a network card, an FQDN is still required.
    43 This is necessary for certain programs to operate correctly.</para>
     47  <para>Even if not using a network card, an FQDN is still required.
     48  This is necessary for certain programs to operate correctly.</para>
    4449
    45 <para>Create the  <filename>/etc/hosts</filename> file by running:</para>
     50  <para>Create the  <filename>/etc/hosts</filename> file by running:</para>
    4651
    4752<screen><userinput>cat &gt; /etc/hosts &lt;&lt; "EOF"
     
    5459EOF</userinput></screen>
    5560
    56 <para>The <replaceable>[192.168.1.1]</replaceable> and
    57 <replaceable>[&lt;HOSTNAME&gt;.example.org]</replaceable>
    58 values need to be changed for specific users or requirements (if
    59 assigned an IP address by a network/system administrator and the
    60 machine will be connected to an existing network).</para>
     61  <para>The <replaceable>[192.168.1.1]</replaceable> and
     62  <replaceable>[&lt;HOSTNAME&gt;.example.org]</replaceable>
     63  values need to be changed for specific users or requirements (if
     64  assigned an IP address by a network/system administrator and the
     65  machine will be connected to an existing network).</para>
    6166
    62 <para>If a network card is not going to be configured, create the
    63 <filename>/etc/hosts</filename> file by running:</para>
     67  <para>If a network card is not going to be configured, create the
     68  <filename>/etc/hosts</filename> file by running:</para>
    6469
    6570<screen role="nodump"><userinput>cat &gt; /etc/hosts &lt;&lt; "EOF"
     
    7277
    7378</sect1>
    74 
Note: See TracChangeset for help on using the changeset viewer.