diff options
author | Matthew Burgess <matthew@linuxfromscratch.org> | 2004-07-14 20:49:05 +0000 |
---|---|---|
committer | Matthew Burgess <matthew@linuxfromscratch.org> | 2004-07-14 20:49:05 +0000 |
commit | a08896444cac8ccef03f233e1f7bb40c0f849109 (patch) | |
tree | 1963ad51bed0deef326cc64789700c6053e63903 /chapter07 | |
parent | a766a93bec86d344eaec47716647e07f8a101bbb (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')
-rw-r--r-- | chapter07/network.xml | 24 |
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 > /etc/sysconfig/network-devices/ifconfig.eth0 << "EOF" +<screen><userinput>cd /etc/sysconfig/network-devices && +mkdir ifconfig.eth0 && +cat > ifconfig.eth0/ipv4 << "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 > /etc/resolv.conf << "EOF" # Begin /etc/resolv.conf +domain {<replaceable>[Your Domain Name]</replaceable>} nameserver <replaceable>[IP address of your nameserver]</replaceable> # End /etc/resolv.conf |