[673b0d8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
| 3 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 4 | %general-entities;
|
---|
| 5 | ]>
|
---|
[a001133] | 6 | <sect1 id="ch-system-net-tools" xreflabel="Net-tools" role="wrap">
|
---|
[673b0d8] | 7 | <title>Net-tools-&net-tools-version;</title>
|
---|
| 8 | <?dbhtml filename="net-tools.html"?>
|
---|
| 9 |
|
---|
| 10 | <indexterm zone="ch-system-net-tools"><primary sortas="a-Net-tools">Net-tools</primary></indexterm>
|
---|
| 11 |
|
---|
[a001133] | 12 | <sect2 role="package"><title/>
|
---|
[673b0d8] | 13 | <para>The Net-tools package contains programs for basic networking.</para>
|
---|
| 14 |
|
---|
[a001133] | 15 | <segmentedlist>
|
---|
| 16 | <segtitle>&buildtime;</segtitle>
|
---|
| 17 | <segtitle>&diskspace;</segtitle>
|
---|
| 18 | <seglistitem><seg>0.1 SBU</seg><seg>9.4 MB</seg></seglistitem>
|
---|
| 19 | </segmentedlist>
|
---|
[673b0d8] | 20 |
|
---|
[a001133] | 21 | <segmentedlist>
|
---|
| 22 | <segtitle>Net-tools installation depends on</segtitle>
|
---|
| 23 | <seglistitem><seg>Bash, Binutils, Coreutils, GCC,
|
---|
| 24 | Glibc, Make</seg></seglistitem>
|
---|
| 25 | </segmentedlist>
|
---|
| 26 | </sect2>
|
---|
[673b0d8] | 27 |
|
---|
[a001133] | 28 | <sect2 role="installation">
|
---|
[673b0d8] | 29 | <title>Installation of Net-tools</title>
|
---|
| 30 |
|
---|
| 31 | <para>If you don't know what to answer to all the questions asked during the
|
---|
| 32 | <command>make config</command> phase below, then just accept the defaults.
|
---|
| 33 | This will be just fine in the majority of cases. What you're asked here is a
|
---|
| 34 | bunch of questions about which network protocols you've enabled in your
|
---|
| 35 | kernel. The default answers will enable the tools from this package to work
|
---|
| 36 | with the most common protocols: TCP, PPP, and several others. You still need
|
---|
| 37 | to actually enable these protocols in the kernel -- what you do here is merely
|
---|
| 38 | telling the package to include support for those protocols in its programs,
|
---|
| 39 | but it's up to the kernel to make the protocols available.</para>
|
---|
| 40 |
|
---|
[c8ba565] | 41 | <para>This package also has issues with being compiled by GCC 3.4, which we
|
---|
| 42 | fix by applying the following patch:</para>
|
---|
[673b0d8] | 43 |
|
---|
[c8ba565] | 44 | <screen><userinput>patch -Np1 -i ../net-tools-&net-tools-version;-gcc34-2.patch</userinput></screen>
|
---|
[673b0d8] | 45 |
|
---|
[aa242b1] | 46 | <para>Fix an issue that arises when building against Linux 2.6:</para>
|
---|
[9dfc02f] | 47 |
|
---|
[aa242b1] | 48 | <screen><userinput>sed -i 's@x25_address@struct &@' lib/x25_sr.c</userinput></screen>
|
---|
[9dfc02f] | 49 |
|
---|
[673b0d8] | 50 | <para>Now prepare Net-tools for compilation (if you intend to accept the
|
---|
| 51 | defaults, you can skip all the questions by running <userinput>yes "" |
|
---|
| 52 | make config</userinput> instead):</para>
|
---|
| 53 |
|
---|
| 54 | <screen><userinput>make config</userinput></screen>
|
---|
| 55 |
|
---|
| 56 | <para>Compile the package:</para>
|
---|
| 57 |
|
---|
| 58 | <screen><userinput>make</userinput></screen>
|
---|
| 59 |
|
---|
| 60 | <para>Now install it:</para>
|
---|
| 61 |
|
---|
| 62 | <screen><userinput>make update</userinput></screen>
|
---|
| 63 |
|
---|
| 64 | </sect2>
|
---|
| 65 |
|
---|
| 66 |
|
---|
[c6cb3aa] | 67 | <sect2 id="contents-net" role="content"><title>Contents of Net-tools</title>
|
---|
[673b0d8] | 68 |
|
---|
[c6cb3aa] | 69 | <segmentedlist>
|
---|
| 70 | <segtitle>Installed programs</segtitle>
|
---|
| 71 | <seglistitem><seg>arp, dnsdomainname (link to hostname), domainname (link to
|
---|
| 72 | hostname), hostname, ifconfig, nameif, netstat, nisdomainname (link to hostname),
|
---|
| 73 | plipconfig, rarp, route, slattach and ypdomainname (link to hostname)</seg></seglistitem>
|
---|
| 74 | </segmentedlist>
|
---|
[673b0d8] | 75 |
|
---|
[c6cb3aa] | 76 | <variablelist><title>Short descriptions</title>
|
---|
[673b0d8] | 77 |
|
---|
[b8a819f] | 78 | <varlistentry id="arp">
|
---|
| 79 | <term><command>arp</command></term>
|
---|
[c6cb3aa] | 80 | <listitem>
|
---|
[673b0d8] | 81 | <indexterm zone="ch-system-net-tools arp"><primary sortas="b-arp">arp</primary></indexterm>
|
---|
[c6cb3aa] | 82 | <para>is used to manipulate the kernel's ARP cache,
|
---|
[673b0d8] | 83 | usually to add or delete an entry, or to dump the entire cache.</para>
|
---|
[c6cb3aa] | 84 | </listitem>
|
---|
| 85 | </varlistentry>
|
---|
[673b0d8] | 86 |
|
---|
[b8a819f] | 87 | <varlistentry id="dnsdomainname">
|
---|
| 88 | <term><command>dnsdomainname</command></term>
|
---|
[c6cb3aa] | 89 | <listitem>
|
---|
[673b0d8] | 90 | <indexterm zone="ch-system-net-tools dnsdomainname"><primary sortas="b-dnsdomainname">dnsdomainname</primary></indexterm>
|
---|
[c6cb3aa] | 91 | <para>reports the system's DNS (Domain Name Server) domain name.</para>
|
---|
| 92 | </listitem>
|
---|
| 93 | </varlistentry>
|
---|
[673b0d8] | 94 |
|
---|
[b8a819f] | 95 | <varlistentry id="domainname">
|
---|
| 96 | <term><command>domainname</command></term>
|
---|
[c6cb3aa] | 97 | <listitem>
|
---|
[673b0d8] | 98 | <indexterm zone="ch-system-net-tools domainname"><primary sortas="b-domainname">domainname</primary></indexterm>
|
---|
[c6cb3aa] | 99 | <para>reports or sets the system's NIS/YP domain name.</para>
|
---|
| 100 | </listitem>
|
---|
| 101 | </varlistentry>
|
---|
[673b0d8] | 102 |
|
---|
[b8a819f] | 103 | <varlistentry id="hostname">
|
---|
| 104 | <term><command>hostname</command></term>
|
---|
[c6cb3aa] | 105 | <listitem>
|
---|
[673b0d8] | 106 | <indexterm zone="ch-system-net-tools hostname"><primary sortas="b-hostname">hostname</primary></indexterm>
|
---|
[c6cb3aa] | 107 | <para>reports or sets the name of the current host system.</para>
|
---|
| 108 | </listitem>
|
---|
| 109 | </varlistentry>
|
---|
[673b0d8] | 110 |
|
---|
[b8a819f] | 111 | <varlistentry id="ifconfig">
|
---|
| 112 | <term><command>ifconfig</command></term>
|
---|
[c6cb3aa] | 113 | <listitem>
|
---|
[673b0d8] | 114 | <indexterm zone="ch-system-net-tools ifconfig"><primary sortas="b-ifconfig">ifconfig</primary></indexterm>
|
---|
[c6cb3aa] | 115 | <para>is the main utility for configuring network interfaces.</para>
|
---|
| 116 | </listitem>
|
---|
| 117 | </varlistentry>
|
---|
[673b0d8] | 118 |
|
---|
[b8a819f] | 119 | <varlistentry id="nameif">
|
---|
| 120 | <term><command>nameif</command></term>
|
---|
[c6cb3aa] | 121 | <listitem>
|
---|
[673b0d8] | 122 | <indexterm zone="ch-system-net-tools nameif"><primary sortas="b-nameif">nameif</primary></indexterm>
|
---|
[c6cb3aa] | 123 | <para>names network interfaces based on MAC addresses.</para>
|
---|
| 124 | </listitem>
|
---|
| 125 | </varlistentry>
|
---|
[673b0d8] | 126 |
|
---|
[b8a819f] | 127 | <varlistentry id="netstat">
|
---|
| 128 | <term><command>netstat</command></term>
|
---|
[c6cb3aa] | 129 | <listitem>
|
---|
[673b0d8] | 130 | <indexterm zone="ch-system-net-tools netstat"><primary sortas="b-netstat">netstat</primary></indexterm>
|
---|
[c6cb3aa] | 131 | <para>is used to report network connections, routing tables, and interface
|
---|
| 132 | statistics..</para>
|
---|
| 133 | </listitem>
|
---|
| 134 | </varlistentry>
|
---|
| 135 |
|
---|
[b8a819f] | 136 | <varlistentry id="nisdomainname">
|
---|
| 137 | <term><command>nisdomainname</command></term>
|
---|
[c6cb3aa] | 138 | <listitem>
|
---|
[673b0d8] | 139 | <indexterm zone="ch-system-net-tools nisdomainname"><primary sortas="b-nisdomainname">nisdomainname</primary></indexterm>
|
---|
[8ad7980] | 140 | <para>does the same as <command>domainname</command>.</para>
|
---|
[c6cb3aa] | 141 | </listitem>
|
---|
| 142 | </varlistentry>
|
---|
[673b0d8] | 143 |
|
---|
[b8a819f] | 144 | <varlistentry id="plipconfig">
|
---|
| 145 | <term><command>plipconfig</command></term>
|
---|
[c6cb3aa] | 146 | <listitem>
|
---|
[673b0d8] | 147 | <indexterm zone="ch-system-net-tools plipconfig"><primary sortas="b-plipconfig">plipconfig</primary></indexterm>
|
---|
[c6cb3aa] | 148 | <para>is used to fine tune the PLIP device parameters, to improve its performance.</para>
|
---|
| 149 | </listitem>
|
---|
| 150 | </varlistentry>
|
---|
[673b0d8] | 151 |
|
---|
[b8a819f] | 152 | <varlistentry id="rarp">
|
---|
| 153 | <term><command>rarp</command></term>
|
---|
[c6cb3aa] | 154 | <listitem>
|
---|
[673b0d8] | 155 | <indexterm zone="ch-system-net-tools rarp"><primary sortas="b-rarp">rarp</primary></indexterm>
|
---|
[c6cb3aa] | 156 | <para>is used to manipulate the kernel's RARP table.</para>
|
---|
| 157 | </listitem>
|
---|
| 158 | </varlistentry>
|
---|
[673b0d8] | 159 |
|
---|
[b8a819f] | 160 | <varlistentry id="route">
|
---|
| 161 | <term><command>route</command></term>
|
---|
[c6cb3aa] | 162 | <listitem>
|
---|
[673b0d8] | 163 | <indexterm zone="ch-system-net-tools route"><primary sortas="b-route">route</primary></indexterm>
|
---|
[c6cb3aa] | 164 | <para>is used to manipulate the IP routing table.</para>
|
---|
| 165 | </listitem>
|
---|
| 166 | </varlistentry>
|
---|
[673b0d8] | 167 |
|
---|
[b8a819f] | 168 | <varlistentry id="slattach">
|
---|
| 169 | <term><command>slattach</command></term>
|
---|
[c6cb3aa] | 170 | <listitem>
|
---|
[673b0d8] | 171 | <indexterm zone="ch-system-net-tools slattach"><primary sortas="b-slattach">slattach</primary></indexterm>
|
---|
[c6cb3aa] | 172 | <para>attaches a network interface to a serial line. This allows you to use normal
|
---|
| 173 | terminal lines for point-to-point links to other computers.</para>
|
---|
| 174 | </listitem>
|
---|
| 175 | </varlistentry>
|
---|
| 176 |
|
---|
[b8a819f] | 177 | <varlistentry id="ypdomainname">
|
---|
| 178 | <term><command>ypdomainname</command></term>
|
---|
[c6cb3aa] | 179 | <listitem>
|
---|
[673b0d8] | 180 | <indexterm zone="ch-system-net-tools ypdomainname"><primary sortas="b-ypdomainname">ypdomainname</primary></indexterm>
|
---|
[8ad7980] | 181 | <para>does the same as <command>domainname</command>.</para>
|
---|
[c6cb3aa] | 182 | </listitem>
|
---|
| 183 | </varlistentry>
|
---|
| 184 | </variablelist>
|
---|
[673b0d8] | 185 |
|
---|
| 186 | </sect2>
|
---|
| 187 |
|
---|
| 188 | </sect1>
|
---|