From a08896444cac8ccef03f233e1f7bb40c0f849109 Mon Sep 17 00:00:00 2001 From: Matthew Burgess Date: Wed, 14 Jul 2004 20:49:05 +0000 Subject: * 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 --- chapter07/network.xml | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) (limited to 'chapter07') 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 Which interfaces are brought up and down by the network script depends on the files in the /etc/sysconfig/network-devices directory. This -directory should contain files in the form of ifconfig.xyz, where xyz is a -network interface name (such as eth0 or eth0:1) +directory should contain subdirectories in the form of +ifconfig.xyz, where xyz is a network +interface name (such as eth0 or eth0:1) -If you decide to rename or move this /etc/sysconfig/network-devices -directory, make sure you update the /etc/sysconfig/rc file as well and +If you decide to rename or move this +/etc/sysconfig/network-devices directory, +make sure you update the /etc/sysconfig/rc file as well and update the network_devices by providing it with the new path. -Now, new files are created in that directory. -The following command creates a sample ifconfig.eth0 file: +Now, new files are created in that directory. The following command +creates a sample ipv4 file for the +eth0 device: -cat > /etc/sysconfig/network-devices/ifconfig.eth0 << "EOF" +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 @@ -75,6 +80,7 @@ following: cat > /etc/resolv.conf << "EOF" # Begin /etc/resolv.conf +domain {[Your Domain Name]} nameserver [IP address of your nameserver] # End /etc/resolv.conf -- cgit v1.2.3-54-g00ecf