source: basicnet/netprogs/net-tools.xml@ d781d92f

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.0 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since d781d92f was d781d92f, checked in by Randy McMurchy <randy@…>, 20 years ago

Added mii_ioctl patch to net-tools to fix the mii-tools program

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@2683 af4574ff-66df-0310-9fd7-8a98e5e911e0

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