From a08896444cac8ccef03f233e1f7bb40c0f849109 Mon Sep 17 00:00:00 2001 From: Matthew Burgess Date: Wed, 14 Jul 2004 20:49:05 +0000 Subject: [PATCH] * 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 --- chapter01/changelog.xml | 9 ++ chapter03/packages.xml | 14 +-- chapter03/patches.xml | 16 +-- chapter06/chapter06.xml | 2 +- chapter06/iproute2.xml | 241 ++++++++++++++++++++++++++++++++++++++++ chapter06/net-tools.xml | 188 ------------------------------- chapter07/network.xml | 24 ++-- general.ent | 4 +- 8 files changed, 283 insertions(+), 215 deletions(-) create mode 100644 chapter06/iproute2.xml delete mode 100644 chapter06/net-tools.xml diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index bf3773ab2..fe40c9e28 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -47,6 +47,8 @@ first a summary, then a detailed log. hotplug-2004_04_01-device-2.patch hotplug-2004_04_01-isapnp-2.patch inetutils-1.4.2-kernel_headers-1.patch +iproute2-2.6.X-ss040702 +iproute2-2.6.X-ss040702-remove_db-1.patch linux-libc-headers-2.6.7.0 module-init-tools-3.0 net-tools-1.60-gcc34-3.patch @@ -71,11 +73,18 @@ first a summary, then a detailed log. gcc-2.95.3 kbd-1.12-more-programs-1.patch modutils-2.4.25 +net-tools-1.60 net-tools-1.60-miitool-gcc33-1.patch procinfo-18 +July 14, 2004 [matt]: Upgraded to lfs-bootscripts-2.2.0. + + +July 14, 2004 [matt]: Swapped iproute2 in for net-tools (kudos +and many thanks to Jim Gifford) + July 14, 2004 [matt]: chapter06/udev.xml - Explained udevdir option diff --git a/chapter03/packages.xml b/chapter03/packages.xml index 9042a14ab..ef15bcaf6 100644 --- a/chapter03/packages.xml +++ b/chapter03/packages.xml @@ -186,6 +186,13 @@ + +IPRoute2 (&iproute2-version;) - 230 KB: + + + + + Kbd (&kbd-version;) - 617 KB: @@ -277,13 +284,6 @@ - -Net-tools (&net-tools-version;) - 194 KB: - - - - - Patch (&patch-version;) - 182 KB: diff --git a/chapter03/patches.xml b/chapter03/patches.xml index 926ebae8f..a3779eed5 100644 --- a/chapter03/patches.xml +++ b/chapter03/patches.xml @@ -24,7 +24,7 @@ following: Coreutils Suppress Hostname, Uptime, Kill, Su Patch - 16 KB: - + @@ -100,6 +100,13 @@ following: + +IPRoute2 Disable DB Patch - 1 KB: + + + + + Man 80-Columns Patch - 1 KB: @@ -114,13 +121,6 @@ following: - -Net-tools GCC 3.4 Compatibility Patch - 3 KB: - - - - - Perl Libc Patch - 1 KB: 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. - - - - - - - diff --git a/chapter07/network.xml b/chapter07/network.xml index 19109c01e..3113aec58 100644 --- a/chapter07/network.xml +++ b/chapter07/network.xml @@ -25,22 +25,27 @@ run-level directories Which interfaces are brought up and down by the network script depends on the files in the /etc/sysconfig/network-devices directory. This -directory should contain files in the form of ifconfig.xyz, where xyz is a -network interface name (such as eth0 or eth0:1) +directory should contain subdirectories in the form of +ifconfig.xyz, where xyz is a network +interface name (such as eth0 or eth0:1) -If you decide to rename or move this /etc/sysconfig/network-devices -directory, make sure you update the /etc/sysconfig/rc file as well and +If you decide to rename or move this +/etc/sysconfig/network-devices directory, +make sure you update the /etc/sysconfig/rc file as well and update the network_devices by providing it with the new path. -Now, new files are created in that directory. -The following command creates a sample ifconfig.eth0 file: +Now, new files are created in that directory. The following command +creates a sample ipv4 file for the +eth0 device: -cat > /etc/sysconfig/network-devices/ifconfig.eth0 << "EOF" +cd /etc/sysconfig/network-devices && +mkdir ifconfig.eth0 && +cat > ifconfig.eth0/ipv4 << "EOF" ONBOOT=yes -SERVICE=static +SERVICE=ipv4-static IP=192.168.1.1 GATEWAY=192.168.1.2 -NETMASK=255.255.255.0 +NETMASK=24 BROADCAST=192.168.1.255 EOF @@ -75,6 +80,7 @@ following: cat > /etc/resolv.conf << "EOF" # Begin /etc/resolv.conf +domain {[Your Domain Name]} nameserver [IP address of your nameserver] # End /etc/resolv.conf diff --git a/general.ent b/general.ent index 832254799..834c66988 100644 --- a/general.ent +++ b/general.ent @@ -20,7 +20,7 @@ - + @@ -41,6 +41,7 @@ + @@ -53,7 +54,6 @@ -