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