aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chapter07/network.xml23
1 files changed, 4 insertions, 19 deletions
diff --git a/chapter07/network.xml b/chapter07/network.xml
index 18b44411f..239bf1daa 100644
--- a/chapter07/network.xml
+++ b/chapter07/network.xml
@@ -21,25 +21,6 @@ run-level directories
(<filename class="directory">/etc/rc.d/rc*.d</filename>)</para>
<sect2>
-<title>Configuring default gateway</title>
-
-<para>If you're on a network you may need to set up the default gateway (a node on your network that provides access to other networks) for
-this machine. This is done by adding the proper values to the
-/etc/sysconfig/network file by running the following:</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>The values for GATEWAY and GATEWAY_IF need to be changed to match
-your network setup. GATEWAY contains the IP address of the default
-gateway, and GATEWAY_IF contains the network interface through which the
-default gateway can be reached.</para>
-
-</sect2>
-
-<sect2>
<title>Creating network interface configuration files</title>
<para>Which interfaces are brought up and down by the network script depends on
@@ -58,6 +39,7 @@ The following command creates a sample ifconfig.eth0 file:</para>
ONBOOT=yes
SERVICE=static
IP=192.168.1.1
+GATEWAY=192.168.1.2
NETMASK=255.255.255.0
BROADCAST=192.168.1.255
<userinput>EOF</userinput></screen>
@@ -75,6 +57,9 @@ additional files in /etc/sysconfig/network-devices/services, you can allow
other IP assignment methods. This would commonly be used if you need DHCP,
which is addressed in the BLFS book.</para>
+<para>Of course, GATEWAY should contain the IP of your default gateway, if you
+have one. If not, them comment out the variable entirely.</para>
+
</sect2>
<sect2>