Ignore:
Timestamp:
05/06/2004 08:18:25 PM (20 years ago)
Author:
Zack Winkles <winkie@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.0, 6.1, 6.1.1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
4a80bec
Parents:
8a240bed
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter07/network.xml

    r8a240bed rba85054d  
    2222
    2323<sect2>
    24 <title>Configuring default gateway</title>
    25 
    26 <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
    27 this machine. This is done by adding the proper values to the
    28 /etc/sysconfig/network file by running the following:</para>
    29 
    30 <screen><userinput>cat &gt;&gt; /etc/sysconfig/network &lt;&lt; "EOF"</userinput>
    31 GATEWAY=192.168.1.2
    32 GATEWAY_IF=eth0
    33 <userinput>EOF</userinput></screen>
    34 
    35 <para>The values for GATEWAY and GATEWAY_IF need to be changed to match
    36 your network setup. GATEWAY contains the IP address of the default
    37 gateway, and GATEWAY_IF contains the network interface through which the
    38 default gateway can be reached.</para>
    39 
    40 </sect2>
    41 
    42 <sect2>
    4324<title>Creating network interface configuration files</title>
    4425
     
    5940SERVICE=static
    6041IP=192.168.1.1
     42GATEWAY=192.168.1.2
    6143NETMASK=255.255.255.0
    6244BROADCAST=192.168.1.255
     
    7557other IP assignment methods.  This would commonly be used if you need DHCP,
    7658which is addressed in the BLFS book.</para>
     59
     60<para>Of course, GATEWAY should contain the IP of your default gateway, if you
     61have one. If not, them comment out the variable entirely.</para>
    7762
    7863</sect2>
Note: See TracChangeset for help on using the changeset viewer.