Changeset 676d923 in clfs-sysroot for BOOK/network/common
- Timestamp:
- Mar 15, 2009, 2:42:22 PM (16 years ago)
- Branches:
- master
- Children:
- 10658db
- Parents:
- 1970967
- Location:
- BOOK/network/common
- Files:
-
- 3 added
- 3 moved
Legend:
- Unmodified
- Added
- Removed
-
BOOK/network/common/hostname.xml
r1970967 r676d923 6 6 ]> 7 7 8 <sect1 id="ch- scripts-hostname">8 <sect1 id="ch-network-hostname"> 9 9 <?dbhtml filename="hostname.html"?> 10 10 11 11 <title>Configuring the localnet Script</title> 12 12 13 <indexterm zone="ch- scripts-hostname">13 <indexterm zone="ch-network-hostname"> 14 14 <primary sortas="d-localnet">localnet</primary> 15 15 <secondary>configuring</secondary></indexterm> … … 22 22 and enter a hostname by running:</para> 23 23 24 <screen><userinput>echo "HOSTNAME=<replaceable>[ lfs]</replaceable>" > ${CLFS}/etc/sysconfig/network</userinput></screen>24 <screen><userinput>echo "HOSTNAME=<replaceable>[clfs]</replaceable>" > ${CLFS}/etc/sysconfig/network</userinput></screen> 25 25 26 <para><replaceable>[ lfs]</replaceable> needs to be replaced with the26 <para><replaceable>[clfs]</replaceable> needs to be replaced with the 27 27 name given to the computer. Do not enter the Fully Qualified 28 28 Domain Name (FQDN) here. That information will be put in the -
BOOK/network/common/hosts.xml
r1970967 r676d923 6 6 ]> 7 7 8 <sect1 id="ch- scripts-hosts">8 <sect1 id="ch-network-hosts"> 9 9 <?dbhtml filename="hosts.html"?> 10 10 11 11 <title>Customizing the /etc/hosts File</title> 12 12 13 <indexterm zone="ch- scripts-hosts">13 <indexterm zone="ch-network-hosts"> 14 14 <primary sortas="e-/etc/hosts">/etc/hosts</primary> 15 15 </indexterm> 16 16 17 <indexterm zone="ch- scripts-hosts">17 <indexterm zone="ch-network-hosts"> 18 18 <primary sortas="d-localnet">localnet</primary> 19 19 <secondary>/etc/hosts</secondary></indexterm> 20 20 21 <indexterm zone="ch- scripts-hosts">21 <indexterm zone="ch-network-hosts"> 22 22 <primary sortas="d-network">network</primary> 23 23 <secondary>/etc/hosts</secondary></indexterm> -
BOOK/network/common/static.xml
r1970967 r676d923 6 6 ]> 7 7 8 <sect1 id="ch- scripts-network">9 <?dbhtml filename="network .html"?>8 <sect1 id="ch-network-static"> 9 <?dbhtml filename="network-static.html"?> 10 10 11 <title>Configuring the network Script</title> 12 13 <indexterm zone="ch-scripts-network"> 14 <primary sortas="d-network">network</primary> 15 <secondary>configuring</secondary></indexterm> 16 17 <para>This section only applies if a network card is to be 18 configured.</para> 19 20 <para>If a network card will not be used, there is likely no need to 21 create any configuration files relating to network cards. If that is 22 the case, remove the <filename class="symlink">network</filename> 23 symlinks from all run-level directories (<filename 24 class="directory">/etc/rc.d/rc*.d</filename>).</para> 11 <title>Static Networking Configuration</title> 25 12 26 13 <sect2> 27 <title>Creating Network Interface Configuration Files</title>14 <title>Creating the Static Network Interface Configuration Files</title> 28 15 29 16 <para>Which interfaces are brought up and down by the network script … … 50 37 EOF</userinput></screen> 51 38 52 <para >The values of these variables must be changed in every file to match39 <para os="var-ob">The values of these variables must be changed in every file to match 53 40 the proper setup. If the <envar>ONBOOT</envar> variable is set to 54 41 <quote>yes</quote> the network script will bring up the Network Interface … … 57 44 be brought up.</para> 58 45 59 <para >The <envar>SERVICE</envar> variable defines the method used for46 <para os="var-s">The <envar>SERVICE</envar> variable defines the method used for 60 47 obtaining the IP address. The CLFS-Bootscripts package has a modular IP 61 48 assignment format, and creating additional files in the <filename 62 49 class="directory">/etc/sysconfig/network-devices/services</filename> 63 directory allows other IP assignment methods. This is commonly used for 64 Dynamic Host Configuration Protocol (DHCP), which is addressed in the 65 BLFS book.</para> 50 directory allows other IP assignment methods.</para> 66 51 67 52 <para>The <envar>GATEWAY</envar> variable should contain the default … … 78 63 <envar>PREFIX</envar> variable according to your specific subnet.</para> 79 64 80 </sect2> 81 82 <sect2 id="resolv.conf"> 83 <title>Creating the ${CLFS}/etc/resolv.conf File</title> 84 85 <indexterm zone="resolv.conf"> 86 <primary sortas="e-/etc/resolv.conf">/etc/resolv.conf</primary> 87 </indexterm> 88 89 <para>If the system is going to be connected to the Internet, it will 90 need some means of Domain Name Service (DNS) name resolution to 91 resolve Internet domain names to IP addresses, and vice versa. This is 92 best achieved by placing the IP address of the DNS server, available 93 from the ISP or network administrator, into 94 <filename>/etc/resolv.conf</filename>. Create the file by running the 95 following:</para> 96 97 <screen><userinput>cat > ${CLFS}/etc/resolv.conf << "EOF" 98 <literal># Begin /etc/resolv.conf 99 100 domain <replaceable>[Your Domain Name]</replaceable> 101 nameserver <replaceable>[IP address of your primary nameserver]</replaceable> 102 nameserver <replaceable>[IP address of your secondary nameserver]</replaceable> 103 104 # End /etc/resolv.conf</literal> 105 EOF</userinput></screen> 106 107 <para>Replace <replaceable>[IP address of the nameserver]</replaceable> 108 with the IP address of the DNS most appropriate for the setup. There will 109 often be more than one entry (requirements demand secondary servers for 110 fallback capability). If you only need or want one DNS server, remove the 111 second <emphasis>nameserver</emphasis> line from the file. The IP address 112 may also be a router on the local network.</para> 65 <para>To configure another DHCP Interface, Follow <xref linkend="ch-network-dhcp"/>.</para> 113 66 114 67 </sect2>
Note:
See TracChangeset
for help on using the changeset viewer.