[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 | <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 |
|
---|
[b51fe6e] | 32 | <para>
|
---|
| 33 | The <application>Net-tools</application> package is a collection
|
---|
| 34 | of programs for controlling the network subsystem of the Linux kernel.
|
---|
| 35 | </para>
|
---|
[8d0d2eb] | 36 |
|
---|
[0984a00] | 37 | &lfs91_checked;
|
---|
[2b8421c] | 38 |
|
---|
[a3dbd17b] | 39 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 40 | <itemizedlist spacing="compact">
|
---|
| 41 | <listitem>
|
---|
[b51fe6e] | 42 | <para>
|
---|
| 43 | Download (HTTP): <ulink url="&net-tools-download-http;"/>
|
---|
| 44 | </para>
|
---|
[a3dbd17b] | 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
[b51fe6e] | 47 | <para>
|
---|
| 48 | Download (FTP): <ulink url="&net-tools-download-ftp;"/>
|
---|
| 49 | </para>
|
---|
[a3dbd17b] | 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
[b51fe6e] | 52 | <para>
|
---|
| 53 | Download MD5 sum: &net-tools-md5sum;
|
---|
| 54 | </para>
|
---|
[a3dbd17b] | 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
[b51fe6e] | 57 | <para>
|
---|
| 58 | Download size: &net-tools-size;
|
---|
| 59 | </para>
|
---|
[a3dbd17b] | 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
[b51fe6e] | 62 | <para>
|
---|
| 63 | Estimated disk space required: &net-tools-buildsize;
|
---|
| 64 | </para>
|
---|
[a3dbd17b] | 65 | </listitem>
|
---|
| 66 | <listitem>
|
---|
[b51fe6e] | 67 | <para>
|
---|
| 68 | Estimated build time: &net-tools-time;
|
---|
| 69 | </para>
|
---|
[2174baa] | 70 | </listitem>
|
---|
[a3dbd17b] | 71 | </itemizedlist>
|
---|
[8d0d2eb] | 72 |
|
---|
[49b241a] | 73 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 74 | <itemizedlist spacing="compact">
|
---|
| 75 | <listitem>
|
---|
| 76 | <para>
|
---|
| 77 | Required patch:
|
---|
| 78 | <ulink url="&patch-root;/net-tools-&net-tools-version;-remove_dups-1.patch"/>
|
---|
| 79 | </para>
|
---|
| 80 | </listitem>
|
---|
| 81 | </itemizedlist>
|
---|
| 82 |
|
---|
| 83 |
|
---|
[061ec9d] | 84 | <para condition="html" role="usernotes">User Notes:
|
---|
| 85 | <ulink url="&blfs-wiki;/net-tools"/></para>
|
---|
| 86 |
|
---|
[a3dbd17b] | 87 | </sect2>
|
---|
[8d0d2eb] | 88 |
|
---|
[a3dbd17b] | 89 | <sect2 role="installation">
|
---|
| 90 | <title>Installation of Net-tools</title>
|
---|
| 91 |
|
---|
[b51fe6e] | 92 | <para id="net-tools-automate-example" xreflabel="Net-tools">
|
---|
| 93 | The instructions below automate the configuration process by piping
|
---|
| 94 | <command>yes</command> to the <command>make config</command> command.
|
---|
| 95 | If you wish to run the interactive configuration process (by changing
|
---|
| 96 | the instruction to just <command>make config</command>), but you are
|
---|
| 97 | not sure how to answer all the questions, then just accept the defaults.
|
---|
| 98 | This will be just fine in the majority of cases. What you're asked here
|
---|
| 99 | is a bunch of questions about which network protocols you've enabled
|
---|
| 100 | in your kernel. The default answers will enable the tools from this
|
---|
| 101 | package to work with the most common protocols: TCP, PPP, and several
|
---|
| 102 | others. You still need to actually enable these protocols in the
|
---|
| 103 | kernel—what you do here is merely tell the package to include
|
---|
| 104 | support for those protocols in its programs, but it's up to the kernel
|
---|
| 105 | to make the protocols available.
|
---|
| 106 | </para>
|
---|
| 107 |
|
---|
| 108 | <note>
|
---|
| 109 | <para>
|
---|
| 110 | This package has several unneeded protocols and hardware device
|
---|
| 111 | specific functions that are obsolete. To only build the minimum needed
|
---|
| 112 | for your system, skip the <command>yes</command> command and answer
|
---|
| 113 | each question interactively. The minimum needed options are 'UNIX
|
---|
| 114 | protocol family' and 'INET (TCP/IP) protocol family'.
|
---|
| 115 | </para>
|
---|
| 116 | </note>
|
---|
| 117 |
|
---|
| 118 | <para>
|
---|
| 119 | The patch below cleans up the installation so that it does not
|
---|
| 120 | overwrite the <application>ifconfig</application> and
|
---|
| 121 | <application>hostname</application> programs that were installed in LFS.
|
---|
| 122 | </para>
|
---|
| 123 |
|
---|
| 124 | <para>
|
---|
| 125 | Install <application>Net-tools</application> by running the
|
---|
| 126 | following commands:
|
---|
| 127 | </para>
|
---|
[a3dbd17b] | 128 |
|
---|
[49b241a] | 129 | <screen><userinput>patch -Np1 -i ../net-tools-&net-tools-version;-remove_dups-1.patch &&
|
---|
[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 |
|
---|
[b51fe6e] | 150 | <para>
|
---|
| 151 | <command>sed -i '/#include <netinet\/ip.h>/d' iptunnel.c</command>:
|
---|
| 152 | This fixes build breakage with linux-4.8 headers.
|
---|
| 153 | </para>
|
---|
[49b241a] | 154 | <!--
|
---|
[b51fe6e] | 155 | <para>
|
---|
| 156 | <command>sed -i -e '/Token/s/y$/n/' config.in</command>: Change the
|
---|
| 157 | default for building obsolete token ring support to no. This is a
|
---|
| 158 | simpler change than changing the location for the token ring headers.
|
---|
[8617f6dd] | 159 | </para>
|
---|
| 160 |
|
---|
[b51fe6e] | 161 | <para>
|
---|
| 162 | <command>sed -i -e '/HAVE_HWSTRIP/s/y$/n/' config.in</command>:
|
---|
| 163 | Removes obsolete Metricom radio support that requires a header no longer
|
---|
| 164 | included in the kernel.
|
---|
| 165 | </para>
|
---|
[49b241a] | 166 | -->
|
---|
[b51fe6e] | 167 | <para>
|
---|
| 168 | <command>yes "" | make config</command>: Piping <command>yes</command>
|
---|
| 169 | to <command>make config</command> skips the interactive configuration and
|
---|
| 170 | accepts the defaults.
|
---|
| 171 | </para>
|
---|
[8d0d2eb] | 172 |
|
---|
[a3dbd17b] | 173 | </sect2>
|
---|
[8d0d2eb] | 174 |
|
---|
[a3dbd17b] | 175 | <sect2 role="content">
|
---|
| 176 | <title>Contents</title>
|
---|
[8d0d2eb] | 177 |
|
---|
[a3dbd17b] | 178 | <segmentedlist>
|
---|
| 179 | <segtitle>Installed Programs</segtitle>
|
---|
| 180 | <segtitle>Installed Libraries</segtitle>
|
---|
| 181 | <segtitle>Installed Directories</segtitle>
|
---|
[8d0d2eb] | 182 |
|
---|
[a3dbd17b] | 183 | <seglistitem>
|
---|
[f3429309] | 184 | <seg>arp,
|
---|
[49b241a] | 185 | ipmaddr, iptunnel, mii-tool, nameif, netstat,
|
---|
| 186 | plipconfig, rarp, route, and slattach
|
---|
| 187 | </seg>
|
---|
[a3dbd17b] | 188 | <seg>None</seg>
|
---|
[46441976] | 189 | <seg>None</seg>
|
---|
[a3dbd17b] | 190 | </seglistitem>
|
---|
| 191 | </segmentedlist>
|
---|
[8d0d2eb] | 192 |
|
---|
[a3dbd17b] | 193 | <variablelist>
|
---|
| 194 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 195 | <?dbfo list-presentation="list"?>
|
---|
| 196 | <?dbhtml list-presentation="table"?>
|
---|
[8d0d2eb] | 197 |
|
---|
[a3dbd17b] | 198 | <varlistentry id="arp">
|
---|
| 199 | <term><command>arp</command></term>
|
---|
| 200 | <listitem>
|
---|
[b51fe6e] | 201 | <para>
|
---|
| 202 | is used to manipulate the kernel's ARP cache, usually
|
---|
| 203 | to add or delete an entry, or to dump the entire cache.
|
---|
| 204 | </para>
|
---|
[a3dbd17b] | 205 | <indexterm zone="net-tools arp">
|
---|
| 206 | <primary sortas="b-arp">arp</primary>
|
---|
| 207 | </indexterm>
|
---|
| 208 | </listitem>
|
---|
| 209 | </varlistentry>
|
---|
[49b241a] | 210 | <!--
|
---|
[a3dbd17b] | 211 | <varlistentry id="dnsdomainname">
|
---|
| 212 | <term><command>dnsdomainname</command></term>
|
---|
| 213 | <listitem>
|
---|
[b51fe6e] | 214 | <para>
|
---|
| 215 | reports the system's DNS domain name.
|
---|
| 216 | </para>
|
---|
[a3dbd17b] | 217 | <indexterm zone="net-tools dnsdomainname">
|
---|
| 218 | <primary sortas="b-dnsdomainname">dnsdomainname</primary>
|
---|
| 219 | </indexterm>
|
---|
| 220 | </listitem>
|
---|
| 221 | </varlistentry>
|
---|
[8d0d2eb] | 222 |
|
---|
[a3dbd17b] | 223 | <varlistentry id="domainname">
|
---|
| 224 | <term><command>domainname</command></term>
|
---|
| 225 | <listitem>
|
---|
[b51fe6e] | 226 | <para>
|
---|
| 227 | reports or sets the system's NIS/YP domain name.
|
---|
| 228 | </para>
|
---|
[a3dbd17b] | 229 | <indexterm zone="net-tools domainname">
|
---|
| 230 | <primary sortas="b-domainname">domainname</primary>
|
---|
| 231 | </indexterm>
|
---|
| 232 | </listitem>
|
---|
| 233 | </varlistentry>
|
---|
[8d0d2eb] | 234 |
|
---|
[a3dbd17b] | 235 | <varlistentry id="hostname">
|
---|
| 236 | <term><command>hostname</command></term>
|
---|
| 237 | <listitem>
|
---|
[b51fe6e] | 238 | <para>
|
---|
| 239 | reports or sets the name of the current host system.
|
---|
| 240 | </para>
|
---|
[a3dbd17b] | 241 | <indexterm zone="net-tools hostname">
|
---|
| 242 | <primary sortas="b-hostname">hostname</primary>
|
---|
| 243 | </indexterm>
|
---|
| 244 | </listitem>
|
---|
| 245 | </varlistentry>
|
---|
[8d0d2eb] | 246 |
|
---|
[a3dbd17b] | 247 | <varlistentry id="ifconfig">
|
---|
| 248 | <term><command>ifconfig</command></term>
|
---|
| 249 | <listitem>
|
---|
[b51fe6e] | 250 | <para>
|
---|
| 251 | is the main utility for configuring network interfaces.
|
---|
| 252 | </para>
|
---|
[a3dbd17b] | 253 | <indexterm zone="net-tools ifconfig">
|
---|
| 254 | <primary sortas="b-ifconfig">ifconfig</primary>
|
---|
| 255 | </indexterm>
|
---|
| 256 | </listitem>
|
---|
| 257 | </varlistentry>
|
---|
[49b241a] | 258 | -->
|
---|
[a3dbd17b] | 259 | <varlistentry id="ipmaddr">
|
---|
| 260 | <term><command>ipmaddr</command></term>
|
---|
| 261 | <listitem>
|
---|
[b51fe6e] | 262 | <para>
|
---|
| 263 | adds, deletes and shows an interface's multicast addresses.
|
---|
| 264 | </para>
|
---|
[a3dbd17b] | 265 | <indexterm zone="net-tools ipmaddr">
|
---|
| 266 | <primary sortas="b-ipmaddr">ipmaddr</primary>
|
---|
| 267 | </indexterm>
|
---|
| 268 | </listitem>
|
---|
| 269 | </varlistentry>
|
---|
[8d0d2eb] | 270 |
|
---|
[a3dbd17b] | 271 | <varlistentry id="iptunnel">
|
---|
| 272 | <term><command>iptunnel</command></term>
|
---|
| 273 | <listitem>
|
---|
[b51fe6e] | 274 | <para>
|
---|
| 275 | adds, changes, deletes and shows an interface's tunnels.
|
---|
| 276 | </para>
|
---|
[a3dbd17b] | 277 | <indexterm zone="net-tools iptunnel">
|
---|
| 278 | <primary sortas="b-iptunnel">iptunnel</primary>
|
---|
| 279 | </indexterm>
|
---|
| 280 | </listitem>
|
---|
| 281 | </varlistentry>
|
---|
[8d0d2eb] | 282 |
|
---|
[a3dbd17b] | 283 | <varlistentry id="mii-tool">
|
---|
| 284 | <term><command>mii-tool</command></term>
|
---|
| 285 | <listitem>
|
---|
[b51fe6e] | 286 | <para>
|
---|
| 287 | checks or sets the status of a network interface's Media
|
---|
| 288 | Independent Interface (MII) unit.
|
---|
| 289 | </para>
|
---|
[a3dbd17b] | 290 | <indexterm zone="net-tools mii-tool">
|
---|
| 291 | <primary sortas="b-mii-tool">mii-tool</primary>
|
---|
| 292 | </indexterm>
|
---|
| 293 | </listitem>
|
---|
| 294 | </varlistentry>
|
---|
[8d0d2eb] | 295 |
|
---|
[a3dbd17b] | 296 | <varlistentry id="nameif">
|
---|
| 297 | <term><command>nameif</command></term>
|
---|
| 298 | <listitem>
|
---|
[b51fe6e] | 299 | <para>
|
---|
| 300 | names network interfaces based on MAC addresses.
|
---|
| 301 | </para>
|
---|
[a3dbd17b] | 302 | <indexterm zone="net-tools nameif">
|
---|
| 303 | <primary sortas="b-nameif">nameif</primary>
|
---|
| 304 | </indexterm>
|
---|
| 305 | </listitem>
|
---|
| 306 | </varlistentry>
|
---|
[8d0d2eb] | 307 |
|
---|
[a3dbd17b] | 308 | <varlistentry id="netstat">
|
---|
| 309 | <term><command>netstat</command></term>
|
---|
| 310 | <listitem>
|
---|
[b51fe6e] | 311 | <para>
|
---|
| 312 | is used to report network connections, routing tables, and
|
---|
| 313 | interface statistics.
|
---|
| 314 | </para>
|
---|
[a3dbd17b] | 315 | <indexterm zone="net-tools netstat">
|
---|
| 316 | <primary sortas="b-netstat">netstat</primary>
|
---|
| 317 | </indexterm>
|
---|
| 318 | </listitem>
|
---|
| 319 | </varlistentry>
|
---|
[49b241a] | 320 | <!--
|
---|
[a3dbd17b] | 321 | <varlistentry id="nisdomainname">
|
---|
| 322 | <term><command>nisdomainname</command></term>
|
---|
| 323 | <listitem>
|
---|
[b51fe6e] | 324 | <para>
|
---|
| 325 | does the same as <command>domainname</command>.
|
---|
| 326 | </para>
|
---|
[a3dbd17b] | 327 | <indexterm zone="net-tools nisdomainname">
|
---|
| 328 | <primary sortas="b-nisdomainname">nisdomainname</primary>
|
---|
| 329 | </indexterm>
|
---|
| 330 | </listitem>
|
---|
| 331 | </varlistentry>
|
---|
[49b241a] | 332 | -->
|
---|
[a3dbd17b] | 333 | <varlistentry id="plipconfig">
|
---|
| 334 | <term><command>plipconfig</command></term>
|
---|
| 335 | <listitem>
|
---|
[b51fe6e] | 336 | <para>
|
---|
| 337 | is used to fine tune the PLIP device parameters, to
|
---|
| 338 | improve its performance.
|
---|
| 339 | </para>
|
---|
[a3dbd17b] | 340 | <indexterm zone="net-tools plipconfig">
|
---|
| 341 | <primary sortas="b-plipconfig">plipconfig</primary>
|
---|
| 342 | </indexterm>
|
---|
| 343 | </listitem>
|
---|
| 344 | </varlistentry>
|
---|
[8d0d2eb] | 345 |
|
---|
[a3dbd17b] | 346 | <varlistentry id="rarp">
|
---|
| 347 | <term><command>rarp</command></term>
|
---|
| 348 | <listitem>
|
---|
[b51fe6e] | 349 | <para>
|
---|
| 350 | is used to manipulate the kernel's RARP table.
|
---|
| 351 | </para>
|
---|
[a3dbd17b] | 352 | <indexterm zone="net-tools rarp">
|
---|
| 353 | <primary sortas="b-rarp">rarp</primary>
|
---|
| 354 | </indexterm>
|
---|
| 355 | </listitem>
|
---|
| 356 | </varlistentry>
|
---|
[8d0d2eb] | 357 |
|
---|
[a3dbd17b] | 358 | <varlistentry id="route">
|
---|
| 359 | <term><command>route</command></term>
|
---|
| 360 | <listitem>
|
---|
[b51fe6e] | 361 | <para>
|
---|
| 362 | is used to manipulate the IP routing table.
|
---|
| 363 | </para>
|
---|
[a3dbd17b] | 364 | <indexterm zone="net-tools route">
|
---|
| 365 | <primary sortas="b-route">route</primary>
|
---|
| 366 | </indexterm>
|
---|
| 367 | </listitem>
|
---|
| 368 | </varlistentry>
|
---|
[8d0d2eb] | 369 |
|
---|
[a3dbd17b] | 370 | <varlistentry id="slattach">
|
---|
| 371 | <term><command>slattach</command></term>
|
---|
| 372 | <listitem>
|
---|
[b51fe6e] | 373 | <para>
|
---|
| 374 | attaches a network interface to a serial line. This allows you to
|
---|
| 375 | use normal terminal lines for point-to-point links to others
|
---|
| 376 | computers.
|
---|
| 377 | </para>
|
---|
[a3dbd17b] | 378 | <indexterm zone="net-tools slattach">
|
---|
| 379 | <primary sortas="b-slattach">slattach</primary>
|
---|
| 380 | </indexterm>
|
---|
| 381 | </listitem>
|
---|
| 382 | </varlistentry>
|
---|
[49b241a] | 383 | <!--
|
---|
[a3dbd17b] | 384 | <varlistentry id="ypdomainname">
|
---|
| 385 | <term><command>ypdomainname</command></term>
|
---|
| 386 | <listitem>
|
---|
[b51fe6e] | 387 | <para>
|
---|
| 388 | does the same as <command>domainname</command>.
|
---|
| 389 | </para>
|
---|
[a3dbd17b] | 390 | <indexterm zone="net-tools ypdomainname">
|
---|
| 391 | <primary sortas="b-ypdomainname">ypdomainname</primary>
|
---|
| 392 | </indexterm>
|
---|
| 393 | </listitem>
|
---|
| 394 | </varlistentry>
|
---|
[49b241a] | 395 | -->
|
---|
[a3dbd17b] | 396 | </variablelist>
|
---|
[8d0d2eb] | 397 |
|
---|
[a3dbd17b] | 398 | </sect2>
|
---|
[8d0d2eb] | 399 |
|
---|
[0590c1b6] | 400 | </sect1>
|
---|