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