[0590c1b6] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[0590c1b6] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[a71e7697] | 7 | <!ENTITY net-tools-download-http "&sources-anduin-http;/n/net-tools-&net-tools-version;.tar.gz">
|
---|
| 8 | <!ENTITY net-tools-download-ftp "&sources-anduin-ftp;/n/net-tools-&net-tools-version;.tar.gz">
|
---|
| 9 | <!ENTITY net-tools-md5sum "6be14ed473cacdd68edeaa9605adc469">
|
---|
| 10 | <!ENTITY net-tools-size "222 KB">
|
---|
| 11 | <!ENTITY net-tools-buildsize "7.0 MB">
|
---|
| 12 | <!ENTITY net-tools-time "less than 0.1 SBU">
|
---|
[0590c1b6] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="net-tools" xreflabel="Net-tools-&net-tools-version;">
|
---|
[a3dbd17b] | 16 | <?dbhtml filename="net-tools.html"?>
|
---|
[8d0d2eb] | 17 |
|
---|
[a3dbd17b] | 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
[8d0d2eb] | 22 |
|
---|
[a3dbd17b] | 23 | <title>Net-tools-&net-tools-version;</title>
|
---|
[8d0d2eb] | 24 |
|
---|
[a3dbd17b] | 25 | <indexterm zone="net-tools">
|
---|
| 26 | <primary sortas="a-Net-tools">Net-tools</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to Net-tools</title>
|
---|
[8d0d2eb] | 31 |
|
---|
[a3dbd17b] | 32 | <para>The <application>Net-tools</application> package is a collection
|
---|
| 33 | of programs for controlling the network subsystem of the Linux
|
---|
| 34 | kernel.</para>
|
---|
[8d0d2eb] | 35 |
|
---|
[911d9698] | 36 | &lfs74_checked;
|
---|
[2b8421c] | 37 |
|
---|
[a3dbd17b] | 38 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 39 | <itemizedlist spacing="compact">
|
---|
| 40 | <listitem>
|
---|
| 41 | <para>Download (HTTP): <ulink url="&net-tools-download-http;"/></para>
|
---|
| 42 | </listitem>
|
---|
| 43 | <listitem>
|
---|
| 44 | <para>Download (FTP): <ulink url="&net-tools-download-ftp;"/></para>
|
---|
| 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
[f105888] | 47 | <para>Download MD5 sum: &net-tools-md5sum;</para>
|
---|
[a3dbd17b] | 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>Download size: &net-tools-size;</para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>Estimated disk space required: &net-tools-buildsize;</para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
[2174baa] | 56 | <para>Estimated build time: &net-tools-time;</para>
|
---|
| 57 | </listitem>
|
---|
[a3dbd17b] | 58 | </itemizedlist>
|
---|
[8d0d2eb] | 59 |
|
---|
[061ec9d] | 60 | <para condition="html" role="usernotes">User Notes:
|
---|
| 61 | <ulink url="&blfs-wiki;/net-tools"/></para>
|
---|
| 62 |
|
---|
[a3dbd17b] | 63 | </sect2>
|
---|
[8d0d2eb] | 64 |
|
---|
[a3dbd17b] | 65 | <sect2 role="installation">
|
---|
| 66 | <title>Installation of Net-tools</title>
|
---|
| 67 |
|
---|
| 68 | <note>
|
---|
[5d5ced00] | 69 | <para>The <application>Net-tools</application> package installs a
|
---|
[064cb3b] | 70 | <command>hostname</command> program which will overwrite the existing
|
---|
[e7ffe884] | 71 | program installed by <application>Inetutils</application> during a base
|
---|
[064cb3b] | 72 | LFS installation. If, for whatever reason, you need to reinstall the
|
---|
[e7ffe884] | 73 | <application>Inetutils</application> package after installing
|
---|
| 74 | <application>Net-tools</application>, you should add
|
---|
| 75 | <command>--disable-hostname</command> to the Inetutils
|
---|
[6c03eb1] | 76 | <command>configure</command> command in LFS if you wish to preserve the
|
---|
[064cb3b] | 77 | <application>Net-tools</application> <command>hostname</command>
|
---|
| 78 | program.</para>
|
---|
[a3dbd17b] | 79 | </note>
|
---|
[8d0d2eb] | 80 |
|
---|
[1080241] | 81 | <para id="net-tools-automate-example" xreflabel="Net-tools">The
|
---|
| 82 | instructions below automate the configuration process by piping
|
---|
[22c1df71] | 83 | <command>yes</command> to the <command>make config</command> command. If
|
---|
| 84 | you wish to run the interactive configuration process (by changing the
|
---|
| 85 | instruction to just <command>make config</command>), but you are not sure
|
---|
| 86 | how to answer all the questions, then just accept the defaults. This will
|
---|
| 87 | be just fine in the majority of cases. What you're asked here is a bunch of
|
---|
| 88 | questions about which network protocols you've enabled in your kernel. The
|
---|
| 89 | default answers will enable the tools from this package to work with the
|
---|
| 90 | most common protocols: TCP, PPP, and several others. You still need to
|
---|
| 91 | actually enable these protocols in the kernel—what you do here is
|
---|
| 92 | merely tell the package to include support for those protocols in its
|
---|
| 93 | programs, but it's up to the kernel to make the protocols available.</para>
|
---|
[8d0d2eb] | 94 |
|
---|
[8617f6dd] | 95 | <note><para>This package has several unneeded protocols and hardware device
|
---|
| 96 | specific functions that are obsolete. To only build the minimum needed for
|
---|
| 97 | your system, skip the <command>yes</command> command and answer each
|
---|
| 98 | question interactively. The minimum needed options are 'UNIX protocol
|
---|
| 99 | family' and 'INET (TCP/IP) protocol family'.</para></note>
|
---|
| 100 |
|
---|
[a3dbd17b] | 101 | <para>Install <application>Net-tools</application> by running the
|
---|
| 102 | following commands:</para>
|
---|
| 103 |
|
---|
[699b552c] | 104 | <screen><userinput>sed -i -e '/Token/s/y$/n/' config.in &&
|
---|
| 105 | sed -i -e '/HAVE_HWSTRIP/s/y$/n/' config.in &&
|
---|
[8617f6dd] | 106 | yes "" | make config &&
|
---|
[46441976] | 107 | make</userinput></screen>
|
---|
| 108 |
|
---|
| 109 | <para>This package does not come with a test suite.</para>
|
---|
| 110 |
|
---|
| 111 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 112 |
|
---|
| 113 | <screen role='root'><userinput>make update</userinput></screen>
|
---|
[8d0d2eb] | 114 |
|
---|
[a3dbd17b] | 115 | </sect2>
|
---|
[8d0d2eb] | 116 |
|
---|
[a3dbd17b] | 117 | <sect2 role="commands">
|
---|
| 118 | <title>Command Explanations</title>
|
---|
| 119 |
|
---|
[8617f6dd] | 120 | <para><command>sed -i -e '/Token/s/y$/n/' config.in</command>: Change the
|
---|
[0d7900a] | 121 | default for building obsolete token ring support to no. This is a
|
---|
[8617f6dd] | 122 | simpler change than changing the location for the token ring headers.
|
---|
| 123 | </para>
|
---|
| 124 |
|
---|
[0d7900a] | 125 | <para><command>sed -i -e '/HAVE_HWSTRIP/s/y$/n/' config.in</command>:
|
---|
[699b552c] | 126 | Removes obsolete Metricom radio support that requires a header no longer
|
---|
| 127 | included in the kernel. </para>
|
---|
| 128 |
|
---|
[8d0d2eb] | 129 | <para><command>yes "" | make config</command>: Piping <command>yes</command>
|
---|
[a3dbd17b] | 130 | to <command>make config</command> skips the interactive configuration and
|
---|
| 131 | accepts the defaults.</para>
|
---|
[8d0d2eb] | 132 |
|
---|
[a3dbd17b] | 133 | </sect2>
|
---|
[8d0d2eb] | 134 |
|
---|
[a3dbd17b] | 135 | <sect2 role="content">
|
---|
| 136 | <title>Contents</title>
|
---|
[8d0d2eb] | 137 |
|
---|
[a3dbd17b] | 138 | <segmentedlist>
|
---|
| 139 | <segtitle>Installed Programs</segtitle>
|
---|
| 140 | <segtitle>Installed Libraries</segtitle>
|
---|
| 141 | <segtitle>Installed Directories</segtitle>
|
---|
[8d0d2eb] | 142 |
|
---|
[a3dbd17b] | 143 | <seglistitem>
|
---|
[5d5ced00] | 144 | <seg>arp, dnsdomainname, domainname, hostname,
|
---|
| 145 | ifconfig, ipmaddr, iptunnel, mii-tool, nameif, netstat,
|
---|
| 146 | nisdomainname, plipconfig, rarp, route, slattach, and
|
---|
[a3dbd17b] | 147 | ypdomainname</seg>
|
---|
| 148 | <seg>None</seg>
|
---|
[46441976] | 149 | <seg>None</seg>
|
---|
[a3dbd17b] | 150 | </seglistitem>
|
---|
| 151 | </segmentedlist>
|
---|
[8d0d2eb] | 152 |
|
---|
[a3dbd17b] | 153 | <variablelist>
|
---|
| 154 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 155 | <?dbfo list-presentation="list"?>
|
---|
| 156 | <?dbhtml list-presentation="table"?>
|
---|
[8d0d2eb] | 157 |
|
---|
[a3dbd17b] | 158 | <varlistentry id="arp">
|
---|
| 159 | <term><command>arp</command></term>
|
---|
| 160 | <listitem>
|
---|
| 161 | <para>is used to manipulate the kernel's ARP cache, usually
|
---|
| 162 | to add or delete an entry, or to dump the entire cache.</para>
|
---|
| 163 | <indexterm zone="net-tools arp">
|
---|
| 164 | <primary sortas="b-arp">arp</primary>
|
---|
| 165 | </indexterm>
|
---|
| 166 | </listitem>
|
---|
| 167 | </varlistentry>
|
---|
[8d0d2eb] | 168 |
|
---|
[a3dbd17b] | 169 | <varlistentry id="dnsdomainname">
|
---|
| 170 | <term><command>dnsdomainname</command></term>
|
---|
| 171 | <listitem>
|
---|
| 172 | <para>reports the system's DNS domain name.</para>
|
---|
| 173 | <indexterm zone="net-tools dnsdomainname">
|
---|
| 174 | <primary sortas="b-dnsdomainname">dnsdomainname</primary>
|
---|
| 175 | </indexterm>
|
---|
| 176 | </listitem>
|
---|
| 177 | </varlistentry>
|
---|
[8d0d2eb] | 178 |
|
---|
[a3dbd17b] | 179 | <varlistentry id="domainname">
|
---|
| 180 | <term><command>domainname</command></term>
|
---|
| 181 | <listitem>
|
---|
| 182 | <para>reports or sets the system's NIS/YP domain name.</para>
|
---|
| 183 | <indexterm zone="net-tools domainname">
|
---|
| 184 | <primary sortas="b-domainname">domainname</primary>
|
---|
| 185 | </indexterm>
|
---|
| 186 | </listitem>
|
---|
| 187 | </varlistentry>
|
---|
[8d0d2eb] | 188 |
|
---|
[a3dbd17b] | 189 | <varlistentry id="hostname">
|
---|
| 190 | <term><command>hostname</command></term>
|
---|
| 191 | <listitem>
|
---|
| 192 | <para>reports or sets the name of the current host system.</para>
|
---|
| 193 | <indexterm zone="net-tools hostname">
|
---|
| 194 | <primary sortas="b-hostname">hostname</primary>
|
---|
| 195 | </indexterm>
|
---|
| 196 | </listitem>
|
---|
| 197 | </varlistentry>
|
---|
[8d0d2eb] | 198 |
|
---|
[a3dbd17b] | 199 | <varlistentry id="ifconfig">
|
---|
| 200 | <term><command>ifconfig</command></term>
|
---|
| 201 | <listitem>
|
---|
| 202 | <para>is the main utility for configuring network interfaces.</para>
|
---|
| 203 | <indexterm zone="net-tools ifconfig">
|
---|
| 204 | <primary sortas="b-ifconfig">ifconfig</primary>
|
---|
| 205 | </indexterm>
|
---|
| 206 | </listitem>
|
---|
| 207 | </varlistentry>
|
---|
[8d0d2eb] | 208 |
|
---|
[a3dbd17b] | 209 | <varlistentry id="ipmaddr">
|
---|
| 210 | <term><command>ipmaddr</command></term>
|
---|
| 211 | <listitem>
|
---|
| 212 | <para>adds, deletes and shows an interface's multicast addresses.</para>
|
---|
| 213 | <indexterm zone="net-tools ipmaddr">
|
---|
| 214 | <primary sortas="b-ipmaddr">ipmaddr</primary>
|
---|
| 215 | </indexterm>
|
---|
| 216 | </listitem>
|
---|
| 217 | </varlistentry>
|
---|
[8d0d2eb] | 218 |
|
---|
[a3dbd17b] | 219 | <varlistentry id="iptunnel">
|
---|
| 220 | <term><command>iptunnel</command></term>
|
---|
| 221 | <listitem>
|
---|
| 222 | <para>adds, changes, deletes and shows an interface's tunnels.</para>
|
---|
| 223 | <indexterm zone="net-tools iptunnel">
|
---|
| 224 | <primary sortas="b-iptunnel">iptunnel</primary>
|
---|
| 225 | </indexterm>
|
---|
| 226 | </listitem>
|
---|
| 227 | </varlistentry>
|
---|
[8d0d2eb] | 228 |
|
---|
[a3dbd17b] | 229 | <varlistentry id="mii-tool">
|
---|
| 230 | <term><command>mii-tool</command></term>
|
---|
| 231 | <listitem>
|
---|
[5d5ced00] | 232 | <para>checks or sets the status of a network interface's Media Independent
|
---|
[a3dbd17b] | 233 | Interface (MII) unit.</para>
|
---|
| 234 | <indexterm zone="net-tools mii-tool">
|
---|
| 235 | <primary sortas="b-mii-tool">mii-tool</primary>
|
---|
| 236 | </indexterm>
|
---|
| 237 | </listitem>
|
---|
| 238 | </varlistentry>
|
---|
[8d0d2eb] | 239 |
|
---|
[a3dbd17b] | 240 | <varlistentry id="nameif">
|
---|
| 241 | <term><command>nameif</command></term>
|
---|
| 242 | <listitem>
|
---|
| 243 | <para>names network interfaces based on MAC addresses.</para>
|
---|
| 244 | <indexterm zone="net-tools nameif">
|
---|
| 245 | <primary sortas="b-nameif">nameif</primary>
|
---|
| 246 | </indexterm>
|
---|
| 247 | </listitem>
|
---|
| 248 | </varlistentry>
|
---|
[8d0d2eb] | 249 |
|
---|
[a3dbd17b] | 250 | <varlistentry id="netstat">
|
---|
| 251 | <term><command>netstat</command></term>
|
---|
| 252 | <listitem>
|
---|
| 253 | <para>is used to report network connections, routing tables, and interface
|
---|
| 254 | statistics.</para>
|
---|
| 255 | <indexterm zone="net-tools netstat">
|
---|
| 256 | <primary sortas="b-netstat">netstat</primary>
|
---|
| 257 | </indexterm>
|
---|
| 258 | </listitem>
|
---|
| 259 | </varlistentry>
|
---|
[8d0d2eb] | 260 |
|
---|
[a3dbd17b] | 261 | <varlistentry id="nisdomainname">
|
---|
| 262 | <term><command>nisdomainname</command></term>
|
---|
| 263 | <listitem>
|
---|
| 264 | <para>does the same as <command>domainname</command>.</para>
|
---|
| 265 | <indexterm zone="net-tools nisdomainname">
|
---|
| 266 | <primary sortas="b-nisdomainname">nisdomainname</primary>
|
---|
| 267 | </indexterm>
|
---|
| 268 | </listitem>
|
---|
| 269 | </varlistentry>
|
---|
[8d0d2eb] | 270 |
|
---|
[a3dbd17b] | 271 | <varlistentry id="plipconfig">
|
---|
| 272 | <term><command>plipconfig</command></term>
|
---|
| 273 | <listitem>
|
---|
| 274 | <para>is used to fine tune the PLIP device parameters, to
|
---|
| 275 | improve its performance.</para>
|
---|
| 276 | <indexterm zone="net-tools plipconfig">
|
---|
| 277 | <primary sortas="b-plipconfig">plipconfig</primary>
|
---|
| 278 | </indexterm>
|
---|
| 279 | </listitem>
|
---|
| 280 | </varlistentry>
|
---|
[8d0d2eb] | 281 |
|
---|
[a3dbd17b] | 282 | <varlistentry id="rarp">
|
---|
| 283 | <term><command>rarp</command></term>
|
---|
| 284 | <listitem>
|
---|
| 285 | <para>is used to manipulate the kernel's RARP table.</para>
|
---|
| 286 | <indexterm zone="net-tools rarp">
|
---|
| 287 | <primary sortas="b-rarp">rarp</primary>
|
---|
| 288 | </indexterm>
|
---|
| 289 | </listitem>
|
---|
| 290 | </varlistentry>
|
---|
[8d0d2eb] | 291 |
|
---|
[a3dbd17b] | 292 | <varlistentry id="route">
|
---|
| 293 | <term><command>route</command></term>
|
---|
| 294 | <listitem>
|
---|
| 295 | <para>is used to manipulate the IP routing table.</para>
|
---|
| 296 | <indexterm zone="net-tools route">
|
---|
| 297 | <primary sortas="b-route">route</primary>
|
---|
| 298 | </indexterm>
|
---|
| 299 | </listitem>
|
---|
| 300 | </varlistentry>
|
---|
[8d0d2eb] | 301 |
|
---|
[a3dbd17b] | 302 | <varlistentry id="slattach">
|
---|
| 303 | <term><command>slattach</command></term>
|
---|
| 304 | <listitem>
|
---|
| 305 | <para>attaches a network interface to a serial line. This allows you to use
|
---|
| 306 | normal terminal lines for point-to-point links to other computers.</para>
|
---|
| 307 | <indexterm zone="net-tools slattach">
|
---|
| 308 | <primary sortas="b-slattach">slattach</primary>
|
---|
| 309 | </indexterm>
|
---|
| 310 | </listitem>
|
---|
| 311 | </varlistentry>
|
---|
[8d0d2eb] | 312 |
|
---|
[a3dbd17b] | 313 | <varlistentry id="ypdomainname">
|
---|
| 314 | <term><command>ypdomainname</command></term>
|
---|
| 315 | <listitem>
|
---|
| 316 | <para>does the same as <command>domainname</command>.</para>
|
---|
| 317 | <indexterm zone="net-tools ypdomainname">
|
---|
| 318 | <primary sortas="b-ypdomainname">ypdomainname</primary>
|
---|
| 319 | </indexterm>
|
---|
| 320 | </listitem>
|
---|
| 321 | </varlistentry>
|
---|
[8d0d2eb] | 322 |
|
---|
[a3dbd17b] | 323 | </variablelist>
|
---|
[8d0d2eb] | 324 |
|
---|
[a3dbd17b] | 325 | </sect2>
|
---|
[8d0d2eb] | 326 |
|
---|
[0590c1b6] | 327 | </sect1>
|
---|