net-tools.xml 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  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" role="wrap">
  7. <title>Net-tools-&net-tools-version;</title>
  8. <?dbhtml filename="net-tools.html"?>
  9. <indexterm zone="ch-system-net-tools"><primary sortas="a-Net-tools">Net-tools</primary></indexterm>
  10. <sect2 role="package"><title/>
  11. <para>The Net-tools package contains programs for basic networking.</para>
  12. <segmentedlist>
  13. <segtitle>&buildtime;</segtitle>
  14. <segtitle>&diskspace;</segtitle>
  15. <seglistitem><seg>0.1 SBU</seg><seg>9.4 MB</seg></seglistitem>
  16. </segmentedlist>
  17. <segmentedlist>
  18. <segtitle>Net-tools installation depends on</segtitle>
  19. <seglistitem><seg>Bash, Binutils, Coreutils, GCC,
  20. Glibc, Make</seg></seglistitem>
  21. </segmentedlist>
  22. </sect2>
  23. <sect2 role="installation">
  24. <title>Installation of Net-tools</title>
  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. <para>This package also has issues with being compiled by GCC 3.4, which we
  35. fix by applying the following patch:</para>
  36. <screen><userinput>patch -Np1 -i ../net-tools-&net-tools-version;-gcc34-2.patch</userinput></screen>
  37. <para>Fix an issue that arises when building against Linux 2.6:</para>
  38. <screen><userinput>sed -i 's@x25_address@struct &amp;@' lib/x25_sr.c</userinput></screen>
  39. <para>Now prepare Net-tools for compilation (if you intend to accept the
  40. defaults, you can skip all the questions by running <userinput>yes "" |
  41. make config</userinput> instead):</para>
  42. <screen><userinput>make config</userinput></screen>
  43. <para>Compile the package:</para>
  44. <screen><userinput>make</userinput></screen>
  45. <para>Now install it:</para>
  46. <screen><userinput>make update</userinput></screen>
  47. </sect2>
  48. <sect2 id="contents-net" role="content"><title>Contents of Net-tools</title>
  49. <segmentedlist>
  50. <segtitle>Installed programs</segtitle>
  51. <seglistitem><seg>arp, dnsdomainname (link to hostname), domainname (link to
  52. hostname), hostname, ifconfig, nameif, netstat, nisdomainname (link to hostname),
  53. plipconfig, rarp, route, slattach and ypdomainname (link to hostname)</seg></seglistitem>
  54. </segmentedlist>
  55. <variablelist><title>Short descriptions</title>
  56. <varlistentry id="arp">
  57. <term><command>arp</command></term>
  58. <listitem>
  59. <indexterm zone="ch-system-net-tools arp"><primary sortas="b-arp">arp</primary></indexterm>
  60. <para>is used to manipulate the kernel's ARP cache,
  61. usually to add or delete an entry, or to dump the entire cache.</para>
  62. </listitem>
  63. </varlistentry>
  64. <varlistentry id="dnsdomainname">
  65. <term><command>dnsdomainname</command></term>
  66. <listitem>
  67. <indexterm zone="ch-system-net-tools dnsdomainname"><primary sortas="b-dnsdomainname">dnsdomainname</primary></indexterm>
  68. <para>reports the system's DNS (Domain Name Server) domain name.</para>
  69. </listitem>
  70. </varlistentry>
  71. <varlistentry id="domainname">
  72. <term><command>domainname</command></term>
  73. <listitem>
  74. <indexterm zone="ch-system-net-tools domainname"><primary sortas="b-domainname">domainname</primary></indexterm>
  75. <para>reports or sets the system's NIS/YP domain name.</para>
  76. </listitem>
  77. </varlistentry>
  78. <varlistentry id="hostname">
  79. <term><command>hostname</command></term>
  80. <listitem>
  81. <indexterm zone="ch-system-net-tools hostname"><primary sortas="b-hostname">hostname</primary></indexterm>
  82. <para>reports or sets the name of the current host system.</para>
  83. </listitem>
  84. </varlistentry>
  85. <varlistentry id="ifconfig">
  86. <term><command>ifconfig</command></term>
  87. <listitem>
  88. <indexterm zone="ch-system-net-tools ifconfig"><primary sortas="b-ifconfig">ifconfig</primary></indexterm>
  89. <para>is the main utility for configuring network interfaces.</para>
  90. </listitem>
  91. </varlistentry>
  92. <varlistentry id="nameif">
  93. <term><command>nameif</command></term>
  94. <listitem>
  95. <indexterm zone="ch-system-net-tools nameif"><primary sortas="b-nameif">nameif</primary></indexterm>
  96. <para>names network interfaces based on MAC addresses.</para>
  97. </listitem>
  98. </varlistentry>
  99. <varlistentry id="netstat">
  100. <term><command>netstat</command></term>
  101. <listitem>
  102. <indexterm zone="ch-system-net-tools netstat"><primary sortas="b-netstat">netstat</primary></indexterm>
  103. <para>is used to report network connections, routing tables, and interface
  104. statistics..</para>
  105. </listitem>
  106. </varlistentry>
  107. <varlistentry id="nisdomainname">
  108. <term><command>nisdomainname</command></term>
  109. <listitem>
  110. <indexterm zone="ch-system-net-tools nisdomainname"><primary sortas="b-nisdomainname">nisdomainname</primary></indexterm>
  111. <para>does the same as <command>domainname</command>.</para>
  112. </listitem>
  113. </varlistentry>
  114. <varlistentry id="plipconfig">
  115. <term><command>plipconfig</command></term>
  116. <listitem>
  117. <indexterm zone="ch-system-net-tools plipconfig"><primary sortas="b-plipconfig">plipconfig</primary></indexterm>
  118. <para>is used to fine tune the PLIP device parameters, to improve its performance.</para>
  119. </listitem>
  120. </varlistentry>
  121. <varlistentry id="rarp">
  122. <term><command>rarp</command></term>
  123. <listitem>
  124. <indexterm zone="ch-system-net-tools rarp"><primary sortas="b-rarp">rarp</primary></indexterm>
  125. <para>is used to manipulate the kernel's RARP table.</para>
  126. </listitem>
  127. </varlistentry>
  128. <varlistentry id="route">
  129. <term><command>route</command></term>
  130. <listitem>
  131. <indexterm zone="ch-system-net-tools route"><primary sortas="b-route">route</primary></indexterm>
  132. <para>is used to manipulate the IP routing table.</para>
  133. </listitem>
  134. </varlistentry>
  135. <varlistentry id="slattach">
  136. <term><command>slattach</command></term>
  137. <listitem>
  138. <indexterm zone="ch-system-net-tools slattach"><primary sortas="b-slattach">slattach</primary></indexterm>
  139. <para>attaches a network interface to a serial line. This allows you to use normal
  140. terminal lines for point-to-point links to other computers.</para>
  141. </listitem>
  142. </varlistentry>
  143. <varlistentry id="ypdomainname">
  144. <term><command>ypdomainname</command></term>
  145. <listitem>
  146. <indexterm zone="ch-system-net-tools ypdomainname"><primary sortas="b-ypdomainname">ypdomainname</primary></indexterm>
  147. <para>does the same as <command>domainname</command>.</para>
  148. </listitem>
  149. </varlistentry>
  150. </variablelist>
  151. </sect2>
  152. </sect1>