From a08896444cac8ccef03f233e1f7bb40c0f849109 Mon Sep 17 00:00:00 2001 From: Matthew Burgess Date: Wed, 14 Jul 2004 20:49:05 +0000 Subject: * Merged recent testing changes back up to unstable (bootscripts & iproute2) git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3939 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/chapter06.xml | 2 +- chapter06/iproute2.xml | 241 ++++++++++++++++++++++++++++++++++++++++++++++++ chapter06/net-tools.xml | 188 ------------------------------------- 3 files changed, 242 insertions(+), 189 deletions(-) create mode 100644 chapter06/iproute2.xml delete mode 100644 chapter06/net-tools.xml (limited to 'chapter06') diff --git a/chapter06/chapter06.xml b/chapter06/chapter06.xml index 603568982..6ae2b15e2 100644 --- a/chapter06/chapter06.xml +++ b/chapter06/chapter06.xml @@ -38,8 +38,8 @@ - + diff --git a/chapter06/iproute2.xml b/chapter06/iproute2.xml new file mode 100644 index 000000000..0b402bd9b --- /dev/null +++ b/chapter06/iproute2.xml @@ -0,0 +1,241 @@ + + + %general-entities; +]> + + Iproute2-&iproute2-version; + + + IProute2 + + + + <para>The IPRoute2 package contains programs for basic networking.</para> + <segmentedlist> + <segtitle>&buildtime;</segtitle> + <segtitle>&diskspace;</segtitle> + <seglistitem> + <seg>0.1 SBU</seg> + <seg>.6 MB</seg> + </seglistitem> + </segmentedlist> + <segmentedlist> + <segtitle>IPRoute2 installation depends on</segtitle> + <seglistitem> + <seg>sed, GCC, Glibc, Make, Linux-Headers</seg> + </seglistitem> + </segmentedlist> + </sect2> + <sect2 role="installation"> + <title>Installation of IProute2 + The arp binary included in this package is + dependent on Berkeley-DB. As arp is not a very + common requirement on a base Linux system we remove the dependency on + Berkeley-DB by applying the patch using the command below. If you + need the arp binary, then instructions for + compiling Berkeley-DB can be found in the BLFS book. + + + patch -Np1 -i ../iproute2-&iproute2-version;-remove_db-1.patch + + Prepare IProute2 for compilation: + ./configure + + Compile the package: + + make + + Now install it: + + make install + + + + Contents of IPRoute2 + + Installed programs + + ifstat, ip, nstat, routef, routel, rtmon, rtstat, ss, and tc. + + + + + Short descriptions + + + + ifstat + + + + ifstat + + shows the interfaces statistics. Shows the amount of transmitted + and received packages by interface + + + + + + ip + + + + ip + + + is the main executable. Has several different functions. + + ip link [device] + allows you to look at the state of devices and to change it. + + + ip addr allows you to look at addresses and + their properties, add new addresses and to delete old ones. + + + ip neighbor allows you to look at neighbour + bindings and their properties, add new neighbour entries and to + delete old ones. + + + ip rule allows you to look at the routing + policies and change them. + + + ip route allows you to look at the routing + table and change routing table rules. + + + ip tunnel allows you to look at the ip + tunnels and their properties, and change them. + + + ip maddr allows you to look at the multicast + addresses and their properties, and change them. + + + ip mroute allows you to set, change, or + delete the mutlicast routing. + + + ip monitor allows you to monitor the state of + devices, addresses and routes continuously. + + + + + + + nstat + + + + nstat + + Shows network statistics + + + + + + routef + + + + routef + + A component of ip route. This is for flushing the routing + tables. + + + + + + + routel + + + + routel + + A component of ip route. This is for listing the routing + tables. + + + + + + + rtmon + + + + rtmon + + Route Monitoring Utility. + + + + + + rtstat + + + + rtstat + + Route Status Utility + + + + + + ss + + + + ss + + Similar to the netstat command. Shows active connections. + + + + + + tc + + + + tc + + Traffic Controlling Executable. This is for QOS/COS + implementations. + + + tc qdisc allows you to setup the queueing + discipline. + + + tc class allows you to setup classes based on + the queuing discipline scheduling. + + + tc estimator allows you to estimate the + network flow into a network. + + + tc filter allows you to setup the QOS/COS + packet filtering. + + + tc policy allows you to setup the QOS/COS + policies. + + + + + + diff --git a/chapter06/net-tools.xml b/chapter06/net-tools.xml deleted file mode 100644 index 9f4388b5e..000000000 --- a/chapter06/net-tools.xml +++ /dev/null @@ -1,188 +0,0 @@ - - - %general-entities; -]> - -Net-tools-&net-tools-version; - - -Net-tools - - -<para>The Net-tools package contains programs for basic networking.</para> - -<segmentedlist> -<segtitle>&buildtime;</segtitle> -<segtitle>&diskspace;</segtitle> -<seglistitem><seg>0.1 SBU</seg><seg>9.4 MB</seg></seglistitem> -</segmentedlist> - -<segmentedlist> -<segtitle>Net-tools installation depends on</segtitle> -<seglistitem><seg>Bash, Binutils, Coreutils, GCC, -Glibc, Make</seg></seglistitem> -</segmentedlist> -</sect2> - -<sect2 role="installation"> -<title>Installation of Net-tools - -If you don't know what to answer to all the questions asked during the -make config phase below, then just accept the defaults. -This will be just fine in the majority of cases. What you're asked here is a -bunch of questions about which network protocols you've enabled in your -kernel. The default answers will enable the tools from this package to work -with the most common protocols: TCP, PPP, and several others. You still need -to actually enable these protocols in the kernel -- what you do here is merely -telling the package to include support for those protocols in its programs, -but it's up to the kernel to make the protocols available. - -This package also has issues with being compiled by GCC 3.4, which we -fix by applying the following patch: - -patch -Np1 -i ../net-tools-&net-tools-version;-gcc34-3.patch - -Fix an issue that arises when building against Linux 2.6: - -sed -i 's@x25_address@struct &@' lib/x25_sr.c - -Now prepare Net-tools for compilation (if you intend to accept the -defaults, you can skip all the questions by running yes "" | -make config instead): - -make config - -Compile the package: - -make - -Now install it: - -make update - - - - -Contents of Net-tools - - -Installed programs -arp, dnsdomainname (link to hostname), domainname (link to -hostname), hostname, ifconfig, nameif, netstat, nisdomainname (link to hostname), -plipconfig, rarp, route, slattach and ypdomainname (link to hostname) - - -Short descriptions - - -arp - -arp -is used to manipulate the kernel's ARP cache, -usually to add or delete an entry, or to dump the entire cache. - - - - -dnsdomainname - -dnsdomainname -reports the system's DNS (Domain Name Server) domain name. - - - - -domainname - -domainname -reports or sets the system's NIS/YP domain name. - - - - -hostname - -hostname -reports or sets the name of the current host system. - - - - -ifconfig - -ifconfig -is the main utility for configuring network interfaces. - - - - -nameif - -nameif -names network interfaces based on MAC addresses. - - - - -netstat - -netstat -is used to report network connections, routing tables, and interface -statistics.. - - - - -nisdomainname - -nisdomainname -does the same as domainname. - - - - -plipconfig - -plipconfig -is used to fine tune the PLIP device parameters, to improve its performance. - - - - -rarp - -rarp -is used to manipulate the kernel's RARP table. - - - - -route - -route -is used to manipulate the IP routing table. - - - - -slattach - -slattach -attaches a network interface to a serial line. This allows you to use normal -terminal lines for point-to-point links to other computers. - - - - -ypdomainname - -ypdomainname -does the same as domainname. - - - - - - - -- cgit v1.2.3-54-g00ecf