Ignore:
Timestamp:
02/05/2006 01:19:25 PM (19 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Children:
f553044
Parents:
0a78553
Message:

Ported r7351 from trunk to udev_update branch.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/udev_update/BOOK@7352 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter06/iproute2.xml

    r0a78553 r013bb45  
    11<?xml version="1.0" encoding="ISO-8859-1"?>
    2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
     2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
     3  "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
    34  <!ENTITY % general-entities SYSTEM "../general.ent">
    45  %general-entities;
    56]>
     7
    68<sect1 id="ch-system-iproute2" role="wrap">
     9  <?dbhtml filename="iproute2.html"?>
     10
    711  <title>IPRoute2-&iproute2-version;</title>
    8 <?dbhtml filename="iproute2.html"?>
     12
    913  <indexterm zone="ch-system-iproute2">
    1014    <primary sortas="a-IPRoute2">IPRoute2</primary>
    1115  </indexterm>
     16
    1217  <sect2 role="package">
    1318    <title/>
    14     <para>The IPRoute2 package contains programs for basic and advanced
    15           IPV4-based networking.
    16     </para>
     19
     20    <para>The IPRoute2 package contains programs for basic and advanced IPV4-based
     21    networking.</para>
     22
    1723    <segmentedlist>
    1824      <segtitle>&buildtime;</segtitle>
    1925      <segtitle>&diskspace;</segtitle>
     26
    2027      <seglistitem>
    2128        <seg>0.1 SBU</seg>
     
    2330      </seglistitem>
    2431    </segmentedlist>
     32
    2533    <segmentedlist>
    2634      <segtitle>&dependencies;</segtitle>
     35
    2736      <seglistitem>
    2837        <seg>Berkeley DB, GCC, Glibc, Make, and Linux-Headers</seg>
    2938      </seglistitem>
    3039    </segmentedlist>
     40
    3141  </sect2>
     42
    3243  <sect2 role="installation">
    3344    <title>Installation of IPRoute2</title>
    3445
    3546    <para>Prepare IPRoute2 for compilation:</para>
    36     <screen><userinput>chmod u+x configure &amp;&amp;
     47
     48<screen><userinput>chmod u+x configure &amp;&amp;
    3749./configure</userinput></screen>
    3850
    3951    <para>Compile the package:</para>
    4052
    41     <screen><userinput>make SBINDIR=/sbin</userinput></screen>
    42 
    43     <para>The meaning of the make option:</para>
     53<screen><userinput>make SBINDIR=/sbin</userinput></screen>
    4454
    4555    <variablelist>
    46     <varlistentry>
    47     <term><parameter>SBINDIR=/sbin</parameter></term>
    48     <listitem><para>This ensures that the IPRoute2 binaries will install into
    49       <filename class="directory">/sbin</filename>. This is the correct location
    50       according to the FHS, because some of the IPRoute2 binaries are used by
    51       the LFS-Bootscripts package.</para>
    52     </listitem>
    53     </varlistentry>
     56      <title>The meaning of the make option:</title>
     57
     58      <varlistentry>
     59        <term><parameter>SBINDIR=/sbin</parameter></term>
     60        <listitem>
     61          <para>This ensures that the IPRoute2 binaries will install into
     62          <filename class="directory">/sbin</filename>. This is the correct
     63          location according to the FHS, because some of the IPRoute2 binaries
     64          are used by the LFS-Bootscripts package.</para>
     65        </listitem>
     66      </varlistentry>
     67
    5468    </variablelist>
    5569
     
    5872    <para>Install the package:</para>
    5973
    60     <screen><userinput>make SBINDIR=/sbin install</userinput></screen>
    61    
    62     <para>The <command>arpd</command> binary links against the Berkeley DB libraries
    63           that reside in <filename class="directory">/usr</filename> and
    64           uses a database in <filename>/var/lib/arpd/arpd.db</filename>. Thus,
    65           according to the FHS, it must be
    66           in <filename class="directory">/usr/sbin</filename>. Move it there:
    67     </para>
     74<screen><userinput>make SBINDIR=/sbin install</userinput></screen>
     75
     76    <para>The <command>arpd</command> binary links against the Berkeley DB
     77    libraries that reside in <filename class="directory">/usr</filename> and
     78    uses a database in <filename>/var/lib/arpd/arpd.db</filename>. Thus,
     79    according to the FHS, it must be in <filename
     80    class="directory">/usr/sbin</filename>. Move it there:</para>
    6881
    6982    <screen><userinput>mv -v /sbin/arpd /usr/sbin</userinput></screen>
    70      
     83
    7184  </sect2>
    7285
    7386  <sect2 id="contents-iproute2" role="content">
    7487    <title>Contents of IPRoute2</title>
     88
    7589    <segmentedlist>
    7690      <segtitle>Installed programs</segtitle>
     91
    7792      <seglistitem>
    7893        <seg>arpd, ctstat (link to lnstat), ifcfg, ifstat, ip, lnstat, nstat,
    79              routef, routel, rtacct, rtmon, rtpr, rtstat (link to lnstat), ss,
    80              and tc.
    81         </seg>
     94        routef, routel, rtacct, rtmon, rtpr, rtstat (link to lnstat), ss,
     95        and tc.</seg>
    8296      </seglistitem>
    8397    </segmentedlist>
    8498
    85     <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
    86 <?dbfo list-presentation="list"?>
    87 <?dbhtml list-presentation="table"?>
     99    <variablelist>
     100      <bridgehead renderas="sect3">Short Descriptions</bridgehead>
     101      <?dbfo list-presentation="list"?>
     102      <?dbhtml list-presentation="table"?>
     103
    88104      <varlistentry id="arpd">
    89         <term>
    90           <command>arpd</command>
    91         </term>
    92         <listitem>
    93           <para>Userspace ARP daemon, useful in really large networks, where
    94                 the kernelspace ARP implementation is insufficient, or
    95                 when setting up a honeypot</para>
     105        <term><command>arpd</command></term>
     106        <listitem>
     107          <para>Userspace ARP daemon, useful in really large networks, where the
     108          kernelspace ARP implementation is insufficient, or when setting up a
     109          honeypot</para>
    96110          <indexterm zone="ch-system-iproute2 arpd">
    97111            <primary sortas="b-arpd">arpd</primary>
     
    101115
    102116      <varlistentry id="ctstat">
    103         <term>
    104           <command>ctstat</command>
    105         </term>
     117        <term><command>ctstat</command></term>
    106118        <listitem>
    107119          <para>Connection status utility</para>
     
    113125
    114126      <varlistentry id="ifcfg">
    115         <term>
    116           <command>ifcfg</command>
    117         </term>
     127        <term><command>ifcfg</command></term>
    118128        <listitem>
    119129          <para>A shell script wrapper for the <command>ip</command> command</para>
     
    125135
    126136      <varlistentry id="ifstat">
    127         <term>
    128           <command>ifstat</command>
    129         </term>
    130         <listitem>
    131           <para>Shows the interface statistics, including the amount of transmitted
    132                 and received packets by interface</para>
     137        <term><command>ifstat</command></term>
     138        <listitem>
     139          <para>Shows the interface statistics, including the amount of
     140          transmitted and received packets by interface</para>
    133141          <indexterm zone="ch-system-iproute2 ifstat">
    134142            <primary sortas="b-ifstat">ifstat</primary>
     
    138146
    139147      <varlistentry id="ip">
    140         <term>
    141           <command>ip</command>
    142         </term>
    143         <listitem>
    144 
     148        <term><command>ip</command></term>
     149        <listitem>
    145150          <para>The main executable. It has several different functions:</para>
    146151
    147152          <para><command>ip link <replaceable>[device]</replaceable></command>
    148                 allows users to look at the state of devices and to make changes
    149           </para>
     153          allows users to look at the state of devices and to make changes</para>
    150154
    151155          <para><command>ip addr</command> allows users to look at addresses and
    152                 their properties, add new addresses, and delete old ones
    153           </para>
    154 
    155           <para><command>ip neighbor</command> allows users to look at
    156                 neighbor bindings and their properties, add new
    157                 neighbor entries, and delete old ones
    158           </para>
     156          their properties, add new addresses, and delete old ones</para>
     157
     158          <para><command>ip neighbor</command> allows users to look at neighbor
     159          bindings and their properties, add new neighbor entries, and delete
     160          old ones</para>
    159161
    160162          <para><command>ip rule</command> allows users to look at the routing
    161                 policies and change them
    162           </para>
     163          policies and change them</para>
    163164
    164165          <para><command>ip route</command> allows users to look at the routing
    165                 table and change routing table rules
    166           </para>
     166          table and change routing table rules</para>
    167167
    168168          <para><command>ip tunnel</command> allows users to look at the IP
    169                 tunnels and their properties, and change them
    170           </para>
     169          tunnels and their properties, and change them</para>
    171170
    172171          <para><command>ip maddr</command> allows users to look at the multicast
    173                 addresses and their properties, and change them
    174           </para>
     172          addresses and their properties, and change them</para>
    175173
    176174          <para><command>ip mroute</command> allows users to set, change, or
    177                 delete the multicast routing
    178           </para>
    179 
    180           <para><command>ip monitor</command> allows users to
    181                 continously monitor the state of devices, addresses and routes
    182           </para>
     175          delete the multicast routing</para>
     176
     177          <para><command>ip monitor</command> allows users to continously monitor
     178          the state of devices, addresses and routes</para>
    183179          <indexterm zone="ch-system-iproute2 ip">
    184180            <primary sortas="b-ip">ip</primary>
     
    188184
    189185      <varlistentry id="lnstat">
    190         <term>
    191           <command>lnstat</command>
    192         </term>
     186        <term><command>lnstat</command></term>
    193187        <listitem>
    194188          <para>Provides Linux network statistics.  It is a generalized and more
    195                 feature-complete replacement for the old
    196                 <command>rtstat</command> program</para>
     189          feature-complete replacement for the old <command>rtstat</command>
     190          program</para>
    197191          <indexterm zone="ch-system-iproute2 lnstat">
    198192            <primary sortas="b-lnstat">lnstat</primary>
     
    202196
    203197      <varlistentry id="nstat">
    204         <term>
    205           <command>nstat</command>
    206         </term>
     198        <term><command>nstat</command></term>
    207199        <listitem>
    208200          <para>Shows network statistics</para>
     
    214206
    215207      <varlistentry id="routef">
    216         <term>
    217           <command>routef</command>
    218         </term>
    219         <listitem>
    220           <para>A component of <command>ip route</command>. This is for flushing the routing
    221                 tables
    222           </para>
     208        <term><command>routef</command></term>
     209        <listitem>
     210          <para>A component of <command>ip route</command>. This is for flushing
     211          the routing tables</para>
    223212          <indexterm zone="ch-system-iproute2 routef">
    224213            <primary sortas="b-routef">routef</primary>
     
    228217
    229218      <varlistentry id="routel">
    230         <term>
    231           <command>routel</command>
    232         </term>
    233         <listitem>
    234           <para>A component of <command>ip route</command>. This is for listing the routing
    235                 tables
    236           </para>
     219        <term><command>routel</command></term>
     220        <listitem>
     221          <para>A component of <command>ip route</command>. This is for listing
     222          the routing tables</para>
    237223          <indexterm zone="ch-system-iproute2 routel">
    238224            <primary sortas="b-routel">routel</primary>
     
    242228
    243229      <varlistentry id="rtacct">
    244         <term>
    245           <command>rtacct</command>
    246         </term>
    247         <listitem>
    248           <para>Displays the contents of <filename>/proc/net/rt_acct</filename></para>
     230        <term><command>rtacct</command></term>
     231        <listitem>
     232          <para>Displays the contents of
     233          <filename>/proc/net/rt_acct</filename></para>
    249234          <indexterm zone="ch-system-iproute2 rtacct">
    250235            <primary sortas="b-rtacct">rtacct</primary>
     
    254239
    255240      <varlistentry id="rtmon">
    256         <term>
    257           <command>rtmon</command>
    258         </term>
     241        <term><command>rtmon</command></term>
    259242        <listitem>
    260243          <para>Route monitoring utility</para>
     
    266249
    267250      <varlistentry id="rtpr">
    268         <term>
    269           <command>rtpr</command>
    270         </term>
     251        <term><command>rtpr</command></term>
    271252        <listitem>
    272253          <para>Converts the output of <command>ip -o</command> back into a
    273                 readable form</para>
     254          readable form</para>
    274255          <indexterm zone="ch-system-iproute2 rtpr">
    275256            <primary sortas="b-rtpr">rtpr</primary>
     
    279260
    280261      <varlistentry id="rtstat">
    281         <term>
    282           <command>rtstat</command>
    283         </term>
     262        <term><command>rtstat</command></term>
    284263        <listitem>
    285264          <para>Route status utility</para>
     
    291270
    292271      <varlistentry id="ss">
    293         <term>
    294           <command>ss</command>
    295         </term>
    296         <listitem>
    297           <para>Similar to the <command>netstat</command> command; shows active connections</para>
     272        <term><command>ss</command></term>
     273        <listitem>
     274          <para>Similar to the <command>netstat</command> command; shows active
     275          connections</para>
    298276          <indexterm zone="ch-system-iproute2 ss">
    299277            <primary sortas="b-ss">ss</primary>
     
    303281
    304282      <varlistentry id="tc">
    305         <term>
    306           <command>tc</command>
    307         </term>
    308         <listitem>
    309           <para>Traffic Controlling Executable; this is for Quality Of
    310                 Service (QOS) and Class Of Service (COS)
    311                 implementations
    312           </para>
     283        <term><command>tc</command></term>
     284        <listitem>
     285          <para>Traffic Controlling Executable; this is for Quality Of Service
     286          (QOS) and Class Of Service (COS) implementations</para>
    313287
    314288          <para><command>tc qdisc</command> allows users to setup the queueing
    315                 discipline
    316           </para>
    317 
    318           <para><command>tc class</command> allows users to setup classes based on
    319                 the queuing discipline scheduling
    320           </para>
     289          discipline</para>
     290
     291          <para><command>tc class</command> allows users to setup classes based
     292          on the queuing discipline scheduling</para>
    321293
    322294          <para><command>tc estimator</command> allows users to estimate the
    323                 network flow into a network
    324           </para>
     295          network flow into a network</para>
    325296
    326297          <para><command>tc filter</command> allows users to setup the QOS/COS
    327                 packet filtering
    328           </para>
     298          packet filtering</para>
    329299
    330300          <para><command>tc policy</command> allows users to setup the QOS/COS
    331                 policies
    332           </para>
     301          policies</para>
    333302          <indexterm zone="ch-system-iproute2 ss">
    334303            <primary sortas="b-tc">tc</primary>
     
    336305        </listitem>
    337306      </varlistentry>
     307
    338308    </variablelist>
     309
    339310  </sect2>
     311
    340312</sect1>
    341 
Note: See TracChangeset for help on using the changeset viewer.