aboutsummaryrefslogtreecommitdiffstats
path: root/chapter07/network.xml
diff options
context:
space:
mode:
authorMatthew Burgess <matthew@linuxfromscratch.org>2004-07-14 20:49:05 +0000
committerMatthew Burgess <matthew@linuxfromscratch.org>2004-07-14 20:49:05 +0000
commita08896444cac8ccef03f233e1f7bb40c0f849109 (patch)
tree1963ad51bed0deef326cc64789700c6053e63903 /chapter07/network.xml
parenta766a93bec86d344eaec47716647e07f8a101bbb (diff)
* Merged recent testing changes back up to unstable (bootscripts & iproute2)
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3939 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter07/network.xml')
-rw-r--r--chapter07/network.xml24
1 files changed, 15 insertions, 9 deletions
diff --git a/chapter07/network.xml b/chapter07/network.xml
index 19109c01e..3113aec58 100644
--- a/chapter07/network.xml
+++ b/chapter07/network.xml
@@ -25,22 +25,27 @@ run-level directories
<para>Which interfaces are brought up and down by the network script depends on
the files in the <filename class="directory">/etc/sysconfig/network-devices</filename> directory. This
-directory should contain files in the form of <filename>ifconfig.xyz</filename>, where <quote>xyz</quote> is a
-network interface name (such as eth0 or eth0:1)</para>
+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>
-<para>If you decide to rename or move this <filename class="directory">/etc/sysconfig/network-devices</filename>
-directory, make sure you update the <filename>/etc/sysconfig/rc</filename> file as well and
+<para>If you decide to rename or move this
+<filename class="directory">/etc/sysconfig/network-devices</filename> directory,
+make sure you update the <filename>/etc/sysconfig/rc</filename> file as well and
update the <quote>network_devices</quote> by providing it with the new path.</para>
-<para>Now, new files are created in that directory.
-The following command creates a sample <filename>ifconfig.eth0</filename> file:</para>
+<para>Now, new files are created in that directory. The following command
+creates a sample <filename>ipv4</filename> file for the
+<filename>eth0</filename> device:</para>
-<screen><userinput>cat &gt; /etc/sysconfig/network-devices/ifconfig.eth0 &lt;&lt; "EOF"
+<screen><userinput>cd /etc/sysconfig/network-devices &amp;&amp;
+mkdir ifconfig.eth0 &amp;&amp;
+cat &gt; ifconfig.eth0/ipv4 &lt;&lt; "EOF"
ONBOOT=yes
-SERVICE=static
+SERVICE=ipv4-static
IP=192.168.1.1
GATEWAY=192.168.1.2
-NETMASK=255.255.255.0
+NETMASK=24
BROADCAST=192.168.1.255
EOF</userinput></screen>
@@ -75,6 +80,7 @@ following:</para>
<screen><userinput>cat &gt; /etc/resolv.conf &lt;&lt; "EOF"
# Begin /etc/resolv.conf
+domain {<replaceable>[Your Domain Name]</replaceable>}
nameserver <replaceable>[IP address of your nameserver]</replaceable>
# End /etc/resolv.conf