From a202fac245fef9da0fd502545ca42c16b3e804ff Mon Sep 17 00:00:00 2001 From: Gerard Beekmans Date: Wed, 28 Feb 2001 01:35:31 +0000 Subject: Use cat > file << EOF construction to create sample ifcfg-eth0 file git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@247 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter07/ethnet.xml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'chapter07/ethnet.xml') diff --git a/chapter07/ethnet.xml b/chapter07/ethnet.xml index a1630a6cc..317660734 100644 --- a/chapter07/ethnet.xml +++ b/chapter07/ethnet.xml @@ -157,17 +157,21 @@ First create the network-scripts directory by running: + Now, create new files in that directory containing the following. -Example file names are ifcfg-eth0, ifcfg-eth0:3 and ifcfg-eth1:2 +The following creates a sample file ifcfg-eth0:
+cat > /etc/sysconfig/network-scripts/ifcfg-eth0 + << EOF ONBOOT=yes DEVICE=eth0 IP=192.168.1.1 NETMASK=255.255.255.0 BROADCAST=192.168.1.255 +EOF
-- cgit v1.2.3-54-g00ecf