aboutsummaryrefslogtreecommitdiffstats
path: root/chapter07/network.xml
diff options
context:
space:
mode:
authorMatthew Burgess <matthew@linuxfromscratch.org>2004-07-14 20:52:08 +0000
committerMatthew Burgess <matthew@linuxfromscratch.org>2004-07-14 20:52:08 +0000
commit287a4e78c059516c141c79596c3213132fa6fa13 (patch)
tree8c7b099fc350c05691c77e86af74823ab00f593a /chapter07/network.xml
parent15afe874cd36d09d922c8b0074e477e16949a4ee (diff)
* Fixed a couple of issues with the network configuration
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/testing/BOOK@3940 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter07/network.xml')
-rw-r--r--chapter07/network.xml6
1 files changed, 4 insertions, 2 deletions
diff --git a/chapter07/network.xml b/chapter07/network.xml
index 68359f269..3113aec58 100644
--- a/chapter07/network.xml
+++ b/chapter07/network.xml
@@ -38,12 +38,14 @@ update the <quote>network_devices</quote> by providing it with the new path.</pa
creates a sample <filename>ipv4</filename> file for the
<filename>eth0</filename> device:</para>
-<screen><userinput>cat &gt; /etc/sysconfig/network-devices/ifconfig.eth0/ipv4 &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=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>