1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY net-tools-download-http "http://www.tazenda.demon.co.uk/phil/net-tools/net-tools-&net-tools-version;.tar.bz2">
|
---|
8 | <!ENTITY net-tools-download-ftp "ftp://ftp.ibiblio.org/pub/Linux/distributions/rootlinux/rootlinux-1.3/source/base/net-tools/net-tools-&net-tools-version;.tar.gz">
|
---|
9 | <!ENTITY net-tools-md5sum-http "888774accab40217dde927e21979c165">
|
---|
10 | <!ENTITY net-tools-md5sum-ftp "e1e83a4d4cdd72d35bcf90d76a16206f">
|
---|
11 | <!ENTITY net-tools-size "194 KB">
|
---|
12 | <!ENTITY net-tools-buildsize "4.3 MB">
|
---|
13 | <!ENTITY net-tools-time "0.10 SBU">
|
---|
14 | <!ENTITY lfs-coreutils-version "5.2.1">
|
---|
15 | ]>
|
---|
16 |
|
---|
17 | <sect1 id="net-tools" xreflabel="Net-tools-&net-tools-version;">
|
---|
18 | <sect1info>
|
---|
19 | <othername>$LastChangedBy$</othername>
|
---|
20 | <date>$Date$</date>
|
---|
21 | </sect1info>
|
---|
22 | <?dbhtml filename="net-tools.html"?>
|
---|
23 | <title>Net-tools-&net-tools-version;</title>
|
---|
24 |
|
---|
25 | <sect2>
|
---|
26 | <title>Introduction to <application>Net-tools</application></title>
|
---|
27 |
|
---|
28 | <para>The <application>Net-tools</application> package is a collection
|
---|
29 | of programs for controlling the network subsystem of the Linux
|
---|
30 | kernel.</para>
|
---|
31 |
|
---|
32 | <sect3><title>Package information</title>
|
---|
33 | <itemizedlist spacing='compact'>
|
---|
34 | <listitem><para>Download (HTTP):
|
---|
35 | <ulink url="&net-tools-download-http;"/></para></listitem>
|
---|
36 | <listitem><para>Download (FTP):
|
---|
37 | <ulink url="&net-tools-download-ftp;"/></para></listitem>
|
---|
38 | <listitem><para>Download MD5 sum (HTTP):
|
---|
39 | &net-tools-md5sum-http;</para></listitem>
|
---|
40 | <listitem><para>Download MD5 sum (FTP):
|
---|
41 | &net-tools-md5sum-ftp;</para></listitem>
|
---|
42 | <listitem><para>Download size: &net-tools-size;</para></listitem>
|
---|
43 | <listitem><para>Estimated disk space required:
|
---|
44 | &net-tools-buildsize;</para></listitem>
|
---|
45 | <listitem><para>Estimated build time:
|
---|
46 | &net-tools-time;</para></listitem></itemizedlist>
|
---|
47 | </sect3>
|
---|
48 |
|
---|
49 | <sect3><title>Additional downloads</title>
|
---|
50 | <itemizedlist spacing="compact">
|
---|
51 | <listitem><para>Required Patch (if compiled using
|
---|
52 | <application>GCC</application>-3.4.x): <ulink
|
---|
53 | url="&patch-root;/net-tools-&net-tools-version;-gcc34-3.patch"/></para>
|
---|
54 | </listitem>
|
---|
55 | <listitem><para>Required Patch: <ulink
|
---|
56 | url="&patch-root;/net-tools-&net-tools-version;-kernel_headers-2.patch"/></para>
|
---|
57 | </listitem>
|
---|
58 | <listitem><para>Required Patch: <ulink
|
---|
59 | url="&patch-root;/net-tools-&net-tools-version;-mii_ioctl-1.patch"/></para>
|
---|
60 | </listitem></itemizedlist>
|
---|
61 | </sect3>
|
---|
62 |
|
---|
63 | </sect2>
|
---|
64 |
|
---|
65 | <sect2>
|
---|
66 | <title>Installation of <application>Net-tools</application></title>
|
---|
67 |
|
---|
68 | <note><para>The <application>Net-tools</application> package installs a
|
---|
69 | <command>hostname</command> program which will overwrite the existing program
|
---|
70 | installed by <application>Coreutils</application> during a base
|
---|
71 | <acronym>LFS</acronym> installation. If, for whatever reason, you need to
|
---|
72 | reinstall the <application>Coreutils</application> package after installing
|
---|
73 | <application>Net-tools</application>, you should use the
|
---|
74 | <filename>coreutils-&lfs-coreutils-version;-suppress_hostname_uptime_kill_su-1.patch</filename>
|
---|
75 | patch if you wish to preserve the <application>Net-tools</application>
|
---|
76 | <command>hostname</command> program.</para></note>
|
---|
77 |
|
---|
78 | <para>If you don't know what to answer to all the questions asked during
|
---|
79 | the <command>make config</command> phase below, then just accept the
|
---|
80 | defaults (the build command below automates this). This will be just fine
|
---|
81 | in the majority of cases. What you're
|
---|
82 | asked here is a bunch of questions about which network protocols you've
|
---|
83 | enabled in your kernel. The default answers will enable the tools from
|
---|
84 | this package to work with the most common protocols:
|
---|
85 | <acronym>TCP</acronym>, <acronym>PPP</acronym>, and several others. You
|
---|
86 | still need to actually enable these protocols in the kernel—what you
|
---|
87 | do here is merely telling the package to include support for those
|
---|
88 | protocols in its programs, but it's up to the kernel to make the
|
---|
89 | protocols available.</para>
|
---|
90 |
|
---|
91 | <para>Install <application>Net-tools</application> by running the
|
---|
92 | following commands:</para>
|
---|
93 |
|
---|
94 | <screen><userinput><command>patch -Np1 -i ../net-tools-&net-tools-version;-gcc34-3.patch &&
|
---|
95 | patch -Np1 -i ../net-tools-&net-tools-version;-kernel_headers-2.patch &&
|
---|
96 | patch -Np1 -i ../net-tools-&net-tools-version;-mii_ioctl-1.patch &&
|
---|
97 | yes "" | make config &&
|
---|
98 | sed -i -e 's|HAVE_IP_TOOLS 0|HAVE_IP_TOOLS 1|g' \
|
---|
99 | -e 's|HAVE_MII 0|HAVE_MII 1|g' config.h &&
|
---|
100 | sed -i -e 's|# HAVE_IP_TOOLS=0|HAVE_IP_TOOLS=1|g' \
|
---|
101 | -e 's|# HAVE_MII=0|HAVE_MII=1|g' config.make &&
|
---|
102 | make &&
|
---|
103 | make update</command></userinput></screen>
|
---|
104 |
|
---|
105 | </sect2>
|
---|
106 |
|
---|
107 | <sect2>
|
---|
108 | <title>Command explanations</title>
|
---|
109 |
|
---|
110 | <para><command>yes "" | make config</command>: Piping <command>yes</command>
|
---|
111 | to <command>make config</command> skips the interactive configuration and
|
---|
112 | accepts the defaults.</para>
|
---|
113 |
|
---|
114 | <para><command>sed -i -e ...</command>: These two <command>sed</command>s
|
---|
115 | change the configuration files to force building the
|
---|
116 | <command>ipmaddr</command>, <command>iptunnel</command> and
|
---|
117 | <command>mii-tool</command> programs.</para>
|
---|
118 | </sect2>
|
---|
119 |
|
---|
120 | <sect2>
|
---|
121 | <title>Contents</title>
|
---|
122 |
|
---|
123 | <para>The <application>Net-tools</application> package contains
|
---|
124 | <command>arp</command>,
|
---|
125 | <command>dnsdomainname</command>,
|
---|
126 | <command>domainname</command>,
|
---|
127 | <command>hostname</command>,
|
---|
128 | <command>ifconfig</command>,
|
---|
129 | <command>ipmaddr</command>,
|
---|
130 | <command>iptunnel</command>,
|
---|
131 | <command>mii-tool</command>,
|
---|
132 | <command>nameif</command>,
|
---|
133 | <command>netstat</command>,
|
---|
134 | <command>nisdomainname</command>,
|
---|
135 | <command>plipconfig</command>,
|
---|
136 | <command>rarp</command>,
|
---|
137 | <command>route</command>,
|
---|
138 | <command>slattach</command> and
|
---|
139 | <command>ypdomainname</command>.</para>
|
---|
140 |
|
---|
141 | </sect2>
|
---|
142 |
|
---|
143 | <sect2><title>Description</title>
|
---|
144 |
|
---|
145 | <sect3><title>arp</title>
|
---|
146 | <para><command>arp</command>
|
---|
147 | is used to manipulate the kernel's <acronym>ARP</acronym> cache, usually
|
---|
148 | to add or delete an entry, or to dump the entire cache.
|
---|
149 | </para></sect3>
|
---|
150 |
|
---|
151 | <sect3><title>dnsdomainname</title>
|
---|
152 | <para><command>dnsdomainname</command>
|
---|
153 | reports the system's <acronym>DNS</acronym> domain name.
|
---|
154 | </para></sect3>
|
---|
155 |
|
---|
156 | <sect3><title>domainname</title>
|
---|
157 | <para><command>domainname</command>
|
---|
158 | reports or sets the system's
|
---|
159 | <acronym>NIS</acronym>/<acronym>YP</acronym> domain name.
|
---|
160 | </para></sect3>
|
---|
161 |
|
---|
162 | <sect3><title>hostname</title>
|
---|
163 | <para><command>hostname</command>
|
---|
164 | reports or sets the name of the current host system.
|
---|
165 | </para></sect3>
|
---|
166 |
|
---|
167 | <sect3><title>ifconfig</title>
|
---|
168 | <para><command>ifconfig</command>
|
---|
169 | is the main utility for configuring network interfaces.
|
---|
170 | </para></sect3>
|
---|
171 |
|
---|
172 | <sect3><title>ipmaddr</title>
|
---|
173 | <para><command>ipmaddr</command>
|
---|
174 | adds, deletes and shows an interface's multicast addresses.
|
---|
175 | </para></sect3>
|
---|
176 |
|
---|
177 | <sect3><title>iptunnel</title>
|
---|
178 | <para><command>iptunnel</command>
|
---|
179 | adds, changes, deletes and shows an interface's tunnels.
|
---|
180 | </para></sect3>
|
---|
181 |
|
---|
182 | <sect3><title>mii-tool</title>
|
---|
183 | <para><command>mii-tool</command>
|
---|
184 | checks or sets the status of a network interface's Media Independent
|
---|
185 | Interface (<acronym>MII</acronym>) unit.
|
---|
186 | </para></sect3>
|
---|
187 |
|
---|
188 | <sect3><title>nameif</title>
|
---|
189 | <para><command>nameif</command>
|
---|
190 | names network interfaces based on <acronym>MAC</acronym> addresses.
|
---|
191 | </para></sect3>
|
---|
192 |
|
---|
193 | <sect3><title>netstat</title>
|
---|
194 | <para><command>netstat</command>
|
---|
195 | is used to report network connections, routing tables, and interface
|
---|
196 | statistics.
|
---|
197 | </para></sect3>
|
---|
198 |
|
---|
199 | <sect3><title>nisdomainname</title>
|
---|
200 | <para><command>nisdomainname</command>
|
---|
201 | does the same as <command>domainname</command>.
|
---|
202 | </para></sect3>
|
---|
203 |
|
---|
204 | <sect3><title>plipconfig</title>
|
---|
205 | <para><command>plipconfig</command>
|
---|
206 | is used to fine tune the <acronym>PLIP</acronym> device parameters, to
|
---|
207 | improve its performance.
|
---|
208 | </para></sect3>
|
---|
209 |
|
---|
210 | <sect3><title>rarp</title>
|
---|
211 | <para><command>rarp</command>
|
---|
212 | is used to manipulate the kernel's <acronym>RARP</acronym> table.
|
---|
213 | </para></sect3>
|
---|
214 |
|
---|
215 | <sect3><title>route</title>
|
---|
216 | <para><command>route</command>
|
---|
217 | is used to manipulate the <acronym>IP</acronym> routing table.
|
---|
218 | </para></sect3>
|
---|
219 |
|
---|
220 | <sect3><title>slattach</title>
|
---|
221 | <para><command>slattach</command>
|
---|
222 | attaches a network interface to a serial line. This allows you to use
|
---|
223 | normal terminal lines for point-to-point links to other computers.
|
---|
224 | </para></sect3>
|
---|
225 |
|
---|
226 | <sect3><title>ypdomainname</title>
|
---|
227 | <para><command>ypdomainname</command>
|
---|
228 | does the same as <command>domainname</command>.
|
---|
229 | </para></sect3>
|
---|
230 |
|
---|
231 | </sect2>
|
---|
232 |
|
---|
233 | </sect1>
|
---|