glfs/networking/netprogs/net-tools.xml
Douglas R. Reno 72592375e8 Tags, test suite updates for llvm/valgrind, and a typo fix
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@23541 af4574ff-66df-0310-9fd7-8a98e5e911e0
2020-08-17 04:12:39 +00:00

401 lines
12 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../../general.ent">
%general-entities;
<!ENTITY net-tools-download-http "&sources-anduin-http;/net-tools/net-tools-&net-tools-version;.tar.gz">
<!ENTITY net-tools-download-ftp "&sources-anduin-ftp;/net-tools/net-tools-&net-tools-version;.tar.gz">
<!ENTITY net-tools-md5sum "6be14ed473cacdd68edeaa9605adc469">
<!ENTITY net-tools-size "288 KB">
<!ENTITY net-tools-buildsize "7.0 MB">
<!ENTITY net-tools-time "less than 0.1 SBU">
]>
<sect1 id="net-tools" xreflabel="Net-tools-&net-tools-version;">
<?dbhtml filename="net-tools.html"?>
<sect1info>
<othername>$LastChangedBy$</othername>
<date>$Date$</date>
</sect1info>
<title>Net-tools-&net-tools-version;</title>
<indexterm zone="net-tools">
<primary sortas="a-Net-tools">Net-tools</primary>
</indexterm>
<sect2 role="package">
<title>Introduction to Net-tools</title>
<para>
The <application>Net-tools</application> package is a collection
of programs for controlling the network subsystem of the Linux kernel.
</para>
&lfs10_checked;
<bridgehead renderas="sect3">Package Information</bridgehead>
<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: &net-tools-md5sum;
</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>
<bridgehead renderas="sect3">Additional Downloads</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>
Required patch:
<ulink url="&patch-root;/net-tools-&net-tools-version;-remove_dups-1.patch"/>
</para>
</listitem>
</itemizedlist>
<para condition="html" role="usernotes">User Notes:
<ulink url="&blfs-wiki;/net-tools"/></para>
</sect2>
<sect2 role="installation">
<title>Installation of Net-tools</title>
<para id="net-tools-automate-example" xreflabel="Net-tools">
The instructions below automate the configuration process by piping
<command>yes</command> to the <command>make config</command> command.
If you wish to run the interactive configuration process (by changing
the instruction to just <command>make config</command>), but you are
not sure how to answer all the questions, then just accept the defaults.
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: TCP, PPP, and several
others. You still need to actually enable these protocols in the
kernel&mdash;what you do here is merely tell the package to include
support for those protocols in its programs, but it's up to the kernel
to make the protocols available.
</para>
<note>
<para>
This package has several unneeded protocols and hardware device
specific functions that are obsolete. To only build the minimum needed
for your system, skip the <command>yes</command> command and answer
each question interactively. The minimum needed options are 'UNIX
protocol family' and 'INET (TCP/IP) protocol family'.
</para>
</note>
<para>
The patch below cleans up the installation so that it does not
overwrite the <application>ifconfig</application> and
<application>hostname</application> programs that were installed in LFS.
</para>
<para>
Install <application>Net-tools</application> by running the
following commands:
</para>
<screen><userinput>patch -Np1 -i ../net-tools-&net-tools-version;-remove_dups-1.patch &amp;&amp;
sed -i '/#include &lt;netinet\/ip.h&gt;/d' iptunnel.c &amp;&amp;
yes "" | make config &amp;&amp;
make</userinput></screen>
<para>
This package does not come with a test suite.
</para>
<para>
Now, as the <systemitem class="username">root</systemitem> user:
</para>
<screen role='root'><userinput>make update</userinput></screen>
</sect2>
<sect2 role="commands">
<title>Command Explanations</title>
<para>
<command>sed -i '/#include &lt;netinet\/ip.h&gt;/d' iptunnel.c</command>:
This fixes build breakage with linux-4.8 headers.
</para>
<!--
<para>
<command>sed -i -e '/Token/s/y$/n/' config.in</command>: Change the
default for building obsolete token ring support to no. This is a
simpler change than changing the location for the token ring headers.
</para>
<para>
<command>sed -i -e '/HAVE_HWSTRIP/s/y$/n/' config.in</command>:
Removes obsolete Metricom radio support that requires a header no longer
included in the kernel.
</para>
-->
<para>
<command>yes "" | make config</command>: Piping <command>yes</command>
to <command>make config</command> skips the interactive configuration and
accepts the defaults.
</para>
</sect2>
<sect2 role="content">
<title>Contents</title>
<segmentedlist>
<segtitle>Installed Programs</segtitle>
<segtitle>Installed Libraries</segtitle>
<segtitle>Installed Directories</segtitle>
<seglistitem>
<seg>arp,
ipmaddr, iptunnel, mii-tool, nameif, netstat,
plipconfig, rarp, route, and slattach
</seg>
<seg>None</seg>
<seg>None</seg>
</seglistitem>
</segmentedlist>
<variablelist>
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<varlistentry id="arp">
<term><command>arp</command></term>
<listitem>
<para>
is used to manipulate the kernel's ARP cache, usually
to add or delete an entry, or to dump the entire cache.
</para>
<indexterm zone="net-tools arp">
<primary sortas="b-arp">arp</primary>
</indexterm>
</listitem>
</varlistentry>
<!--
<varlistentry id="dnsdomainname">
<term><command>dnsdomainname</command></term>
<listitem>
<para>
reports the system's DNS domain name.
</para>
<indexterm zone="net-tools dnsdomainname">
<primary sortas="b-dnsdomainname">dnsdomainname</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="domainname">
<term><command>domainname</command></term>
<listitem>
<para>
reports or sets the system's NIS/YP domain name.
</para>
<indexterm zone="net-tools domainname">
<primary sortas="b-domainname">domainname</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="hostname">
<term><command>hostname</command></term>
<listitem>
<para>
reports or sets the name of the current host system.
</para>
<indexterm zone="net-tools hostname">
<primary sortas="b-hostname">hostname</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="ifconfig">
<term><command>ifconfig</command></term>
<listitem>
<para>
is the main utility for configuring network interfaces.
</para>
<indexterm zone="net-tools ifconfig">
<primary sortas="b-ifconfig">ifconfig</primary>
</indexterm>
</listitem>
</varlistentry>
-->
<varlistentry id="ipmaddr">
<term><command>ipmaddr</command></term>
<listitem>
<para>
adds, deletes and shows an interface's multicast addresses.
</para>
<indexterm zone="net-tools ipmaddr">
<primary sortas="b-ipmaddr">ipmaddr</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="iptunnel">
<term><command>iptunnel</command></term>
<listitem>
<para>
adds, changes, deletes and shows an interface's tunnels.
</para>
<indexterm zone="net-tools iptunnel">
<primary sortas="b-iptunnel">iptunnel</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="mii-tool">
<term><command>mii-tool</command></term>
<listitem>
<para>
checks or sets the status of a network interface's Media
Independent Interface (MII) unit.
</para>
<indexterm zone="net-tools mii-tool">
<primary sortas="b-mii-tool">mii-tool</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="nameif">
<term><command>nameif</command></term>
<listitem>
<para>
names network interfaces based on MAC addresses.
</para>
<indexterm zone="net-tools nameif">
<primary sortas="b-nameif">nameif</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="netstat">
<term><command>netstat</command></term>
<listitem>
<para>
is used to report network connections, routing tables, and
interface statistics.
</para>
<indexterm zone="net-tools netstat">
<primary sortas="b-netstat">netstat</primary>
</indexterm>
</listitem>
</varlistentry>
<!--
<varlistentry id="nisdomainname">
<term><command>nisdomainname</command></term>
<listitem>
<para>
does the same as <command>domainname</command>.
</para>
<indexterm zone="net-tools nisdomainname">
<primary sortas="b-nisdomainname">nisdomainname</primary>
</indexterm>
</listitem>
</varlistentry>
-->
<varlistentry id="plipconfig">
<term><command>plipconfig</command></term>
<listitem>
<para>
is used to fine tune the PLIP device parameters, to
improve its performance.
</para>
<indexterm zone="net-tools plipconfig">
<primary sortas="b-plipconfig">plipconfig</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="rarp">
<term><command>rarp</command></term>
<listitem>
<para>
is used to manipulate the kernel's RARP table.
</para>
<indexterm zone="net-tools rarp">
<primary sortas="b-rarp">rarp</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="route">
<term><command>route</command></term>
<listitem>
<para>
is used to manipulate the IP routing table.
</para>
<indexterm zone="net-tools route">
<primary sortas="b-route">route</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="slattach">
<term><command>slattach</command></term>
<listitem>
<para>
attaches a network interface to a serial line. This allows you to
use normal terminal lines for point-to-point links to others
computers.
</para>
<indexterm zone="net-tools slattach">
<primary sortas="b-slattach">slattach</primary>
</indexterm>
</listitem>
</varlistentry>
<!--
<varlistentry id="ypdomainname">
<term><command>ypdomainname</command></term>
<listitem>
<para>
does the same as <command>domainname</command>.
</para>
<indexterm zone="net-tools ypdomainname">
<primary sortas="b-ypdomainname">ypdomainname</primary>
</indexterm>
</listitem>
</varlistentry>
-->
</variablelist>
</sect2>
</sect1>