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