|
@@ -27,7 +27,7 @@ run-level directories
|
|
|
the files in the <filename class="directory">/etc/sysconfig/network-devices</filename> directory. This
|
|
|
directory should contain subdirectories in the form of
|
|
|
<filename>ifconfig.xyz</filename>, where <quote>xyz</quote> is a network
|
|
|
-interface name (such as eth0 or eth0:1)</para>
|
|
|
+interface name (such as eth0)</para>
|
|
|
|
|
|
<para>If you decide to rename or move this
|
|
|
<filename class="directory">/etc/sysconfig/network-devices</filename> directory,
|
|
@@ -45,25 +45,26 @@ ONBOOT=yes
|
|
|
SERVICE=ipv4-static
|
|
|
IP=192.168.1.1
|
|
|
GATEWAY=192.168.1.2
|
|
|
-NETMASK=24
|
|
|
+PREFIX=24
|
|
|
BROADCAST=192.168.1.255
|
|
|
EOF</userinput></screen>
|
|
|
|
|
|
-<para>Of course, the values of those variables have to be changed
|
|
|
-in every file to match the proper setup. If the ONBOOT variable is set
|
|
|
-to <quote>yes</quote>, the network script will bring up the equivalent NIC (Network Interface Card)
|
|
|
- during the booting of the system.
|
|
|
-If set to anything but <quote>yes</quote>, the equivalent NIC will be ignored by the network script
|
|
|
-and not brought up.</para>
|
|
|
+<para>Of course, the values of those variables have to be changed in every file
|
|
|
+to match the proper setup. If the ONBOOT variable is set to <quote>yes</quote>,
|
|
|
+the network script will bring up the equivalent interface during the booting of
|
|
|
+the system. If set to anything but <quote>yes</quote>, the equivalent interface
|
|
|
+will be ignored by the network script and not brought up.</para>
|
|
|
|
|
|
-<para>The SERVICE entry defines the method of obtaining the IP address.
|
|
|
-The LFS bootscripts have a modular IP assignment format, and by creating
|
|
|
-additional files in <filename class="directory">/etc/sysconfig/network-devices/services</filename>, you can allow
|
|
|
-other IP assignment methods. This would commonly be used if you need DHCP,
|
|
|
-which is addressed in the BLFS book.</para>
|
|
|
+<para>The SERVICE entry defines the method of obtaining the IP address. The LFS
|
|
|
+bootscripts have a modular IP assignment format, and by creating additional
|
|
|
+files in
|
|
|
+<filename class="directory">/etc/sysconfig/network-devices/services</filename>,
|
|
|
+you can allow other IP assignment methods. This would commonly be used if you
|
|
|
+need DHCP, which is addressed in the BLFS book.</para>
|
|
|
|
|
|
<para>Of course, GATEWAY should contain the IP of your default gateway, if you
|
|
|
-have one. If not, then comment out the variable entirely.</para>
|
|
|
+have one. If not, then don't include the GATEWAY line in the configuration
|
|
|
+file.</para>
|
|
|
|
|
|
</sect2>
|
|
|
|
|
@@ -73,9 +74,10 @@ have one. If not, then comment out the variable entirely.</para>
|
|
|
|
|
|
<para>If you're going to be connected to the Internet then most likely you'll
|
|
|
need some means of DNS name resolution to resolve Internet domain names to IP
|
|
|
-addresses. This is best achieved by placing the IP address of your DNS, available from your ISP (Internet Service Provider) or network administrator,
|
|
|
-into <filename>/etc/resolv.conf</filename>. Create the file by running the
|
|
|
-following:</para>
|
|
|
+addresses. This is best achieved by placing the IP address of your assigned DNS
|
|
|
+resolver, available from your ISP (Internet Service Provider) or network
|
|
|
+administrator, into <filename>/etc/resolv.conf</filename>. Create the file by
|
|
|
+running the following:</para>
|
|
|
|
|
|
<screen><userinput>cat > /etc/resolv.conf << "EOF"
|
|
|
# Begin /etc/resolv.conf
|
|
@@ -86,9 +88,11 @@ nameserver <replaceable>[IP address of your nameserver]</replaceable>
|
|
|
# End /etc/resolv.conf
|
|
|
EOF</userinput></screen>
|
|
|
|
|
|
-<para>Of course, replace <replaceable>[IP address of your nameserver]</replaceable> with the IP
|
|
|
-address of the DNS most appropriate for your setup. There will often be
|
|
|
-more than one entry (requirements demand secondary servers for fallback capability). The IP address may even be a router on your local network.</para>
|
|
|
+<para>Of course, replace
|
|
|
+<replaceable>[IP address of your nameserver]</replaceable> with the IP address
|
|
|
+of the DNS resolver assigned for your use. There will often be more than one
|
|
|
+entry (requirements demand secondary servers for fallback capability). The IP
|
|
|
+address may even be a router on your local network.</para>
|
|
|
|
|
|
</sect2>
|
|
|
|