[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">
|
---|
[dcea4e3] | 10 | <!ENTITY net-tools-size "288 KB">
|
---|
[a71e7697] | 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 | <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 |
|
---|
[db6b0d59] | 36 | &lfs101_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>
|
---|
[8d0d2eb] | 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>
|
---|
| 81 |
|
---|
| 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
|
---|
| 93 | <command>yes</command> to the <command>make config</command> command.
|
---|
| 94 | If you wish to run the interactive configuration process (by changing
|
---|
| 95 | the instruction to just <command>make config</command>), but you are
|
---|
| 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>
|
---|
| 118 | The patch below cleans up the installation so that it does not
|
---|
| 119 | overwrite the <application>ifconfig</application> and
|
---|
| 120 | <application>hostname</application> programs that were installed in LFS.
|
---|
| 121 | </para>
|
---|
| 122 |
|
---|
| 123 | <para>
|
---|
| 124 | Install <application>Net-tools</application> by running the
|
---|
| 125 | following commands:
|
---|
| 126 | </para>
|
---|
[a3dbd17b] | 127 |
|
---|
[5531b4a] | 128 | <screen><userinput>patch -Np1 -i ../net-tools-&net-tools-version;-remove_dups-1.patch &&
|
---|
| 129 | sed -e "s;/\(s\|\)bin;/usr&;g" -i Makefile &&
|
---|
[851ed2f] | 130 | sed -i '/#include <netinet\/ip.h>/d' iptunnel.c &&
|
---|
[49b241a] | 131 |
|
---|
| 132 | yes "" | make config &&
|
---|
[46441976] | 133 | make</userinput></screen>
|
---|
| 134 |
|
---|
[b51fe6e] | 135 | <para>
|
---|
| 136 | This package does not come with a test suite.
|
---|
| 137 | </para>
|
---|
[46441976] | 138 |
|
---|
[b51fe6e] | 139 | <para>
|
---|
| 140 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 141 | </para>
|
---|
[46441976] | 142 |
|
---|
| 143 | <screen role='root'><userinput>make update</userinput></screen>
|
---|
[8d0d2eb] | 144 |
|
---|
[a3dbd17b] | 145 | </sect2>
|
---|
[8d0d2eb] | 146 |
|
---|
[a3dbd17b] | 147 | <sect2 role="commands">
|
---|
| 148 | <title>Command Explanations</title>
|
---|
[851ed2f] | 149 |
|
---|
[0ea195f4] | 150 | <para>
|
---|
| 151 | <command>sed -i "s;/\(s\|\)bin;/usr&;g" -i Makefile</command>:
|
---|
| 152 | Modifies the <filename>Makefile</filename> to get the binaries
|
---|
| 153 | installed in the <filename class="directory">/usr</filename> hierarchy.
|
---|
| 154 | </para>
|
---|
| 155 |
|
---|
[b51fe6e] | 156 | <para>
|
---|
| 157 | <command>sed -i '/#include <netinet\/ip.h>/d' iptunnel.c</command>:
|
---|
| 158 | This fixes build breakage with linux-4.8 headers.
|
---|
| 159 | </para>
|
---|
[49b241a] | 160 | <!--
|
---|
[b51fe6e] | 161 | <para>
|
---|
| 162 | <command>sed -i -e '/Token/s/y$/n/' config.in</command>: Change the
|
---|
| 163 | default for building obsolete token ring support to no. This is a
|
---|
| 164 | simpler change than changing the location for the token ring headers.
|
---|
[8617f6dd] | 165 | </para>
|
---|
| 166 |
|
---|
[b51fe6e] | 167 | <para>
|
---|
| 168 | <command>sed -i -e '/HAVE_HWSTRIP/s/y$/n/' config.in</command>:
|
---|
| 169 | Removes obsolete Metricom radio support that requires a header no longer
|
---|
| 170 | included in the kernel.
|
---|
| 171 | </para>
|
---|
[49b241a] | 172 | -->
|
---|
[b51fe6e] | 173 | <para>
|
---|
| 174 | <command>yes "" | make config</command>: Piping <command>yes</command>
|
---|
| 175 | to <command>make config</command> skips the interactive configuration and
|
---|
| 176 | accepts the defaults.
|
---|
| 177 | </para>
|
---|
[8d0d2eb] | 178 |
|
---|
[a3dbd17b] | 179 | </sect2>
|
---|
[8d0d2eb] | 180 |
|
---|
[a3dbd17b] | 181 | <sect2 role="content">
|
---|
| 182 | <title>Contents</title>
|
---|
[8d0d2eb] | 183 |
|
---|
[a3dbd17b] | 184 | <segmentedlist>
|
---|
| 185 | <segtitle>Installed Programs</segtitle>
|
---|
| 186 | <segtitle>Installed Libraries</segtitle>
|
---|
| 187 | <segtitle>Installed Directories</segtitle>
|
---|
[8d0d2eb] | 188 |
|
---|
[a3dbd17b] | 189 | <seglistitem>
|
---|
[f3429309] | 190 | <seg>arp,
|
---|
[49b241a] | 191 | ipmaddr, iptunnel, mii-tool, nameif, netstat,
|
---|
| 192 | plipconfig, rarp, route, and slattach
|
---|
| 193 | </seg>
|
---|
[a3dbd17b] | 194 | <seg>None</seg>
|
---|
[46441976] | 195 | <seg>None</seg>
|
---|
[a3dbd17b] | 196 | </seglistitem>
|
---|
| 197 | </segmentedlist>
|
---|
[8d0d2eb] | 198 |
|
---|
[a3dbd17b] | 199 | <variablelist>
|
---|
| 200 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 201 | <?dbfo list-presentation="list"?>
|
---|
| 202 | <?dbhtml list-presentation="table"?>
|
---|
[8d0d2eb] | 203 |
|
---|
[a3dbd17b] | 204 | <varlistentry id="arp">
|
---|
| 205 | <term><command>arp</command></term>
|
---|
| 206 | <listitem>
|
---|
[b51fe6e] | 207 | <para>
|
---|
| 208 | is used to manipulate the kernel's ARP cache, usually
|
---|
[4c24eb0a] | 209 | to add or delete an entry, or to dump the entire cache
|
---|
[b51fe6e] | 210 | </para>
|
---|
[a3dbd17b] | 211 | <indexterm zone="net-tools arp">
|
---|
| 212 | <primary sortas="b-arp">arp</primary>
|
---|
| 213 | </indexterm>
|
---|
| 214 | </listitem>
|
---|
| 215 | </varlistentry>
|
---|
[49b241a] | 216 | <!--
|
---|
[a3dbd17b] | 217 | <varlistentry id="dnsdomainname">
|
---|
| 218 | <term><command>dnsdomainname</command></term>
|
---|
| 219 | <listitem>
|
---|
[b51fe6e] | 220 | <para>
|
---|
| 221 | reports the system's DNS domain name.
|
---|
| 222 | </para>
|
---|
[a3dbd17b] | 223 | <indexterm zone="net-tools dnsdomainname">
|
---|
| 224 | <primary sortas="b-dnsdomainname">dnsdomainname</primary>
|
---|
| 225 | </indexterm>
|
---|
| 226 | </listitem>
|
---|
| 227 | </varlistentry>
|
---|
[8d0d2eb] | 228 |
|
---|
[a3dbd17b] | 229 | <varlistentry id="domainname">
|
---|
| 230 | <term><command>domainname</command></term>
|
---|
| 231 | <listitem>
|
---|
[b51fe6e] | 232 | <para>
|
---|
| 233 | reports or sets the system's NIS/YP domain name.
|
---|
| 234 | </para>
|
---|
[a3dbd17b] | 235 | <indexterm zone="net-tools domainname">
|
---|
| 236 | <primary sortas="b-domainname">domainname</primary>
|
---|
| 237 | </indexterm>
|
---|
| 238 | </listitem>
|
---|
| 239 | </varlistentry>
|
---|
[8d0d2eb] | 240 |
|
---|
[a3dbd17b] | 241 | <varlistentry id="hostname">
|
---|
| 242 | <term><command>hostname</command></term>
|
---|
| 243 | <listitem>
|
---|
[b51fe6e] | 244 | <para>
|
---|
| 245 | reports or sets the name of the current host system.
|
---|
| 246 | </para>
|
---|
[a3dbd17b] | 247 | <indexterm zone="net-tools hostname">
|
---|
| 248 | <primary sortas="b-hostname">hostname</primary>
|
---|
| 249 | </indexterm>
|
---|
| 250 | </listitem>
|
---|
| 251 | </varlistentry>
|
---|
[8d0d2eb] | 252 |
|
---|
[a3dbd17b] | 253 | <varlistentry id="ifconfig">
|
---|
| 254 | <term><command>ifconfig</command></term>
|
---|
| 255 | <listitem>
|
---|
[b51fe6e] | 256 | <para>
|
---|
| 257 | is the main utility for configuring network interfaces.
|
---|
| 258 | </para>
|
---|
[a3dbd17b] | 259 | <indexterm zone="net-tools ifconfig">
|
---|
| 260 | <primary sortas="b-ifconfig">ifconfig</primary>
|
---|
| 261 | </indexterm>
|
---|
| 262 | </listitem>
|
---|
| 263 | </varlistentry>
|
---|
[49b241a] | 264 | -->
|
---|
[a3dbd17b] | 265 | <varlistentry id="ipmaddr">
|
---|
| 266 | <term><command>ipmaddr</command></term>
|
---|
| 267 | <listitem>
|
---|
[b51fe6e] | 268 | <para>
|
---|
[4c24eb0a] | 269 | adds, deletes and shows an interface's multicast addresses
|
---|
[b51fe6e] | 270 | </para>
|
---|
[a3dbd17b] | 271 | <indexterm zone="net-tools ipmaddr">
|
---|
| 272 | <primary sortas="b-ipmaddr">ipmaddr</primary>
|
---|
| 273 | </indexterm>
|
---|
| 274 | </listitem>
|
---|
| 275 | </varlistentry>
|
---|
[8d0d2eb] | 276 |
|
---|
[a3dbd17b] | 277 | <varlistentry id="iptunnel">
|
---|
| 278 | <term><command>iptunnel</command></term>
|
---|
| 279 | <listitem>
|
---|
[b51fe6e] | 280 | <para>
|
---|
[4c24eb0a] | 281 | adds, changes, deletes and shows an interface's tunnels
|
---|
[b51fe6e] | 282 | </para>
|
---|
[a3dbd17b] | 283 | <indexterm zone="net-tools iptunnel">
|
---|
| 284 | <primary sortas="b-iptunnel">iptunnel</primary>
|
---|
| 285 | </indexterm>
|
---|
| 286 | </listitem>
|
---|
| 287 | </varlistentry>
|
---|
[8d0d2eb] | 288 |
|
---|
[a3dbd17b] | 289 | <varlistentry id="mii-tool">
|
---|
| 290 | <term><command>mii-tool</command></term>
|
---|
| 291 | <listitem>
|
---|
[b51fe6e] | 292 | <para>
|
---|
| 293 | checks or sets the status of a network interface's Media
|
---|
[4c24eb0a] | 294 | Independent Interface (MII) unit
|
---|
[b51fe6e] | 295 | </para>
|
---|
[a3dbd17b] | 296 | <indexterm zone="net-tools mii-tool">
|
---|
| 297 | <primary sortas="b-mii-tool">mii-tool</primary>
|
---|
| 298 | </indexterm>
|
---|
| 299 | </listitem>
|
---|
| 300 | </varlistentry>
|
---|
[8d0d2eb] | 301 |
|
---|
[a3dbd17b] | 302 | <varlistentry id="nameif">
|
---|
| 303 | <term><command>nameif</command></term>
|
---|
| 304 | <listitem>
|
---|
[b51fe6e] | 305 | <para>
|
---|
[4c24eb0a] | 306 | names network interfaces based on MAC addresses
|
---|
[b51fe6e] | 307 | </para>
|
---|
[a3dbd17b] | 308 | <indexterm zone="net-tools nameif">
|
---|
| 309 | <primary sortas="b-nameif">nameif</primary>
|
---|
| 310 | </indexterm>
|
---|
| 311 | </listitem>
|
---|
| 312 | </varlistentry>
|
---|
[8d0d2eb] | 313 |
|
---|
[a3dbd17b] | 314 | <varlistentry id="netstat">
|
---|
| 315 | <term><command>netstat</command></term>
|
---|
| 316 | <listitem>
|
---|
[b51fe6e] | 317 | <para>
|
---|
| 318 | is used to report network connections, routing tables, and
|
---|
[4c24eb0a] | 319 | interface statistics
|
---|
[b51fe6e] | 320 | </para>
|
---|
[a3dbd17b] | 321 | <indexterm zone="net-tools netstat">
|
---|
| 322 | <primary sortas="b-netstat">netstat</primary>
|
---|
| 323 | </indexterm>
|
---|
| 324 | </listitem>
|
---|
| 325 | </varlistentry>
|
---|
[49b241a] | 326 | <!--
|
---|
[a3dbd17b] | 327 | <varlistentry id="nisdomainname">
|
---|
| 328 | <term><command>nisdomainname</command></term>
|
---|
| 329 | <listitem>
|
---|
[b51fe6e] | 330 | <para>
|
---|
| 331 | does the same as <command>domainname</command>.
|
---|
| 332 | </para>
|
---|
[a3dbd17b] | 333 | <indexterm zone="net-tools nisdomainname">
|
---|
| 334 | <primary sortas="b-nisdomainname">nisdomainname</primary>
|
---|
| 335 | </indexterm>
|
---|
| 336 | </listitem>
|
---|
| 337 | </varlistentry>
|
---|
[49b241a] | 338 | -->
|
---|
[a3dbd17b] | 339 | <varlistentry id="plipconfig">
|
---|
| 340 | <term><command>plipconfig</command></term>
|
---|
| 341 | <listitem>
|
---|
[b51fe6e] | 342 | <para>
|
---|
| 343 | is used to fine tune the PLIP device parameters, to
|
---|
[4c24eb0a] | 344 | improve its performance
|
---|
[b51fe6e] | 345 | </para>
|
---|
[a3dbd17b] | 346 | <indexterm zone="net-tools plipconfig">
|
---|
| 347 | <primary sortas="b-plipconfig">plipconfig</primary>
|
---|
| 348 | </indexterm>
|
---|
| 349 | </listitem>
|
---|
| 350 | </varlistentry>
|
---|
[8d0d2eb] | 351 |
|
---|
[a3dbd17b] | 352 | <varlistentry id="rarp">
|
---|
| 353 | <term><command>rarp</command></term>
|
---|
| 354 | <listitem>
|
---|
[b51fe6e] | 355 | <para>
|
---|
[4c24eb0a] | 356 | is used to manipulate the kernel's RARP table
|
---|
[b51fe6e] | 357 | </para>
|
---|
[a3dbd17b] | 358 | <indexterm zone="net-tools rarp">
|
---|
| 359 | <primary sortas="b-rarp">rarp</primary>
|
---|
| 360 | </indexterm>
|
---|
| 361 | </listitem>
|
---|
| 362 | </varlistentry>
|
---|
[8d0d2eb] | 363 |
|
---|
[a3dbd17b] | 364 | <varlistentry id="route">
|
---|
| 365 | <term><command>route</command></term>
|
---|
| 366 | <listitem>
|
---|
[b51fe6e] | 367 | <para>
|
---|
[4c24eb0a] | 368 | is used to manipulate the IP routing table
|
---|
[b51fe6e] | 369 | </para>
|
---|
[a3dbd17b] | 370 | <indexterm zone="net-tools route">
|
---|
| 371 | <primary sortas="b-route">route</primary>
|
---|
| 372 | </indexterm>
|
---|
| 373 | </listitem>
|
---|
| 374 | </varlistentry>
|
---|
[8d0d2eb] | 375 |
|
---|
[a3dbd17b] | 376 | <varlistentry id="slattach">
|
---|
| 377 | <term><command>slattach</command></term>
|
---|
| 378 | <listitem>
|
---|
[b51fe6e] | 379 | <para>
|
---|
| 380 | attaches a network interface to a serial line. This allows you to
|
---|
| 381 | use normal terminal lines for point-to-point links to others
|
---|
[4c24eb0a] | 382 | computers
|
---|
[b51fe6e] | 383 | </para>
|
---|
[a3dbd17b] | 384 | <indexterm zone="net-tools slattach">
|
---|
| 385 | <primary sortas="b-slattach">slattach</primary>
|
---|
| 386 | </indexterm>
|
---|
| 387 | </listitem>
|
---|
| 388 | </varlistentry>
|
---|
[49b241a] | 389 | <!--
|
---|
[a3dbd17b] | 390 | <varlistentry id="ypdomainname">
|
---|
| 391 | <term><command>ypdomainname</command></term>
|
---|
| 392 | <listitem>
|
---|
[b51fe6e] | 393 | <para>
|
---|
| 394 | does the same as <command>domainname</command>.
|
---|
| 395 | </para>
|
---|
[a3dbd17b] | 396 | <indexterm zone="net-tools ypdomainname">
|
---|
| 397 | <primary sortas="b-ypdomainname">ypdomainname</primary>
|
---|
| 398 | </indexterm>
|
---|
| 399 | </listitem>
|
---|
| 400 | </varlistentry>
|
---|
[49b241a] | 401 | -->
|
---|
[a3dbd17b] | 402 | </variablelist>
|
---|
[8d0d2eb] | 403 |
|
---|
[a3dbd17b] | 404 | </sect2>
|
---|
[8d0d2eb] | 405 |
|
---|
[0590c1b6] | 406 | </sect1>
|
---|