mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-25 07:42:13 +08:00
Tagged net-tools.xml.
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@3864 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
parent
17929f0cf6
commit
a3dbd17b63
@ -15,83 +15,101 @@
|
||||
]>
|
||||
|
||||
<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>
|
||||
<?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>
|
||||
<title>Introduction to <application>Net-tools</application></title>
|
||||
<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>
|
||||
|
||||
<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 (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>
|
||||
|
||||
<bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
||||
<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>
|
||||
|
||||
</sect2>
|
||||
|
||||
<sect2 role="installation">
|
||||
<title>Installation of 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>
|
||||
<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
|
||||
LFS 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:
|
||||
TCP, PPP, and several others. You
|
||||
still need to actually enable these protocols in the kernel—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>
|
||||
|
||||
<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—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 &&
|
||||
<screen><userinput>patch -Np1 -i ../net-tools-&net-tools-version;-gcc34-3.patch &&
|
||||
patch -Np1 -i ../net-tools-&net-tools-version;-kernel_headers-2.patch &&
|
||||
patch -Np1 -i ../net-tools-&net-tools-version;-mii_ioctl-1.patch &&
|
||||
yes "" | make config &&
|
||||
@ -100,134 +118,214 @@ sed -i -e 's|HAVE_IP_TOOLS 0|HAVE_IP_TOOLS 1|g' \
|
||||
sed -i -e 's|# HAVE_IP_TOOLS=0|HAVE_IP_TOOLS=1|g' \
|
||||
-e 's|# HAVE_MII=0|HAVE_MII=1|g' config.make &&
|
||||
make &&
|
||||
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>
|
||||
make update</userinput></screen>
|
||||
|
||||
</sect2>
|
||||
|
||||
<sect2 role="commands">
|
||||
<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 role="content">
|
||||
<title>Contents</title>
|
||||
|
||||
<segmentedlist>
|
||||
<segtitle>Installed Programs</segtitle>
|
||||
<segtitle>Installed Libraries</segtitle>
|
||||
<segtitle>Installed Directories</segtitle>
|
||||
|
||||
<seglistitem>
|
||||
<seg>arp, dnsdomainname, domainname, hostname,
|
||||
ifconfig, ipmaddr, iptunnel, mii-tool, nameif, netstat,
|
||||
nisdomainname, plipconfig, rarp, route, slattach, and
|
||||
ypdomainname</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 other 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>
|
||||
|
Loading…
Reference in New Issue
Block a user