diff options
author | Zack Winkles <winkie@linuxfromscratch.org> | 2004-05-06 20:18:25 +0000 |
---|---|---|
committer | Zack Winkles <winkie@linuxfromscratch.org> | 2004-05-06 20:18:25 +0000 |
commit | ba85054d37184c87d5b549d1e7560f666bf13706 (patch) | |
tree | c4e094df963934dfdaf070be5a4db7ef9c66e30b | |
parent | 8a240bed17aa4ca9e26bdd8eb7bf449b9137a112 (diff) |
Updated default gateway setup to match LFS-bootscripts 2.1
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3497 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
-rw-r--r-- | chapter07/network.xml | 23 |
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 >> /etc/sysconfig/network << "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> |