[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 |
|
---|
[a29486e4] | 7 | <!ENTITY net-tools-download-http "&sources-anduin-http;/net-tools/net-tools-&net-tools-version;.tar.gz">
|
---|
| 8 | <!ENTITY net-tools-download-ftp "&sources-anduin-ftp;/net-tools/net-tools-&net-tools-version;.tar.gz">
|
---|
[a71e7697] | 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 |
|
---|
[789c1b9] | 36 | &lfs78_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 |
|
---|
[49b241a] | 60 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 61 | <itemizedlist spacing="compact">
|
---|
| 62 | <listitem>
|
---|
| 63 | <para>
|
---|
| 64 | Required patch:
|
---|
| 65 | <ulink url="&patch-root;/net-tools-&net-tools-version;-remove_dups-1.patch"/>
|
---|
| 66 | </para>
|
---|
| 67 | </listitem>
|
---|
| 68 | </itemizedlist>
|
---|
| 69 |
|
---|
| 70 |
|
---|
[061ec9d] | 71 | <para condition="html" role="usernotes">User Notes:
|
---|
| 72 | <ulink url="&blfs-wiki;/net-tools"/></para>
|
---|
| 73 |
|
---|
[a3dbd17b] | 74 | </sect2>
|
---|
[8d0d2eb] | 75 |
|
---|
[a3dbd17b] | 76 | <sect2 role="installation">
|
---|
| 77 | <title>Installation of Net-tools</title>
|
---|
| 78 |
|
---|
[1080241] | 79 | <para id="net-tools-automate-example" xreflabel="Net-tools">The
|
---|
| 80 | instructions below automate the configuration process by piping
|
---|
[22c1df71] | 81 | <command>yes</command> to the <command>make config</command> command. If
|
---|
| 82 | you wish to run the interactive configuration process (by changing the
|
---|
| 83 | instruction to just <command>make config</command>), but you are not sure
|
---|
| 84 | how to answer all the questions, then just accept the defaults. This will
|
---|
| 85 | be just fine in the majority of cases. What you're asked here is a bunch of
|
---|
| 86 | questions about which network protocols you've enabled in your kernel. The
|
---|
| 87 | default answers will enable the tools from this package to work with the
|
---|
| 88 | most common protocols: TCP, PPP, and several others. You still need to
|
---|
| 89 | actually enable these protocols in the kernel—what you do here is
|
---|
| 90 | merely tell the package to include support for those protocols in its
|
---|
| 91 | programs, but it's up to the kernel to make the protocols available.</para>
|
---|
[8d0d2eb] | 92 |
|
---|
[8617f6dd] | 93 | <note><para>This package has several unneeded protocols and hardware device
|
---|
| 94 | specific functions that are obsolete. To only build the minimum needed for
|
---|
| 95 | your system, skip the <command>yes</command> command and answer each
|
---|
| 96 | question interactively. The minimum needed options are 'UNIX protocol
|
---|
| 97 | family' and 'INET (TCP/IP) protocol family'.</para></note>
|
---|
| 98 |
|
---|
[49b241a] | 99 | <para>The patch below cleans up the installation so that it does not
|
---|
[f3429309] | 100 | overwrite the <application>ifconfig</application> and
|
---|
[49b241a] | 101 | <application>hostname</application> programs that were installed in LFS.</para>
|
---|
| 102 |
|
---|
[a3dbd17b] | 103 | <para>Install <application>Net-tools</application> by running the
|
---|
| 104 | following commands:</para>
|
---|
| 105 |
|
---|
[49b241a] | 106 | <screen><userinput>patch -Np1 -i ../net-tools-&net-tools-version;-remove_dups-1.patch &&
|
---|
| 107 |
|
---|
| 108 | yes "" | make config &&
|
---|
[46441976] | 109 | make</userinput></screen>
|
---|
| 110 |
|
---|
| 111 | <para>This package does not come with a test suite.</para>
|
---|
| 112 |
|
---|
| 113 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 114 |
|
---|
| 115 | <screen role='root'><userinput>make update</userinput></screen>
|
---|
[8d0d2eb] | 116 |
|
---|
[a3dbd17b] | 117 | </sect2>
|
---|
[8d0d2eb] | 118 |
|
---|
[a3dbd17b] | 119 | <sect2 role="commands">
|
---|
| 120 | <title>Command Explanations</title>
|
---|
[49b241a] | 121 | <!--
|
---|
[8617f6dd] | 122 | <para><command>sed -i -e '/Token/s/y$/n/' config.in</command>: Change the
|
---|
[0d7900a] | 123 | default for building obsolete token ring support to no. This is a
|
---|
[8617f6dd] | 124 | simpler change than changing the location for the token ring headers.
|
---|
| 125 | </para>
|
---|
| 126 |
|
---|
[0d7900a] | 127 | <para><command>sed -i -e '/HAVE_HWSTRIP/s/y$/n/' config.in</command>:
|
---|
[699b552c] | 128 | Removes obsolete Metricom radio support that requires a header no longer
|
---|
| 129 | included in the kernel. </para>
|
---|
[49b241a] | 130 | -->
|
---|
[8d0d2eb] | 131 | <para><command>yes "" | make config</command>: Piping <command>yes</command>
|
---|
[a3dbd17b] | 132 | to <command>make config</command> skips the interactive configuration and
|
---|
| 133 | accepts the defaults.</para>
|
---|
[8d0d2eb] | 134 |
|
---|
[a3dbd17b] | 135 | </sect2>
|
---|
[8d0d2eb] | 136 |
|
---|
[a3dbd17b] | 137 | <sect2 role="content">
|
---|
| 138 | <title>Contents</title>
|
---|
[8d0d2eb] | 139 |
|
---|
[a3dbd17b] | 140 | <segmentedlist>
|
---|
| 141 | <segtitle>Installed Programs</segtitle>
|
---|
| 142 | <segtitle>Installed Libraries</segtitle>
|
---|
| 143 | <segtitle>Installed Directories</segtitle>
|
---|
[8d0d2eb] | 144 |
|
---|
[a3dbd17b] | 145 | <seglistitem>
|
---|
[f3429309] | 146 | <seg>arp,
|
---|
[49b241a] | 147 | ipmaddr, iptunnel, mii-tool, nameif, netstat,
|
---|
| 148 | plipconfig, rarp, route, and slattach
|
---|
| 149 | </seg>
|
---|
[a3dbd17b] | 150 | <seg>None</seg>
|
---|
[46441976] | 151 | <seg>None</seg>
|
---|
[a3dbd17b] | 152 | </seglistitem>
|
---|
| 153 | </segmentedlist>
|
---|
[8d0d2eb] | 154 |
|
---|
[a3dbd17b] | 155 | <variablelist>
|
---|
| 156 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 157 | <?dbfo list-presentation="list"?>
|
---|
| 158 | <?dbhtml list-presentation="table"?>
|
---|
[8d0d2eb] | 159 |
|
---|
[a3dbd17b] | 160 | <varlistentry id="arp">
|
---|
| 161 | <term><command>arp</command></term>
|
---|
| 162 | <listitem>
|
---|
| 163 | <para>is used to manipulate the kernel's ARP cache, usually
|
---|
| 164 | to add or delete an entry, or to dump the entire cache.</para>
|
---|
| 165 | <indexterm zone="net-tools arp">
|
---|
| 166 | <primary sortas="b-arp">arp</primary>
|
---|
| 167 | </indexterm>
|
---|
| 168 | </listitem>
|
---|
| 169 | </varlistentry>
|
---|
[49b241a] | 170 | <!--
|
---|
[a3dbd17b] | 171 | <varlistentry id="dnsdomainname">
|
---|
| 172 | <term><command>dnsdomainname</command></term>
|
---|
| 173 | <listitem>
|
---|
| 174 | <para>reports the system's DNS domain name.</para>
|
---|
| 175 | <indexterm zone="net-tools dnsdomainname">
|
---|
| 176 | <primary sortas="b-dnsdomainname">dnsdomainname</primary>
|
---|
| 177 | </indexterm>
|
---|
| 178 | </listitem>
|
---|
| 179 | </varlistentry>
|
---|
[8d0d2eb] | 180 |
|
---|
[a3dbd17b] | 181 | <varlistentry id="domainname">
|
---|
| 182 | <term><command>domainname</command></term>
|
---|
| 183 | <listitem>
|
---|
| 184 | <para>reports or sets the system's NIS/YP domain name.</para>
|
---|
| 185 | <indexterm zone="net-tools domainname">
|
---|
| 186 | <primary sortas="b-domainname">domainname</primary>
|
---|
| 187 | </indexterm>
|
---|
| 188 | </listitem>
|
---|
| 189 | </varlistentry>
|
---|
[8d0d2eb] | 190 |
|
---|
[a3dbd17b] | 191 | <varlistentry id="hostname">
|
---|
| 192 | <term><command>hostname</command></term>
|
---|
| 193 | <listitem>
|
---|
| 194 | <para>reports or sets the name of the current host system.</para>
|
---|
| 195 | <indexterm zone="net-tools hostname">
|
---|
| 196 | <primary sortas="b-hostname">hostname</primary>
|
---|
| 197 | </indexterm>
|
---|
| 198 | </listitem>
|
---|
| 199 | </varlistentry>
|
---|
[8d0d2eb] | 200 |
|
---|
[a3dbd17b] | 201 | <varlistentry id="ifconfig">
|
---|
| 202 | <term><command>ifconfig</command></term>
|
---|
| 203 | <listitem>
|
---|
| 204 | <para>is the main utility for configuring network interfaces.</para>
|
---|
| 205 | <indexterm zone="net-tools ifconfig">
|
---|
| 206 | <primary sortas="b-ifconfig">ifconfig</primary>
|
---|
| 207 | </indexterm>
|
---|
| 208 | </listitem>
|
---|
| 209 | </varlistentry>
|
---|
[49b241a] | 210 | -->
|
---|
[a3dbd17b] | 211 | <varlistentry id="ipmaddr">
|
---|
| 212 | <term><command>ipmaddr</command></term>
|
---|
| 213 | <listitem>
|
---|
| 214 | <para>adds, deletes and shows an interface's multicast addresses.</para>
|
---|
| 215 | <indexterm zone="net-tools ipmaddr">
|
---|
| 216 | <primary sortas="b-ipmaddr">ipmaddr</primary>
|
---|
| 217 | </indexterm>
|
---|
| 218 | </listitem>
|
---|
| 219 | </varlistentry>
|
---|
[8d0d2eb] | 220 |
|
---|
[a3dbd17b] | 221 | <varlistentry id="iptunnel">
|
---|
| 222 | <term><command>iptunnel</command></term>
|
---|
| 223 | <listitem>
|
---|
| 224 | <para>adds, changes, deletes and shows an interface's tunnels.</para>
|
---|
| 225 | <indexterm zone="net-tools iptunnel">
|
---|
| 226 | <primary sortas="b-iptunnel">iptunnel</primary>
|
---|
| 227 | </indexterm>
|
---|
| 228 | </listitem>
|
---|
| 229 | </varlistentry>
|
---|
[8d0d2eb] | 230 |
|
---|
[a3dbd17b] | 231 | <varlistentry id="mii-tool">
|
---|
| 232 | <term><command>mii-tool</command></term>
|
---|
| 233 | <listitem>
|
---|
[5d5ced00] | 234 | <para>checks or sets the status of a network interface's Media Independent
|
---|
[a3dbd17b] | 235 | Interface (MII) unit.</para>
|
---|
| 236 | <indexterm zone="net-tools mii-tool">
|
---|
| 237 | <primary sortas="b-mii-tool">mii-tool</primary>
|
---|
| 238 | </indexterm>
|
---|
| 239 | </listitem>
|
---|
| 240 | </varlistentry>
|
---|
[8d0d2eb] | 241 |
|
---|
[a3dbd17b] | 242 | <varlistentry id="nameif">
|
---|
| 243 | <term><command>nameif</command></term>
|
---|
| 244 | <listitem>
|
---|
| 245 | <para>names network interfaces based on MAC addresses.</para>
|
---|
| 246 | <indexterm zone="net-tools nameif">
|
---|
| 247 | <primary sortas="b-nameif">nameif</primary>
|
---|
| 248 | </indexterm>
|
---|
| 249 | </listitem>
|
---|
| 250 | </varlistentry>
|
---|
[8d0d2eb] | 251 |
|
---|
[a3dbd17b] | 252 | <varlistentry id="netstat">
|
---|
| 253 | <term><command>netstat</command></term>
|
---|
| 254 | <listitem>
|
---|
| 255 | <para>is used to report network connections, routing tables, and interface
|
---|
| 256 | statistics.</para>
|
---|
| 257 | <indexterm zone="net-tools netstat">
|
---|
| 258 | <primary sortas="b-netstat">netstat</primary>
|
---|
| 259 | </indexterm>
|
---|
| 260 | </listitem>
|
---|
| 261 | </varlistentry>
|
---|
[49b241a] | 262 | <!--
|
---|
[a3dbd17b] | 263 | <varlistentry id="nisdomainname">
|
---|
| 264 | <term><command>nisdomainname</command></term>
|
---|
| 265 | <listitem>
|
---|
| 266 | <para>does the same as <command>domainname</command>.</para>
|
---|
| 267 | <indexterm zone="net-tools nisdomainname">
|
---|
| 268 | <primary sortas="b-nisdomainname">nisdomainname</primary>
|
---|
| 269 | </indexterm>
|
---|
| 270 | </listitem>
|
---|
| 271 | </varlistentry>
|
---|
[49b241a] | 272 | -->
|
---|
[a3dbd17b] | 273 | <varlistentry id="plipconfig">
|
---|
| 274 | <term><command>plipconfig</command></term>
|
---|
| 275 | <listitem>
|
---|
| 276 | <para>is used to fine tune the PLIP device parameters, to
|
---|
| 277 | improve its performance.</para>
|
---|
| 278 | <indexterm zone="net-tools plipconfig">
|
---|
| 279 | <primary sortas="b-plipconfig">plipconfig</primary>
|
---|
| 280 | </indexterm>
|
---|
| 281 | </listitem>
|
---|
| 282 | </varlistentry>
|
---|
[8d0d2eb] | 283 |
|
---|
[a3dbd17b] | 284 | <varlistentry id="rarp">
|
---|
| 285 | <term><command>rarp</command></term>
|
---|
| 286 | <listitem>
|
---|
| 287 | <para>is used to manipulate the kernel's RARP table.</para>
|
---|
| 288 | <indexterm zone="net-tools rarp">
|
---|
| 289 | <primary sortas="b-rarp">rarp</primary>
|
---|
| 290 | </indexterm>
|
---|
| 291 | </listitem>
|
---|
| 292 | </varlistentry>
|
---|
[8d0d2eb] | 293 |
|
---|
[a3dbd17b] | 294 | <varlistentry id="route">
|
---|
| 295 | <term><command>route</command></term>
|
---|
| 296 | <listitem>
|
---|
| 297 | <para>is used to manipulate the IP routing table.</para>
|
---|
| 298 | <indexterm zone="net-tools route">
|
---|
| 299 | <primary sortas="b-route">route</primary>
|
---|
| 300 | </indexterm>
|
---|
| 301 | </listitem>
|
---|
| 302 | </varlistentry>
|
---|
[8d0d2eb] | 303 |
|
---|
[a3dbd17b] | 304 | <varlistentry id="slattach">
|
---|
| 305 | <term><command>slattach</command></term>
|
---|
| 306 | <listitem>
|
---|
| 307 | <para>attaches a network interface to a serial line. This allows you to use
|
---|
| 308 | normal terminal lines for point-to-point links to other computers.</para>
|
---|
| 309 | <indexterm zone="net-tools slattach">
|
---|
| 310 | <primary sortas="b-slattach">slattach</primary>
|
---|
| 311 | </indexterm>
|
---|
| 312 | </listitem>
|
---|
| 313 | </varlistentry>
|
---|
[49b241a] | 314 | <!--
|
---|
[a3dbd17b] | 315 | <varlistentry id="ypdomainname">
|
---|
| 316 | <term><command>ypdomainname</command></term>
|
---|
| 317 | <listitem>
|
---|
| 318 | <para>does the same as <command>domainname</command>.</para>
|
---|
| 319 | <indexterm zone="net-tools ypdomainname">
|
---|
| 320 | <primary sortas="b-ypdomainname">ypdomainname</primary>
|
---|
| 321 | </indexterm>
|
---|
| 322 | </listitem>
|
---|
| 323 | </varlistentry>
|
---|
[49b241a] | 324 | -->
|
---|
[a3dbd17b] | 325 | </variablelist>
|
---|
[8d0d2eb] | 326 |
|
---|
[a3dbd17b] | 327 | </sect2>
|
---|
[8d0d2eb] | 328 |
|
---|
[0590c1b6] | 329 | </sect1>
|
---|