[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 |
|
---|
[9dfc02f] | 46 | <para>Net-tools has issues with the Linux 2.6 kernel series - fix these issues
|
---|
| 47 | by applying the following patch:</para>
|
---|
| 48 |
|
---|
[c8ba565] | 49 | <screen><userinput>patch -Np1 -i ../net-tools-&net-tools-version;-kernel-headers-1.patch</userinput></screen>
|
---|
[9dfc02f] | 50 |
|
---|
[673b0d8] | 51 | <para>Now prepare Net-tools for compilation (if you intend to accept the
|
---|
| 52 | defaults, you can skip all the questions by running <userinput>yes "" |
|
---|
| 53 | make config</userinput> instead):</para>
|
---|
| 54 |
|
---|
| 55 | <screen><userinput>make config</userinput></screen>
|
---|
| 56 |
|
---|
| 57 | <para>Compile the package:</para>
|
---|
| 58 |
|
---|
| 59 | <screen><userinput>make</userinput></screen>
|
---|
| 60 |
|
---|
| 61 | <para>Now install it:</para>
|
---|
| 62 |
|
---|
| 63 | <screen><userinput>make update</userinput></screen>
|
---|
| 64 |
|
---|
| 65 | </sect2>
|
---|
| 66 |
|
---|
| 67 |
|
---|
[c6cb3aa] | 68 | <sect2 id="contents-net" role="content"><title>Contents of Net-tools</title>
|
---|
[673b0d8] | 69 |
|
---|
[c6cb3aa] | 70 | <segmentedlist>
|
---|
| 71 | <segtitle>Installed programs</segtitle>
|
---|
| 72 | <seglistitem><seg>arp, dnsdomainname (link to hostname), domainname (link to
|
---|
| 73 | hostname), hostname, ifconfig, nameif, netstat, nisdomainname (link to hostname),
|
---|
| 74 | plipconfig, rarp, route, slattach and ypdomainname (link to hostname)</seg></seglistitem>
|
---|
| 75 | </segmentedlist>
|
---|
[673b0d8] | 76 |
|
---|
[c6cb3aa] | 77 | <variablelist><title>Short descriptions</title>
|
---|
[673b0d8] | 78 |
|
---|
[b8a819f] | 79 | <varlistentry id="arp">
|
---|
| 80 | <term><command>arp</command></term>
|
---|
[c6cb3aa] | 81 | <listitem>
|
---|
[673b0d8] | 82 | <indexterm zone="ch-system-net-tools arp"><primary sortas="b-arp">arp</primary></indexterm>
|
---|
[c6cb3aa] | 83 | <para>is used to manipulate the kernel's ARP cache,
|
---|
[673b0d8] | 84 | usually to add or delete an entry, or to dump the entire cache.</para>
|
---|
[c6cb3aa] | 85 | </listitem>
|
---|
| 86 | </varlistentry>
|
---|
[673b0d8] | 87 |
|
---|
[b8a819f] | 88 | <varlistentry id="dnsdomainname">
|
---|
| 89 | <term><command>dnsdomainname</command></term>
|
---|
[c6cb3aa] | 90 | <listitem>
|
---|
[673b0d8] | 91 | <indexterm zone="ch-system-net-tools dnsdomainname"><primary sortas="b-dnsdomainname">dnsdomainname</primary></indexterm>
|
---|
[c6cb3aa] | 92 | <para>reports the system's DNS (Domain Name Server) domain name.</para>
|
---|
| 93 | </listitem>
|
---|
| 94 | </varlistentry>
|
---|
[673b0d8] | 95 |
|
---|
[b8a819f] | 96 | <varlistentry id="domainname">
|
---|
| 97 | <term><command>domainname</command></term>
|
---|
[c6cb3aa] | 98 | <listitem>
|
---|
[673b0d8] | 99 | <indexterm zone="ch-system-net-tools domainname"><primary sortas="b-domainname">domainname</primary></indexterm>
|
---|
[c6cb3aa] | 100 | <para>reports or sets the system's NIS/YP domain name.</para>
|
---|
| 101 | </listitem>
|
---|
| 102 | </varlistentry>
|
---|
[673b0d8] | 103 |
|
---|
[b8a819f] | 104 | <varlistentry id="hostname">
|
---|
| 105 | <term><command>hostname</command></term>
|
---|
[c6cb3aa] | 106 | <listitem>
|
---|
[673b0d8] | 107 | <indexterm zone="ch-system-net-tools hostname"><primary sortas="b-hostname">hostname</primary></indexterm>
|
---|
[c6cb3aa] | 108 | <para>reports or sets the name of the current host system.</para>
|
---|
| 109 | </listitem>
|
---|
| 110 | </varlistentry>
|
---|
[673b0d8] | 111 |
|
---|
[b8a819f] | 112 | <varlistentry id="ifconfig">
|
---|
| 113 | <term><command>ifconfig</command></term>
|
---|
[c6cb3aa] | 114 | <listitem>
|
---|
[673b0d8] | 115 | <indexterm zone="ch-system-net-tools ifconfig"><primary sortas="b-ifconfig">ifconfig</primary></indexterm>
|
---|
[c6cb3aa] | 116 | <para>is the main utility for configuring network interfaces.</para>
|
---|
| 117 | </listitem>
|
---|
| 118 | </varlistentry>
|
---|
[673b0d8] | 119 |
|
---|
[b8a819f] | 120 | <varlistentry id="nameif">
|
---|
| 121 | <term><command>nameif</command></term>
|
---|
[c6cb3aa] | 122 | <listitem>
|
---|
[673b0d8] | 123 | <indexterm zone="ch-system-net-tools nameif"><primary sortas="b-nameif">nameif</primary></indexterm>
|
---|
[c6cb3aa] | 124 | <para>names network interfaces based on MAC addresses.</para>
|
---|
| 125 | </listitem>
|
---|
| 126 | </varlistentry>
|
---|
[673b0d8] | 127 |
|
---|
[b8a819f] | 128 | <varlistentry id="netstat">
|
---|
| 129 | <term><command>netstat</command></term>
|
---|
[c6cb3aa] | 130 | <listitem>
|
---|
[673b0d8] | 131 | <indexterm zone="ch-system-net-tools netstat"><primary sortas="b-netstat">netstat</primary></indexterm>
|
---|
[c6cb3aa] | 132 | <para>is used to report network connections, routing tables, and interface
|
---|
| 133 | statistics..</para>
|
---|
| 134 | </listitem>
|
---|
| 135 | </varlistentry>
|
---|
| 136 |
|
---|
[b8a819f] | 137 | <varlistentry id="nisdomainname">
|
---|
| 138 | <term><command>nisdomainname</command></term>
|
---|
[c6cb3aa] | 139 | <listitem>
|
---|
[673b0d8] | 140 | <indexterm zone="ch-system-net-tools nisdomainname"><primary sortas="b-nisdomainname">nisdomainname</primary></indexterm>
|
---|
[c6cb3aa] | 141 | <para>does the same as domainname.</para>
|
---|
| 142 | </listitem>
|
---|
| 143 | </varlistentry>
|
---|
[673b0d8] | 144 |
|
---|
[b8a819f] | 145 | <varlistentry id="plipconfig">
|
---|
| 146 | <term><command>plipconfig</command></term>
|
---|
[c6cb3aa] | 147 | <listitem>
|
---|
[673b0d8] | 148 | <indexterm zone="ch-system-net-tools plipconfig"><primary sortas="b-plipconfig">plipconfig</primary></indexterm>
|
---|
[c6cb3aa] | 149 | <para>is used to fine tune the PLIP device parameters, to improve its performance.</para>
|
---|
| 150 | </listitem>
|
---|
| 151 | </varlistentry>
|
---|
[673b0d8] | 152 |
|
---|
[b8a819f] | 153 | <varlistentry id="rarp">
|
---|
| 154 | <term><command>rarp</command></term>
|
---|
[c6cb3aa] | 155 | <listitem>
|
---|
[673b0d8] | 156 | <indexterm zone="ch-system-net-tools rarp"><primary sortas="b-rarp">rarp</primary></indexterm>
|
---|
[c6cb3aa] | 157 | <para>is used to manipulate the kernel's RARP table.</para>
|
---|
| 158 | </listitem>
|
---|
| 159 | </varlistentry>
|
---|
[673b0d8] | 160 |
|
---|
[b8a819f] | 161 | <varlistentry id="route">
|
---|
| 162 | <term><command>route</command></term>
|
---|
[c6cb3aa] | 163 | <listitem>
|
---|
[673b0d8] | 164 | <indexterm zone="ch-system-net-tools route"><primary sortas="b-route">route</primary></indexterm>
|
---|
[c6cb3aa] | 165 | <para>is used to manipulate the IP routing table.</para>
|
---|
| 166 | </listitem>
|
---|
| 167 | </varlistentry>
|
---|
[673b0d8] | 168 |
|
---|
[b8a819f] | 169 | <varlistentry id="slattach">
|
---|
| 170 | <term><command>slattach</command></term>
|
---|
[c6cb3aa] | 171 | <listitem>
|
---|
[673b0d8] | 172 | <indexterm zone="ch-system-net-tools slattach"><primary sortas="b-slattach">slattach</primary></indexterm>
|
---|
[c6cb3aa] | 173 | <para>attaches a network interface to a serial line. This allows you to use normal
|
---|
| 174 | terminal lines for point-to-point links to other computers.</para>
|
---|
| 175 | </listitem>
|
---|
| 176 | </varlistentry>
|
---|
| 177 |
|
---|
[b8a819f] | 178 | <varlistentry id="ypdomainname">
|
---|
| 179 | <term><command>ypdomainname</command></term>
|
---|
[c6cb3aa] | 180 | <listitem>
|
---|
[673b0d8] | 181 | <indexterm zone="ch-system-net-tools ypdomainname"><primary sortas="b-ypdomainname">ypdomainname</primary></indexterm>
|
---|
[c6cb3aa] | 182 | <para>does the same as domainname.</para>
|
---|
| 183 | </listitem>
|
---|
| 184 | </varlistentry>
|
---|
| 185 | </variablelist>
|
---|
[673b0d8] | 186 |
|
---|
| 187 | </sect2>
|
---|
| 188 |
|
---|
| 189 | </sect1>
|
---|