cvs commit: LFS/BOOK/chapter07 network.xml

winkie at linuxfromscratch.org winkie at linuxfromscratch.org
Thu May 6 13:18:25 PDT 2004


winkie      04/05/06 14:18:25

  Modified:    BOOK/chapter07 network.xml
  Log:
  Updated default gateway setup to match LFS-bootscripts 2.1
  
  Revision  Changes    Path
  1.24      +4 -19     LFS/BOOK/chapter07/network.xml
  
  Index: network.xml
  ===================================================================
  RCS file: /home/cvsroot/LFS/BOOK/chapter07/network.xml,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- network.xml	3 May 2004 10:59:43 -0000	1.23
  +++ network.xml	6 May 2004 20:18:25 -0000	1.24
  @@ -21,25 +21,6 @@
   (<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 @@
   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>
  @@ -74,6 +56,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>
   
  
  
  



More information about the lfs-book mailing list