[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 |
|
---|
[6c815f9] | 7 | <!ENTITY net-tools-download-http "https://downloads.sourceforge.net/project/net-tools/net-tools-&net-tools-version;.tar.xz">
|
---|
[a3b94fc] | 8 | <!ENTITY net-tools-download-ftp " ">
|
---|
| 9 | <!ENTITY net-tools-md5sum "78aae762c95e2d731faf88d482e4cde5">
|
---|
| 10 | <!ENTITY net-tools-size "228 KB">
|
---|
| 11 | <!ENTITY net-tools-buildsize "7.5 MB">
|
---|
[a71e7697] | 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 | <date>$Date$</date>
|
---|
| 20 | </sect1info>
|
---|
[8d0d2eb] | 21 |
|
---|
[a3dbd17b] | 22 | <title>Net-tools-&net-tools-version;</title>
|
---|
[8d0d2eb] | 23 |
|
---|
[a3dbd17b] | 24 | <indexterm zone="net-tools">
|
---|
| 25 | <primary sortas="a-Net-tools">Net-tools</primary>
|
---|
| 26 | </indexterm>
|
---|
| 27 |
|
---|
| 28 | <sect2 role="package">
|
---|
| 29 | <title>Introduction to Net-tools</title>
|
---|
[8d0d2eb] | 30 |
|
---|
[b51fe6e] | 31 | <para>
|
---|
| 32 | The <application>Net-tools</application> package is a collection
|
---|
| 33 | of programs for controlling the network subsystem of the Linux kernel.
|
---|
| 34 | </para>
|
---|
[8d0d2eb] | 35 |
|
---|
[234dc92] | 36 | &lfs110a_checked;
|
---|
[2b8421c] | 37 |
|
---|
[a3dbd17b] | 38 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 39 | <itemizedlist spacing="compact">
|
---|
| 40 | <listitem>
|
---|
[b51fe6e] | 41 | <para>
|
---|
| 42 | Download (HTTP): <ulink url="&net-tools-download-http;"/>
|
---|
| 43 | </para>
|
---|
[a3dbd17b] | 44 | </listitem>
|
---|
| 45 | <listitem>
|
---|
[b51fe6e] | 46 | <para>
|
---|
| 47 | Download (FTP): <ulink url="&net-tools-download-ftp;"/>
|
---|
| 48 | </para>
|
---|
[a3dbd17b] | 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
[b51fe6e] | 51 | <para>
|
---|
| 52 | Download MD5 sum: &net-tools-md5sum;
|
---|
| 53 | </para>
|
---|
[a3dbd17b] | 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
[b51fe6e] | 56 | <para>
|
---|
| 57 | Download size: &net-tools-size;
|
---|
| 58 | </para>
|
---|
[a3dbd17b] | 59 | </listitem>
|
---|
| 60 | <listitem>
|
---|
[b51fe6e] | 61 | <para>
|
---|
| 62 | Estimated disk space required: &net-tools-buildsize;
|
---|
| 63 | </para>
|
---|
[a3dbd17b] | 64 | </listitem>
|
---|
| 65 | <listitem>
|
---|
[b51fe6e] | 66 | <para>
|
---|
| 67 | Estimated build time: &net-tools-time;
|
---|
| 68 | </para>
|
---|
[2174baa] | 69 | </listitem>
|
---|
[a3dbd17b] | 70 | </itemizedlist>
|
---|
[a3b94fc] | 71 | <!--
|
---|
[49b241a] | 72 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 73 | <itemizedlist spacing="compact">
|
---|
| 74 | <listitem>
|
---|
| 75 | <para>
|
---|
| 76 | Required patch:
|
---|
| 77 | <ulink url="&patch-root;/net-tools-&net-tools-version;-remove_dups-1.patch"/>
|
---|
| 78 | </para>
|
---|
| 79 | </listitem>
|
---|
| 80 | </itemizedlist>
|
---|
[a3b94fc] | 81 | -->
|
---|
[49b241a] | 82 |
|
---|
[061ec9d] | 83 | <para condition="html" role="usernotes">User Notes:
|
---|
| 84 | <ulink url="&blfs-wiki;/net-tools"/></para>
|
---|
| 85 |
|
---|
[a3dbd17b] | 86 | </sect2>
|
---|
[8d0d2eb] | 87 |
|
---|
[a3dbd17b] | 88 | <sect2 role="installation">
|
---|
| 89 | <title>Installation of Net-tools</title>
|
---|
| 90 |
|
---|
[b51fe6e] | 91 | <para id="net-tools-automate-example" xreflabel="Net-tools">
|
---|
| 92 | The instructions below automate the configuration process by piping
|
---|
[a3b94fc] | 93 | <command>yes</command> to the <command>make</command> command.
|
---|
[b51fe6e] | 94 | If you wish to run the interactive configuration process (by changing
|
---|
[a3b94fc] | 95 | the instruction to just <command>make</command>), but you are
|
---|
[b51fe6e] | 96 | not sure how to answer all the questions, then just accept the defaults.
|
---|
| 97 | This will be just fine in the majority of cases. What you're asked here
|
---|
| 98 | is a bunch of questions about which network protocols you've enabled
|
---|
| 99 | in your kernel. The default answers will enable the tools from this
|
---|
| 100 | package to work with the most common protocols: TCP, PPP, and several
|
---|
| 101 | others. You still need to actually enable these protocols in the
|
---|
| 102 | kernel—what you do here is merely tell the package to include
|
---|
| 103 | support for those protocols in its programs, but it's up to the kernel
|
---|
| 104 | to make the protocols available.
|
---|
| 105 | </para>
|
---|
| 106 |
|
---|
| 107 | <note>
|
---|
| 108 | <para>
|
---|
| 109 | This package has several unneeded protocols and hardware device
|
---|
| 110 | specific functions that are obsolete. To only build the minimum needed
|
---|
| 111 | for your system, skip the <command>yes</command> command and answer
|
---|
| 112 | each question interactively. The minimum needed options are 'UNIX
|
---|
| 113 | protocol family' and 'INET (TCP/IP) protocol family'.
|
---|
| 114 | </para>
|
---|
| 115 | </note>
|
---|
| 116 |
|
---|
| 117 | <para>
|
---|
[a3b94fc] | 118 | For this package, we use the DESTDIR method of installation in order
|
---|
| 119 | to easily remove files from the build that overwrite those that we want
|
---|
| 120 | to keep or are not appropriate for our system.
|
---|
[b51fe6e] | 121 | </para>
|
---|
| 122 |
|
---|
[6c815f9] | 123 | <!-- When building with MAKEFLAGS set to a -j value higher than 1, a race
|
---|
| 124 | condition will occur. -renodr -->
|
---|
| 125 |
|
---|
[b51fe6e] | 126 | <para>
|
---|
| 127 | Install <application>Net-tools</application> by running the
|
---|
| 128 | following commands:
|
---|
| 129 | </para>
|
---|
[a3dbd17b] | 130 |
|
---|
[a3b94fc] | 131 | <screen><userinput>export BINDIR='/usr/bin' SBINDIR='/usr/bin' &&
|
---|
[6c815f9] | 132 | yes "" | make -j1 &&
|
---|
| 133 | make DESTDIR=$PWD/install -j1 install &&
|
---|
[a3b94fc] | 134 | rm install/usr/bin/{nis,yp}domainname &&
|
---|
[beea728] | 135 | rm install/usr/bin/{hostname,dnsdomainname,domainname,ifconfig} &&
|
---|
[a3b94fc] | 136 | rm -r install/usr/share/man/man1 &&
|
---|
[beea728] | 137 | rm install/usr/share/man/man8/ifconfig.8 &&
|
---|
[a3b94fc] | 138 | unset BINDIR SBINDIR</userinput></screen>
|
---|
[46441976] | 139 |
|
---|
[b51fe6e] | 140 | <para>
|
---|
| 141 | This package does not come with a test suite.
|
---|
| 142 | </para>
|
---|
[46441976] | 143 |
|
---|
[b51fe6e] | 144 | <para>
|
---|
| 145 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 146 | </para>
|
---|
[46441976] | 147 |
|
---|
[a3b94fc] | 148 | <screen role='root'><userinput>chown -R root:root install &&
|
---|
| 149 | cp -a install/* /</userinput></screen>
|
---|
[8d0d2eb] | 150 |
|
---|
[a3dbd17b] | 151 | </sect2>
|
---|
[8d0d2eb] | 152 |
|
---|
[a3dbd17b] | 153 | <sect2 role="commands">
|
---|
| 154 | <title>Command Explanations</title>
|
---|
[851ed2f] | 155 |
|
---|
[0ea195f4] | 156 | <para>
|
---|
[a3b94fc] | 157 | <command>export BINDIR='/usr/bin' SBINDIR='/usr/bin'</command>:
|
---|
| 158 | Ensure the executables are installed in the correct location.
|
---|
[0ea195f4] | 159 | </para>
|
---|
| 160 |
|
---|
[b51fe6e] | 161 | <para>
|
---|
[a3b94fc] | 162 | <command>yes "" | make </command>: Piping <command>yes</command>
|
---|
| 163 | to <command>make config</command> skips the interactive configuration and
|
---|
| 164 | accepts the defaults.
|
---|
[8617f6dd] | 165 | </para>
|
---|
| 166 |
|
---|
[b51fe6e] | 167 | <para>
|
---|
[a3b94fc] | 168 | <command>rm ...</command>: Remove unneeded programs and man pages.
|
---|
[b51fe6e] | 169 | </para>
|
---|
[8d0d2eb] | 170 |
|
---|
[a3dbd17b] | 171 | </sect2>
|
---|
[8d0d2eb] | 172 |
|
---|
[a3dbd17b] | 173 | <sect2 role="content">
|
---|
| 174 | <title>Contents</title>
|
---|
[8d0d2eb] | 175 |
|
---|
[a3dbd17b] | 176 | <segmentedlist>
|
---|
| 177 | <segtitle>Installed Programs</segtitle>
|
---|
| 178 | <segtitle>Installed Libraries</segtitle>
|
---|
| 179 | <segtitle>Installed Directories</segtitle>
|
---|
[8d0d2eb] | 180 |
|
---|
[a3dbd17b] | 181 | <seglistitem>
|
---|
[8558044] | 182 | <seg>arp,
|
---|
| 183 | ipmaddr,
|
---|
| 184 | iptunnel,
|
---|
| 185 | mii-tool,
|
---|
| 186 | nameif,
|
---|
[a3b94fc] | 187 | netstat,
|
---|
[8558044] | 188 | plipconfig,
|
---|
| 189 | rarp,
|
---|
| 190 | route, and
|
---|
[a3b94fc] | 191 | slattach
|
---|
[49b241a] | 192 | </seg>
|
---|
[a3dbd17b] | 193 | <seg>None</seg>
|
---|
[46441976] | 194 | <seg>None</seg>
|
---|
[a3dbd17b] | 195 | </seglistitem>
|
---|
| 196 | </segmentedlist>
|
---|
[8d0d2eb] | 197 |
|
---|
[a3dbd17b] | 198 | <variablelist>
|
---|
| 199 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 200 | <?dbfo list-presentation="list"?>
|
---|
| 201 | <?dbhtml list-presentation="table"?>
|
---|
[8d0d2eb] | 202 |
|
---|
[a3dbd17b] | 203 | <varlistentry id="arp">
|
---|
| 204 | <term><command>arp</command></term>
|
---|
| 205 | <listitem>
|
---|
[b51fe6e] | 206 | <para>
|
---|
| 207 | is used to manipulate the kernel's ARP cache, usually
|
---|
[4c24eb0a] | 208 | to add or delete an entry, or to dump the entire cache
|
---|
[b51fe6e] | 209 | </para>
|
---|
[a3dbd17b] | 210 | <indexterm zone="net-tools arp">
|
---|
| 211 | <primary sortas="b-arp">arp</primary>
|
---|
| 212 | </indexterm>
|
---|
| 213 | </listitem>
|
---|
| 214 | </varlistentry>
|
---|
[8d0d2eb] | 215 |
|
---|
[a3dbd17b] | 216 | <varlistentry id="ipmaddr">
|
---|
| 217 | <term><command>ipmaddr</command></term>
|
---|
| 218 | <listitem>
|
---|
[b51fe6e] | 219 | <para>
|
---|
[4c24eb0a] | 220 | adds, deletes and shows an interface's multicast addresses
|
---|
[b51fe6e] | 221 | </para>
|
---|
[a3dbd17b] | 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>
|
---|
[b51fe6e] | 231 | <para>
|
---|
[4c24eb0a] | 232 | adds, changes, deletes and shows an interface's tunnels
|
---|
[b51fe6e] | 233 | </para>
|
---|
[a3dbd17b] | 234 | <indexterm zone="net-tools iptunnel">
|
---|
| 235 | <primary sortas="b-iptunnel">iptunnel</primary>
|
---|
| 236 | </indexterm>
|
---|
| 237 | </listitem>
|
---|
| 238 | </varlistentry>
|
---|
[8d0d2eb] | 239 |
|
---|
[a3dbd17b] | 240 | <varlistentry id="mii-tool">
|
---|
| 241 | <term><command>mii-tool</command></term>
|
---|
| 242 | <listitem>
|
---|
[b51fe6e] | 243 | <para>
|
---|
| 244 | checks or sets the status of a network interface's Media
|
---|
[4c24eb0a] | 245 | Independent Interface (MII) unit
|
---|
[b51fe6e] | 246 | </para>
|
---|
[a3dbd17b] | 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>
|
---|
[b51fe6e] | 256 | <para>
|
---|
[4c24eb0a] | 257 | names network interfaces based on MAC addresses
|
---|
[b51fe6e] | 258 | </para>
|
---|
[a3dbd17b] | 259 | <indexterm zone="net-tools nameif">
|
---|
| 260 | <primary sortas="b-nameif">nameif</primary>
|
---|
| 261 | </indexterm>
|
---|
| 262 | </listitem>
|
---|
| 263 | </varlistentry>
|
---|
[8d0d2eb] | 264 |
|
---|
[a3dbd17b] | 265 | <varlistentry id="netstat">
|
---|
| 266 | <term><command>netstat</command></term>
|
---|
| 267 | <listitem>
|
---|
[b51fe6e] | 268 | <para>
|
---|
| 269 | is used to report network connections, routing tables, and
|
---|
[4c24eb0a] | 270 | interface statistics
|
---|
[b51fe6e] | 271 | </para>
|
---|
[a3dbd17b] | 272 | <indexterm zone="net-tools netstat">
|
---|
| 273 | <primary sortas="b-netstat">netstat</primary>
|
---|
| 274 | </indexterm>
|
---|
| 275 | </listitem>
|
---|
| 276 | </varlistentry>
|
---|
[a3b94fc] | 277 |
|
---|
[a3dbd17b] | 278 | <varlistentry id="plipconfig">
|
---|
| 279 | <term><command>plipconfig</command></term>
|
---|
| 280 | <listitem>
|
---|
[b51fe6e] | 281 | <para>
|
---|
| 282 | is used to fine tune the PLIP device parameters, to
|
---|
[4c24eb0a] | 283 | improve its performance
|
---|
[b51fe6e] | 284 | </para>
|
---|
[a3dbd17b] | 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>
|
---|
[b51fe6e] | 294 | <para>
|
---|
[4c24eb0a] | 295 | is used to manipulate the kernel's RARP table
|
---|
[b51fe6e] | 296 | </para>
|
---|
[a3dbd17b] | 297 | <indexterm zone="net-tools rarp">
|
---|
| 298 | <primary sortas="b-rarp">rarp</primary>
|
---|
| 299 | </indexterm>
|
---|
| 300 | </listitem>
|
---|
| 301 | </varlistentry>
|
---|
[8d0d2eb] | 302 |
|
---|
[a3dbd17b] | 303 | <varlistentry id="route">
|
---|
| 304 | <term><command>route</command></term>
|
---|
| 305 | <listitem>
|
---|
[b51fe6e] | 306 | <para>
|
---|
[4c24eb0a] | 307 | is used to manipulate the IP routing table
|
---|
[b51fe6e] | 308 | </para>
|
---|
[a3dbd17b] | 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>
|
---|
[b51fe6e] | 318 | <para>
|
---|
| 319 | attaches a network interface to a serial line. This allows you to
|
---|
| 320 | use normal terminal lines for point-to-point links to others
|
---|
[4c24eb0a] | 321 | computers
|
---|
[b51fe6e] | 322 | </para>
|
---|
[a3dbd17b] | 323 | <indexterm zone="net-tools slattach">
|
---|
| 324 | <primary sortas="b-slattach">slattach</primary>
|
---|
| 325 | </indexterm>
|
---|
| 326 | </listitem>
|
---|
| 327 | </varlistentry>
|
---|
| 328 | </variablelist>
|
---|
[8d0d2eb] | 329 |
|
---|
[a3dbd17b] | 330 | </sect2>
|
---|
[8d0d2eb] | 331 |
|
---|
[0590c1b6] | 332 | </sect1>
|
---|