aboutsummaryrefslogtreecommitdiffstats
path: root/chapter07/ethnet.xml
diff options
context:
space:
mode:
authorMark Hymers <markh@linuxfromscratch.org>2001-07-22 19:45:10 +0000
committerMark Hymers <markh@linuxfromscratch.org>2001-07-22 19:45:10 +0000
commitb822811980a5f82726cb641cbeff66be9eb6d92a (patch)
tree27c4db3c62aaea065b053e43c39b2ba44c04a05f /chapter07/ethnet.xml
parent46f5461af92bc70c62bbb92895032b930954d835 (diff)
XML changes
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@827 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter07/ethnet.xml')
-rw-r--r--chapter07/ethnet.xml81
1 files changed, 25 insertions, 56 deletions
diff --git a/chapter07/ethnet.xml b/chapter07/ethnet.xml
index f9687161b..d1b593b30 100644
--- a/chapter07/ethnet.xml
+++ b/chapter07/ethnet.xml
@@ -1,19 +1,13 @@
<sect1 id="ch07-ethnet">
<title>Creating the /etc/init.d/ethnet script</title>
-<para>
-This section only applies if a user is going to configure a network card.
-If not, this section can be skipped.
-</para>
-
-<para>
-Create the <filename>/etc/init.d/ethnet</filename> script by running the
-following command:
-</para>
-
-<para>
-<screen>
-<userinput>cat &gt; /etc/init.d/ethnet &lt;&lt; "EOF"</userinput>
+<para>This section only applies if a user is going to configure a network card.
+If not, this section can be skipped.</para>
+
+<para>Create the <filename>/etc/init.d/ethnet</filename> script by running the
+following command:</para>
+
+<para><screen><userinput>cat &gt; /etc/init.d/ethnet &lt;&lt; "EOF"</userinput>
#!/bin/sh
# Begin /etc/init.d/ethnet
#
@@ -114,82 +108,57 @@ case "$1" in
esac
# End /etc/init.d/ethnet
-<userinput>EOF</userinput>
-</screen>
-</para>
+<userinput>EOF</userinput></screen></para>
<sect2>
<title>Adding default gateway to /etc/sysconfig/network</title>
-<para>
-If a default gateway is required to be setup, the following command does that:
-</para>
+<para>If a default gateway is required to be setup, the
+following command does that:</para>
-<para>
-<screen>
-<userinput>cat &gt;&gt; /etc/sysconfig/network &lt;&lt; "EOF"</userinput>
+<para><screen><userinput>cat &gt;&gt; /etc/sysconfig/network &lt;&lt; "EOF"</userinput>
GATEWAY=192.168.1.2
GATEWAY_IF=eth0
-<userinput>EOF</userinput>
-</screen>
-</para>
+<userinput>EOF</userinput></screen></para>
-<para>
-GATEWAY and GATEWAY_IF need to be changed to match the network setup.
+<para>GATEWAY and GATEWAY_IF need to be changed to match the network setup.
GATEWAY contains the address of the default gateway, and GATEWAY_IF
contains the network interface through which that default gateway can
-be reached.
-</para>
+be reached.</para>
</sect2>
<sect2>
<title>Creating NIC configuration files</title>
-<para>
-Which interfaces are brought up and down by the ethnet script depends on
+<para>Which interfaces are brought up and down by the ethnet script depends on
the files in the /etc/sysconfig/nic-config directory. This
directory should contain files in the form of ifcfg-x where x is an
-identification number (or whatever a user named it).
-</para>
-
-<para>
-First the nic-config directory is created by running:
-</para>
+identification number (or whatever a user named it).</para>
-<para>
-<screen>
-<userinput>mkdir /etc/sysconfig/nic-config</userinput>
-</screen>
-</para>
+<para>First the nic-config directory is created by running:</para>
-<para>
+<para><screen><userinput>mkdir
+/etc/sysconfig/nic-config</userinput></screen></para>
-Now, new files are created in that directory containing the following.
-The following command creates a sample file ifcfg-eth0:
-</para>
+<para>Now, new files are created in that directory containing the following.
+The following command creates a sample file ifcfg-eth0:</para>
-<para>
-<screen>
-<userinput>cat &gt; /etc/sysconfig/nic-config/ifcfg-eth0 &lt;&lt; "EOF"</userinput>
+<para><screen><userinput>cat &gt; /etc/sysconfig/nic-config/ifcfg-eth0 &lt;&lt; "EOF"</userinput>
ONBOOT=yes
DEVICE=eth0
IP=192.168.1.1
NETMASK=255.255.255.0
BROADCAST=192.168.1.255
-<userinput>EOF</userinput>
-</screen>
-</para>
+<userinput>EOF</userinput></screen></para>
-<para>
-Of course, the values of those four variables have to be changed
+<para>Of course, the values of those four variables have to be changed
in every file to
match the proper setup. Usually NETMASK and BROADCAST will remain the
same, just the DEVICE IP variables will change per network interface. If
the ONBOOT variable is set to yes, the ethnet script will bring it up
during boot up of the system. If set to anything else but yes it will be
-ignored by the ethnet script and thus not brought up.
-</para>
+ignored by the ethnet script and thus not brought up.</para>
</sect2>