Changeset 013bb45 for chapter06/iproute2.xml
- Timestamp:
- 02/05/2006 01:19:25 PM (19 years ago)
- Children:
- f553044
- Parents:
- 0a78553
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/iproute2.xml
r0a78553 r013bb45 1 1 <?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" [ 3 4 <!ENTITY % general-entities SYSTEM "../general.ent"> 4 5 %general-entities; 5 6 ]> 7 6 8 <sect1 id="ch-system-iproute2" role="wrap"> 9 <?dbhtml filename="iproute2.html"?> 10 7 11 <title>IPRoute2-&iproute2-version;</title> 8 <?dbhtml filename="iproute2.html"?> 12 9 13 <indexterm zone="ch-system-iproute2"> 10 14 <primary sortas="a-IPRoute2">IPRoute2</primary> 11 15 </indexterm> 16 12 17 <sect2 role="package"> 13 18 <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 17 23 <segmentedlist> 18 24 <segtitle>&buildtime;</segtitle> 19 25 <segtitle>&diskspace;</segtitle> 26 20 27 <seglistitem> 21 28 <seg>0.1 SBU</seg> … … 23 30 </seglistitem> 24 31 </segmentedlist> 32 25 33 <segmentedlist> 26 34 <segtitle>&dependencies;</segtitle> 35 27 36 <seglistitem> 28 37 <seg>Berkeley DB, GCC, Glibc, Make, and Linux-Headers</seg> 29 38 </seglistitem> 30 39 </segmentedlist> 40 31 41 </sect2> 42 32 43 <sect2 role="installation"> 33 44 <title>Installation of IPRoute2</title> 34 45 35 46 <para>Prepare IPRoute2 for compilation:</para> 36 <screen><userinput>chmod u+x configure && 47 48 <screen><userinput>chmod u+x configure && 37 49 ./configure</userinput></screen> 38 50 39 51 <para>Compile the package:</para> 40 52 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> 44 54 45 55 <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 54 68 </variablelist> 55 69 … … 58 72 <para>Install the package:</para> 59 73 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> 68 81 69 82 <screen><userinput>mv -v /sbin/arpd /usr/sbin</userinput></screen> 70 83 71 84 </sect2> 72 85 73 86 <sect2 id="contents-iproute2" role="content"> 74 87 <title>Contents of IPRoute2</title> 88 75 89 <segmentedlist> 76 90 <segtitle>Installed programs</segtitle> 91 77 92 <seglistitem> 78 93 <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> 82 96 </seglistitem> 83 97 </segmentedlist> 84 98 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 88 104 <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> 96 110 <indexterm zone="ch-system-iproute2 arpd"> 97 111 <primary sortas="b-arpd">arpd</primary> … … 101 115 102 116 <varlistentry id="ctstat"> 103 <term> 104 <command>ctstat</command> 105 </term> 117 <term><command>ctstat</command></term> 106 118 <listitem> 107 119 <para>Connection status utility</para> … … 113 125 114 126 <varlistentry id="ifcfg"> 115 <term> 116 <command>ifcfg</command> 117 </term> 127 <term><command>ifcfg</command></term> 118 128 <listitem> 119 129 <para>A shell script wrapper for the <command>ip</command> command</para> … … 125 135 126 136 <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> 133 141 <indexterm zone="ch-system-iproute2 ifstat"> 134 142 <primary sortas="b-ifstat">ifstat</primary> … … 138 146 139 147 <varlistentry id="ip"> 140 <term> 141 <command>ip</command> 142 </term> 143 <listitem> 144 148 <term><command>ip</command></term> 149 <listitem> 145 150 <para>The main executable. It has several different functions:</para> 146 151 147 152 <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> 150 154 151 155 <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> 159 161 160 162 <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> 163 164 164 165 <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> 167 167 168 168 <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> 171 170 172 171 <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> 175 173 176 174 <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> 183 179 <indexterm zone="ch-system-iproute2 ip"> 184 180 <primary sortas="b-ip">ip</primary> … … 188 184 189 185 <varlistentry id="lnstat"> 190 <term> 191 <command>lnstat</command> 192 </term> 186 <term><command>lnstat</command></term> 193 187 <listitem> 194 188 <para>Provides Linux network statistics. It is a generalized and more 195 feature-complete replacement for the old196 <command>rtstat</command>program</para>189 feature-complete replacement for the old <command>rtstat</command> 190 program</para> 197 191 <indexterm zone="ch-system-iproute2 lnstat"> 198 192 <primary sortas="b-lnstat">lnstat</primary> … … 202 196 203 197 <varlistentry id="nstat"> 204 <term> 205 <command>nstat</command> 206 </term> 198 <term><command>nstat</command></term> 207 199 <listitem> 208 200 <para>Shows network statistics</para> … … 214 206 215 207 <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> 223 212 <indexterm zone="ch-system-iproute2 routef"> 224 213 <primary sortas="b-routef">routef</primary> … … 228 217 229 218 <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> 237 223 <indexterm zone="ch-system-iproute2 routel"> 238 224 <primary sortas="b-routel">routel</primary> … … 242 228 243 229 <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> 249 234 <indexterm zone="ch-system-iproute2 rtacct"> 250 235 <primary sortas="b-rtacct">rtacct</primary> … … 254 239 255 240 <varlistentry id="rtmon"> 256 <term> 257 <command>rtmon</command> 258 </term> 241 <term><command>rtmon</command></term> 259 242 <listitem> 260 243 <para>Route monitoring utility</para> … … 266 249 267 250 <varlistentry id="rtpr"> 268 <term> 269 <command>rtpr</command> 270 </term> 251 <term><command>rtpr</command></term> 271 252 <listitem> 272 253 <para>Converts the output of <command>ip -o</command> back into a 273 254 readable form</para> 274 255 <indexterm zone="ch-system-iproute2 rtpr"> 275 256 <primary sortas="b-rtpr">rtpr</primary> … … 279 260 280 261 <varlistentry id="rtstat"> 281 <term> 282 <command>rtstat</command> 283 </term> 262 <term><command>rtstat</command></term> 284 263 <listitem> 285 264 <para>Route status utility</para> … … 291 270 292 271 <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> 298 276 <indexterm zone="ch-system-iproute2 ss"> 299 277 <primary sortas="b-ss">ss</primary> … … 303 281 304 282 <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> 313 287 314 288 <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> 321 293 322 294 <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> 325 296 326 297 <para><command>tc filter</command> allows users to setup the QOS/COS 327 packet filtering 328 </para> 298 packet filtering</para> 329 299 330 300 <para><command>tc policy</command> allows users to setup the QOS/COS 331 policies 332 </para> 301 policies</para> 333 302 <indexterm zone="ch-system-iproute2 ss"> 334 303 <primary sortas="b-tc">tc</primary> … … 336 305 </listitem> 337 306 </varlistentry> 307 338 308 </variablelist> 309 339 310 </sect2> 311 340 312 </sect1> 341
Note:
See TracChangeset
for help on using the changeset viewer.