glfs/basicnet/netprogs/net-tools.xml
Randy McMurchy f5f7f9d980 Added md5sums to Chapter 18 package instructions
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@3439 af4574ff-66df-0310-9fd7-8a98e5e911e0
2005-02-11 15:57:40 +00:00

234 lines
8.2 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../../general.ent">
%general-entities;
<!ENTITY net-tools-download-http "http://www.tazenda.demon.co.uk/phil/net-tools/net-tools-&net-tools-version;.tar.bz2">
<!ENTITY net-tools-download-ftp "ftp://ftp.ibiblio.org/pub/Linux/distributions/rootlinux/rootlinux-1.3/source/base/net-tools/net-tools-&net-tools-version;.tar.gz">
<!ENTITY net-tools-md5sum-http "888774accab40217dde927e21979c165">
<!ENTITY net-tools-md5sum-ftp "e1e83a4d4cdd72d35bcf90d76a16206f">
<!ENTITY net-tools-size "194 KB">
<!ENTITY net-tools-buildsize "4.3 MB">
<!ENTITY net-tools-time "0.10 SBU">
<!ENTITY lfs-coreutils-version "5.2.1">
]>
<sect1 id="net-tools" xreflabel="Net-tools-&net-tools-version;">
<sect1info>
<othername>$LastChangedBy$</othername>
<date>$Date$</date>
</sect1info>
<?dbhtml filename="net-tools.html"?>
<title>Net-tools-&net-tools-version;</title>
<sect2>
<title>Introduction to <application>Net-tools</application></title>
<para>The <application>Net-tools</application> package is a collection
of programs for controlling the network subsystem of the Linux
kernel.</para>
<sect3><title>Package information</title>
<itemizedlist spacing='compact'>
<listitem><para>Download (HTTP):
<ulink url="&net-tools-download-http;"/></para></listitem>
<listitem><para>Download (FTP):
<ulink url="&net-tools-download-ftp;"/></para></listitem>
<listitem><para>Download MD5 sum (HTTP):
&net-tools-md5sum-http;</para></listitem>
<listitem><para>Download MD5 sum (FTP):
&net-tools-md5sum-ftp;</para></listitem>
<listitem><para>Download size: &net-tools-size;</para></listitem>
<listitem><para>Estimated disk space required:
&net-tools-buildsize;</para></listitem>
<listitem><para>Estimated build time:
&net-tools-time;</para></listitem></itemizedlist>
</sect3>
<sect3><title>Additional downloads</title>
<itemizedlist spacing="compact">
<listitem><para>Required Patch (if compiled using
<application>GCC</application>-3.4.x): <ulink
url="&patch-root;/net-tools-&net-tools-version;-gcc34-3.patch"/></para>
</listitem>
<listitem><para>Required Patch: <ulink
url="&patch-root;/net-tools-&net-tools-version;-kernel_headers-2.patch"/></para>
</listitem>
<listitem><para>Required Patch: <ulink
url="&patch-root;/net-tools-&net-tools-version;-mii_ioctl-1.patch"/></para>
</listitem></itemizedlist>
</sect3>
</sect2>
<sect2>
<title>Installation of <application>Net-tools</application></title>
<note><para>The <application>Net-tools</application> package installs a
<command>hostname</command> program which will overwrite the existing program
installed by <application>Coreutils</application> during a base
<acronym>LFS</acronym> installation. If, for whatever reason, you need to
reinstall the <application>Coreutils</application> package after installing
<application>Net-tools</application>, you should use the
<filename>coreutils-&lfs-coreutils-version;-suppress_hostname_uptime_kill_su-1.patch</filename>
patch if you wish to preserve the <application>Net-tools</application>
<command>hostname</command> program.</para></note>
<para>If you don't know what to answer to all the questions asked during
the <command>make config</command> phase below, then just accept the
defaults (the build command below automates this). This will be just fine
in the majority of cases. What you're
asked here is a bunch of questions about which network protocols you've
enabled in your kernel. The default answers will enable the tools from
this package to work with the most common protocols:
<acronym>TCP</acronym>, <acronym>PPP</acronym>, and several others. You
still need to actually enable these protocols in the kernel&mdash;what you
do here is merely telling the package to include support for those
protocols in its programs, but it's up to the kernel to make the
protocols available.</para>
<para>Install <application>Net-tools</application> by running the
following commands:</para>
<screen><userinput><command>patch -Np1 -i ../net-tools-&net-tools-version;-gcc34-3.patch &amp;&amp;
patch -Np1 -i ../net-tools-&net-tools-version;-kernel_headers-2.patch &amp;&amp;
patch -Np1 -i ../net-tools-&net-tools-version;-mii_ioctl-1.patch &amp;&amp;
yes "" | make config &amp;&amp;
sed -i -e 's|HAVE_IP_TOOLS 0|HAVE_IP_TOOLS 1|g' \
-e 's|HAVE_MII 0|HAVE_MII 1|g' config.h &amp;&amp;
sed -i -e 's|# HAVE_IP_TOOLS=0|HAVE_IP_TOOLS=1|g' \
-e 's|# HAVE_MII=0|HAVE_MII=1|g' config.make &amp;&amp;
make &amp;&amp;
make update</command></userinput></screen>
</sect2>
<sect2>
<title>Command explanations</title>
<para><command>yes "" | make config</command>: Piping <command>yes</command>
to <command>make config</command> skips the interactive configuration and
accepts the defaults.</para>
<para><command>sed -i -e ...</command>: These two <command>sed</command>s
change the configuration files to force building the
<command>ipmaddr</command>, <command>iptunnel</command> and
<command>mii-tool</command> programs.</para>
</sect2>
<sect2>
<title>Contents</title>
<para>The <application>Net-tools</application> package contains
<command>arp</command>,
<command>dnsdomainname</command>,
<command>domainname</command>,
<command>hostname</command>,
<command>ifconfig</command>,
<command>ipmaddr</command>,
<command>iptunnel</command>,
<command>mii-tool</command>,
<command>nameif</command>,
<command>netstat</command>,
<command>nisdomainname</command>,
<command>plipconfig</command>,
<command>rarp</command>,
<command>route</command>,
<command>slattach</command> and
<command>ypdomainname</command>.</para>
</sect2>
<sect2><title>Description</title>
<sect3><title>arp</title>
<para><command>arp</command>
is used to manipulate the kernel's <acronym>ARP</acronym> cache, usually
to add or delete an entry, or to dump the entire cache.
</para></sect3>
<sect3><title>dnsdomainname</title>
<para><command>dnsdomainname</command>
reports the system's <acronym>DNS</acronym> domain name.
</para></sect3>
<sect3><title>domainname</title>
<para><command>domainname</command>
reports or sets the system's
<acronym>NIS</acronym>/<acronym>YP</acronym> domain name.
</para></sect3>
<sect3><title>hostname</title>
<para><command>hostname</command>
reports or sets the name of the current host system.
</para></sect3>
<sect3><title>ifconfig</title>
<para><command>ifconfig</command>
is the main utility for configuring network interfaces.
</para></sect3>
<sect3><title>ipmaddr</title>
<para><command>ipmaddr</command>
adds, deletes and shows an interface's multicast addresses.
</para></sect3>
<sect3><title>iptunnel</title>
<para><command>iptunnel</command>
adds, changes, deletes and shows an interface's tunnels.
</para></sect3>
<sect3><title>mii-tool</title>
<para><command>mii-tool</command>
checks or sets the status of a network interface's Media Independent
Interface (<acronym>MII</acronym>) unit.
</para></sect3>
<sect3><title>nameif</title>
<para><command>nameif</command>
names network interfaces based on <acronym>MAC</acronym> addresses.
</para></sect3>
<sect3><title>netstat</title>
<para><command>netstat</command>
is used to report network connections, routing tables, and interface
statistics.
</para></sect3>
<sect3><title>nisdomainname</title>
<para><command>nisdomainname</command>
does the same as <command>domainname</command>.
</para></sect3>
<sect3><title>plipconfig</title>
<para><command>plipconfig</command>
is used to fine tune the <acronym>PLIP</acronym> device parameters, to
improve its performance.
</para></sect3>
<sect3><title>rarp</title>
<para><command>rarp</command>
is used to manipulate the kernel's <acronym>RARP</acronym> table.
</para></sect3>
<sect3><title>route</title>
<para><command>route</command>
is used to manipulate the <acronym>IP</acronym> routing table.
</para></sect3>
<sect3><title>slattach</title>
<para><command>slattach</command>
attaches a network interface to a serial line. This allows you to use
normal terminal lines for point-to-point links to other computers.
</para></sect3>
<sect3><title>ypdomainname</title>
<para><command>ypdomainname</command>
does the same as <command>domainname</command>.
</para></sect3>
</sect2>
</sect1>