[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 | ]>
|
---|
| 6 | <sect1 id="ch-system-net-tools" xreflabel="Net-tools">
|
---|
| 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 |
|
---|
| 12 | <para>The Net-tools package contains programs for basic networking.</para>
|
---|
| 13 |
|
---|
| 14 | <screen>&buildtime; 0.1 SBU
|
---|
| 15 | &diskspace; 9.4 MB</screen>
|
---|
| 16 |
|
---|
| 17 | <para>Net-tools installation depends on: Bash, Binutils, Coreutils, GCC,
|
---|
| 18 | Glibc, Make.</para>
|
---|
| 19 |
|
---|
| 20 |
|
---|
| 21 |
|
---|
| 22 | <sect2>
|
---|
| 23 | <title>Installation of Net-tools</title>
|
---|
| 24 |
|
---|
| 25 | <para>If you don't know what to answer to all the questions asked during the
|
---|
| 26 | <command>make config</command> phase below, then just accept the defaults.
|
---|
| 27 | This will be just fine in the majority of cases. What you're asked here is a
|
---|
| 28 | bunch of questions about which network protocols you've enabled in your
|
---|
| 29 | kernel. The default answers will enable the tools from this package to work
|
---|
| 30 | with the most common protocols: TCP, PPP, and several others. You still need
|
---|
| 31 | to actually enable these protocols in the kernel -- what you do here is merely
|
---|
| 32 | telling the package to include support for those protocols in its programs,
|
---|
| 33 | but it's up to the kernel to make the protocols available.</para>
|
---|
| 34 |
|
---|
| 35 | <para>First fix a small syntax problem in the sources of the
|
---|
| 36 | <command>mii-tool</command> program:</para>
|
---|
| 37 |
|
---|
| 38 | <screen><userinput>patch -Np1 -i ../net-tools-&net-tools-version;-miitool-gcc33-1.patch</userinput></screen>
|
---|
| 39 |
|
---|
| 40 | <para>Now prepare Net-tools for compilation (if you intend to accept the
|
---|
| 41 | defaults, you can skip all the questions by running <userinput>yes "" |
|
---|
| 42 | make config</userinput> instead):</para>
|
---|
| 43 |
|
---|
| 44 | <screen><userinput>make config</userinput></screen>
|
---|
| 45 |
|
---|
| 46 | <para>Compile the package:</para>
|
---|
| 47 |
|
---|
| 48 | <screen><userinput>make</userinput></screen>
|
---|
| 49 |
|
---|
| 50 | <para>Now install it:</para>
|
---|
| 51 |
|
---|
| 52 | <screen><userinput>make update</userinput></screen>
|
---|
| 53 |
|
---|
| 54 | </sect2>
|
---|
| 55 |
|
---|
| 56 |
|
---|
| 57 | <sect2 id="contents-net"><title>Contents of Net-tools</title>
|
---|
| 58 |
|
---|
| 59 | <para><emphasis>Installed programs</emphasis>: arp, dnsdomainname (link to
|
---|
| 60 | hostname), domainname (link to hostname), hostname, ifconfig, nameif, netstat,
|
---|
| 61 | nisdomainname (link to hostname), plipconfig, rarp, route, slattach and
|
---|
| 62 | ypdomainname (link to hostname)</para>
|
---|
| 63 |
|
---|
| 64 | </sect2>
|
---|
| 65 |
|
---|
| 66 |
|
---|
| 67 | <sect2><title>Short descriptions</title>
|
---|
| 68 |
|
---|
| 69 | <indexterm zone="ch-system-net-tools arp"><primary sortas="b-arp">arp</primary></indexterm>
|
---|
| 70 | <para id="arp"><command>arp</command> is used to manipulate the kernel's ARP cache,
|
---|
| 71 | usually to add or delete an entry, or to dump the entire cache.</para>
|
---|
| 72 |
|
---|
| 73 | <indexterm zone="ch-system-net-tools dnsdomainname"><primary sortas="b-dnsdomainname">dnsdomainname</primary></indexterm>
|
---|
| 74 | <para id="dnsdomainname"><command>dnsdomainname</command> reports the system's DNS (Domain Name Server) domain
|
---|
| 75 | name.</para>
|
---|
| 76 |
|
---|
| 77 | <indexterm zone="ch-system-net-tools domainname"><primary sortas="b-domainname">domainname</primary></indexterm>
|
---|
| 78 | <para id="domainname"><command>domainname</command> reports or sets the system's NIS/YP
|
---|
| 79 | domain name.</para>
|
---|
| 80 |
|
---|
| 81 | <indexterm zone="ch-system-net-tools hostname"><primary sortas="b-hostname">hostname</primary></indexterm>
|
---|
| 82 | <para id="hostname"><command>hostname</command> reports or sets the name of the current
|
---|
| 83 | host system.</para>
|
---|
| 84 |
|
---|
| 85 | <indexterm zone="ch-system-net-tools ifconfig"><primary sortas="b-ifconfig">ifconfig</primary></indexterm>
|
---|
| 86 | <para id="ifconfig"><command>ifconfig</command> is the main utility for configuring
|
---|
| 87 | network interfaces.</para>
|
---|
| 88 |
|
---|
| 89 | <indexterm zone="ch-system-net-tools nameif"><primary sortas="b-nameif">nameif</primary></indexterm>
|
---|
| 90 | <para id="nameif"><command>nameif</command> names network interfaces based on MAC
|
---|
| 91 | addresses.</para>
|
---|
| 92 |
|
---|
| 93 | <indexterm zone="ch-system-net-tools netstat"><primary sortas="b-netstat">netstat</primary></indexterm>
|
---|
| 94 | <para id="netstat"><command>netstat</command> is used to report network connections,
|
---|
| 95 | routing tables, and interface statistics..</para>
|
---|
| 96 |
|
---|
| 97 | <indexterm zone="ch-system-net-tools nisdomainname"><primary sortas="b-nisdomainname">nisdomainname</primary></indexterm>
|
---|
| 98 | <para id="nisdomainname"><command>nisdomainname</command> does the same as domainname.</para>
|
---|
| 99 |
|
---|
| 100 | <indexterm zone="ch-system-net-tools plipconfig"><primary sortas="b-plipconfig">plipconfig</primary></indexterm>
|
---|
| 101 | <para id="plipconfig"><command>plipconfig</command> is used to fine tune the PLIP device
|
---|
| 102 | parameters, to improve its performance.</para>
|
---|
| 103 |
|
---|
| 104 | <indexterm zone="ch-system-net-tools rarp"><primary sortas="b-rarp">rarp</primary></indexterm>
|
---|
| 105 | <para id="rarp"><command>rarp</command> is used to manipulate the kernel's RARP
|
---|
| 106 | table.</para>
|
---|
| 107 |
|
---|
| 108 | <indexterm zone="ch-system-net-tools route"><primary sortas="b-route">route</primary></indexterm>
|
---|
| 109 | <para id="route"><command>route</command> is used to manipulate the IP routing
|
---|
| 110 | table.</para>
|
---|
| 111 |
|
---|
| 112 | <indexterm zone="ch-system-net-tools slattach"><primary sortas="b-slattach">slattach</primary></indexterm>
|
---|
| 113 | <para id="slattach"><command>slattach</command> attaches a network interface to a serial
|
---|
| 114 | line. This allows you to use normal terminal lines for point-to-point links to
|
---|
| 115 | other computers.</para>
|
---|
| 116 |
|
---|
| 117 | <indexterm zone="ch-system-net-tools ypdomainname"><primary sortas="b-ypdomainname">ypdomainname</primary></indexterm>
|
---|
| 118 | <para id="ypdomainname"><command>ypdomainname</command> does the same as domainname.</para>
|
---|
| 119 |
|
---|
| 120 | </sect2>
|
---|
| 121 |
|
---|
| 122 |
|
---|
| 123 |
|
---|
| 124 | </sect1>
|
---|