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