Changeset ba85054d for chapter07/network.xml
- Timestamp:
- 05/06/2004 08:18:25 PM (20 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter07/network.xml
r8a240bed rba85054d 22 22 23 23 <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) for27 this machine. This is done by adding the proper values to the28 /etc/sysconfig/network file by running the following:</para>29 30 <screen><userinput>cat >> /etc/sysconfig/network << "EOF"</userinput>31 GATEWAY=192.168.1.232 GATEWAY_IF=eth033 <userinput>EOF</userinput></screen>34 35 <para>The values for GATEWAY and GATEWAY_IF need to be changed to match36 your network setup. GATEWAY contains the IP address of the default37 gateway, and GATEWAY_IF contains the network interface through which the38 default gateway can be reached.</para>39 40 </sect2>41 42 <sect2>43 24 <title>Creating network interface configuration files</title> 44 25 … … 59 40 SERVICE=static 60 41 IP=192.168.1.1 42 GATEWAY=192.168.1.2 61 43 NETMASK=255.255.255.0 62 44 BROADCAST=192.168.1.255 … … 75 57 other IP assignment methods. This would commonly be used if you need DHCP, 76 58 which is addressed in the BLFS book.</para> 59 60 <para>Of course, GATEWAY should contain the IP of your default gateway, if you 61 have one. If not, them comment out the variable entirely.</para> 77 62 78 63 </sect2>
Note:
See TracChangeset
for help on using the changeset viewer.