Changes in chapter09/network.xml [1966b8d:c5c1e86]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter09/network.xml
r1966b8d rc5c1e86 18 18 <title>Creating Network Interface Configuration Files</title> 19 19 20 <para> Which interfaces are brought up and down by the network script21 usually de pends on the files in <filename22 class="directory">/etc/sysconfig/</filename>. This directory should20 <para>The files in <filename class="directory">/etc/sysconfig/</filename> 21 usually determine which interfaces are brought up and down by the network 22 script. This directory should 23 23 contain a file for each interface to be configured, such as 24 <filename>ifconfig.xyz</filename>, where <quote>xyz</quote> should describe24 <filename>ifconfig.xyz</filename>, where <quote>xyz</quote> describes 25 25 the network card. The interface name (e.g. eth0) is usually appropriate. 26 Inside this file are attributes to thisinterface, such as its IP27 address(es), subnet masks, and so forth. It is necessary that the stem of28 the filename be <emphasis>ifconfig</emphasis>.</para>26 Each file contains the attributes of one interface, such as its IP 27 address(es), subnet masks, and so forth. The stem of 28 the filename must be <emphasis>ifconfig</emphasis>.</para> 29 29 30 30 <note> … … 39 39 configuration of the udev daemon running on the system. The udev 40 40 daemon for LFS (installed in <xref linkend="ch-system-eudev"/>) will 41 not run until the LFS system is booted. So it's unreliable to42 determine the interface names being used in LFS systemby running41 not run until the LFS system is booted. So the interface names 42 in the LFS system cannot always be determined by running 43 43 those commands on the host distro, 44 <emphasis>even thoughin the chroot environment</emphasis>.</para>44 <emphasis>even in the chroot environment</emphasis>.</para> 45 45 </note> 46 46 … … 60 60 EOF</userinput></screen> 61 61 62 <para>The values in italics must be changed in e very file to match63 the proper setup.</para>62 <para>The values in italics must be changed in each file, to set 63 the interfaces up correctly.</para> 64 64 65 65 <para>If the <envar>ONBOOT</envar> variable is set to <quote>yes</quote> the 66 66 System V network script will bring up the Network Interface Card (NIC) during 67 the system boot process. If set to anything b ut <quote>yes</quote>the NIC68 will be ignored by the network script and not be automatically brought up.69 The interfacecan be manually started or stopped with the67 the system boot process. If set to anything besides <quote>yes</quote>, the NIC 68 will be ignored by the network script and will not be started automatically. 69 Interfaces can be manually started or stopped with the 70 70 <command>ifup</command> and <command>ifdown</command> commands.</para> 71 71 … … 85 85 variable entirely.</para> 86 86 87 <para>The <envar>PREFIX</envar> variable contains the number of88 bits used in the subnet. Each octet inan IP address is 8 bits. If the89 subnet's netmask is 255.255.255.0, then it is using the first three octets87 <para>The <envar>PREFIX</envar> variable specifies the number of 88 bits used in the subnet. Each segment of an IP address is 8 bits. If the 89 subnet's netmask is 255.255.255.0, then it is using the first three segments 90 90 (24 bits) to specify the network number. If the netmask is 255.255.255.240, 91 it would beusing the first 28 bits. Prefixes longer than 24 bits are91 the subnet is using the first 28 bits. Prefixes longer than 24 bits are 92 92 commonly used by DSL and cable-based Internet Service Providers (ISPs). 93 93 In this example (PREFIX=24), the netmask is 255.255.255.0. Adjust the … … 140 140 141 141 <sect2 id="ch-config-hostname"> 142 <title>Configuring the system hostname</title>142 <title>Configuring the System Hostname</title> 143 143 144 144 <indexterm zone="ch-config-hostname"> … … 157 157 <para><replaceable><lfs></replaceable> needs to be replaced with the 158 158 name given to the computer. Do not enter the Fully Qualified Domain Name 159 (FQDN) here. That information is putin the159 (FQDN) here. That information goes in the 160 160 <filename>/etc/hosts</filename> file.</para> 161 161
Note:
See TracChangeset
for help on using the changeset viewer.