mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-19 03:39:20 +01:00
* Fixed various networking inaccuracies
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3941 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
a08896444c
commit
c0155c7108
@ -79,6 +79,9 @@ first a summary, then a detailed log.</para>
|
|||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
|
<listitem><para>July 15, 2004 [matt]: Fixed various networking inaccuracies
|
||||||
|
(Kevin P. Fleming)</para></listitem>
|
||||||
|
|
||||||
<listitem><para>July 14, 2004 [matt]: Upgraded to lfs-bootscripts-2.2.0.</para>
|
<listitem><para>July 14, 2004 [matt]: Upgraded to lfs-bootscripts-2.2.0.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
|
@ -7,11 +7,13 @@
|
|||||||
<title>Iproute2-&iproute2-version;</title>
|
<title>Iproute2-&iproute2-version;</title>
|
||||||
<?dbhtml filename="iproute2.html"?>
|
<?dbhtml filename="iproute2.html"?>
|
||||||
<indexterm zone="ch-system-iproute2">
|
<indexterm zone="ch-system-iproute2">
|
||||||
<primary sortas="a-IProute2">IProute2</primary>
|
<primary sortas="a-iproute2">iproute2</primary>
|
||||||
</indexterm>
|
</indexterm>
|
||||||
<sect2 role="package">
|
<sect2 role="package">
|
||||||
<title/>
|
<title/>
|
||||||
<para>The IPRoute2 package contains programs for basic networking.</para>
|
<para>The iproute2 package contains programs for basic and advanced
|
||||||
|
IPV4-based networking.
|
||||||
|
</para>
|
||||||
<segmentedlist>
|
<segmentedlist>
|
||||||
<segtitle>&buildtime;</segtitle>
|
<segtitle>&buildtime;</segtitle>
|
||||||
<segtitle>&diskspace;</segtitle>
|
<segtitle>&diskspace;</segtitle>
|
||||||
@ -21,26 +23,26 @@
|
|||||||
</seglistitem>
|
</seglistitem>
|
||||||
</segmentedlist>
|
</segmentedlist>
|
||||||
<segmentedlist>
|
<segmentedlist>
|
||||||
<segtitle>IPRoute2 installation depends on</segtitle>
|
<segtitle>iproute2 installation depends on</segtitle>
|
||||||
<seglistitem>
|
<seglistitem>
|
||||||
<seg>sed, GCC, Glibc, Make, Linux-Headers</seg>
|
<seg>sed, GCC, Glibc, Make, Linux-Headers</seg>
|
||||||
</seglistitem>
|
</seglistitem>
|
||||||
</segmentedlist>
|
</segmentedlist>
|
||||||
</sect2>
|
</sect2>
|
||||||
<sect2 role="installation">
|
<sect2 role="installation">
|
||||||
<title>Installation of IProute2</title>
|
<title>Installation of iproute2</title>
|
||||||
<para>The <command>arp</command> binary included in this package is
|
<para>The <command>arpd</command> binary included in this package is
|
||||||
dependent on Berkeley-DB. As <command>arp</command> is not a very
|
dependent on Berkeley DB. As <command>arpd</command> is not a very
|
||||||
common requirement on a base Linux system we remove the dependency on
|
common requirement on a base Linux system we remove the dependency on
|
||||||
Berkeley-DB by applying the patch using the command below. If you
|
Berkeley DB by applying the patch using the command below. If you
|
||||||
need the <command>arp</command> binary, then instructions for
|
need the <command>arpd</command> binary, then instructions for
|
||||||
compiling Berkeley-DB can be found in the <ulink
|
compiling Berkeley DB can be found in the <ulink
|
||||||
url="http://www.linuxfromscratch.org/blfs/view/cvs/content/databases.html#db">BLFS book</ulink>.
|
url="http://www.linuxfromscratch.org/blfs/view/cvs/content/databases.html#db">BLFS book</ulink>.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<screen><userinput>patch -Np1 -i ../iproute2-&iproute2-version;-remove_db-1.patch</userinput></screen>
|
<screen><userinput>patch -Np1 -i ../iproute2-&iproute2-version;-remove_db-1.patch</userinput></screen>
|
||||||
|
|
||||||
<para>Prepare IProute2 for compilation:</para>
|
<para>Prepare iproute2 for compilation:</para>
|
||||||
<screen> <userinput>./configure </userinput></screen>
|
<screen> <userinput>./configure </userinput></screen>
|
||||||
|
|
||||||
<para>Compile the package:</para>
|
<para>Compile the package:</para>
|
||||||
@ -53,7 +55,7 @@
|
|||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
<sect2 id="contents-iproute2" role="content">
|
<sect2 id="contents-iproute2" role="content">
|
||||||
<title>Contents of IPRoute2</title>
|
<title>Contents of iproute2</title>
|
||||||
<segmentedlist>
|
<segmentedlist>
|
||||||
<segtitle>Installed programs</segtitle>
|
<segtitle>Installed programs</segtitle>
|
||||||
<seglistitem>
|
<seglistitem>
|
||||||
|
@ -27,7 +27,7 @@ run-level directories
|
|||||||
the files in the <filename class="directory">/etc/sysconfig/network-devices</filename> directory. This
|
the files in the <filename class="directory">/etc/sysconfig/network-devices</filename> directory. This
|
||||||
directory should contain subdirectories in the form of
|
directory should contain subdirectories in the form of
|
||||||
<filename>ifconfig.xyz</filename>, where <quote>xyz</quote> is a network
|
<filename>ifconfig.xyz</filename>, where <quote>xyz</quote> is a network
|
||||||
interface name (such as eth0 or eth0:1)</para>
|
interface name (such as eth0)</para>
|
||||||
|
|
||||||
<para>If you decide to rename or move this
|
<para>If you decide to rename or move this
|
||||||
<filename class="directory">/etc/sysconfig/network-devices</filename> directory,
|
<filename class="directory">/etc/sysconfig/network-devices</filename> directory,
|
||||||
@ -45,25 +45,26 @@ ONBOOT=yes
|
|||||||
SERVICE=ipv4-static
|
SERVICE=ipv4-static
|
||||||
IP=192.168.1.1
|
IP=192.168.1.1
|
||||||
GATEWAY=192.168.1.2
|
GATEWAY=192.168.1.2
|
||||||
NETMASK=24
|
PREFIX=24
|
||||||
BROADCAST=192.168.1.255
|
BROADCAST=192.168.1.255
|
||||||
EOF</userinput></screen>
|
EOF</userinput></screen>
|
||||||
|
|
||||||
<para>Of course, the values of those variables have to be changed
|
<para>Of course, the values of those variables have to be changed in every file
|
||||||
in every file to match the proper setup. If the ONBOOT variable is set
|
to match the proper setup. If the ONBOOT variable is set to <quote>yes</quote>,
|
||||||
to <quote>yes</quote>, the network script will bring up the equivalent NIC (Network Interface Card)
|
the network script will bring up the equivalent interface during the booting of
|
||||||
during the booting of the system.
|
the system. If set to anything but <quote>yes</quote>, the equivalent interface
|
||||||
If set to anything but <quote>yes</quote>, the equivalent NIC will be ignored by the network script
|
will be ignored by the network script and not brought up.</para>
|
||||||
and not brought up.</para>
|
|
||||||
|
|
||||||
<para>The SERVICE entry defines the method of obtaining the IP address.
|
<para>The SERVICE entry defines the method of obtaining the IP address. The LFS
|
||||||
The LFS bootscripts have a modular IP assignment format, and by creating
|
bootscripts have a modular IP assignment format, and by creating additional
|
||||||
additional files in <filename class="directory">/etc/sysconfig/network-devices/services</filename>, you can allow
|
files in
|
||||||
other IP assignment methods. This would commonly be used if you need DHCP,
|
<filename class="directory">/etc/sysconfig/network-devices/services</filename>,
|
||||||
which is addressed in the BLFS book.</para>
|
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
|
<para>Of course, GATEWAY should contain the IP of your default gateway, if you
|
||||||
have one. If not, then comment out the variable entirely.</para>
|
have one. If not, then don't include the GATEWAY line in the configuration
|
||||||
|
file.</para>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
@ -73,9 +74,10 @@ have one. If not, then comment out the variable entirely.</para>
|
|||||||
|
|
||||||
<para>If you're going to be connected to the Internet then most likely you'll
|
<para>If you're going to be connected to the Internet then most likely you'll
|
||||||
need some means of DNS name resolution to resolve Internet domain names to IP
|
need some means of DNS name resolution to resolve Internet domain names to IP
|
||||||
addresses. This is best achieved by placing the IP address of your DNS, available from your ISP (Internet Service Provider) or network administrator,
|
addresses. This is best achieved by placing the IP address of your assigned DNS
|
||||||
into <filename>/etc/resolv.conf</filename>. Create the file by running the
|
resolver, available from your ISP (Internet Service Provider) or network
|
||||||
following:</para>
|
administrator, into <filename>/etc/resolv.conf</filename>. Create the file by
|
||||||
|
running the following:</para>
|
||||||
|
|
||||||
<screen><userinput>cat > /etc/resolv.conf << "EOF"
|
<screen><userinput>cat > /etc/resolv.conf << "EOF"
|
||||||
# Begin /etc/resolv.conf
|
# Begin /etc/resolv.conf
|
||||||
@ -86,9 +88,11 @@ nameserver <replaceable>[IP address of your nameserver]</replaceable>
|
|||||||
# End /etc/resolv.conf
|
# End /etc/resolv.conf
|
||||||
EOF</userinput></screen>
|
EOF</userinput></screen>
|
||||||
|
|
||||||
<para>Of course, replace <replaceable>[IP address of your nameserver]</replaceable> with the IP
|
<para>Of course, replace
|
||||||
address of the DNS most appropriate for your setup. There will often be
|
<replaceable>[IP address of your nameserver]</replaceable> with the IP address
|
||||||
more than one entry (requirements demand secondary servers for fallback capability). The IP address may even be a router on your local network.</para>
|
of the DNS resolver assigned for your use. There will often be more than one
|
||||||
|
entry (requirements demand secondary servers for fallback capability). The IP
|
||||||
|
address may even be a router on your local network.</para>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||||
<!ENTITY version "SVN-20040714">
|
<!ENTITY version "SVN-20040715">
|
||||||
<!ENTITY releasedate "July 14, 2004">
|
<!ENTITY releasedate "July 15, 2004">
|
||||||
<!ENTITY milestone "6.0">
|
<!ENTITY milestone "6.0">
|
||||||
|
|
||||||
<!ENTITY lfs-root "http://www.linuxfromscratch.org/">
|
<!ENTITY lfs-root "http://www.linuxfromscratch.org/">
|
||||||
|
Loading…
Reference in New Issue
Block a user