Put the kernel tarball in a directory where you have permission (eg. /home/name) and then unpack it:
tar xvf linux-2.6.30.9.tar.gz
Apply linux-2.6.30.9-tunat.patch to it:
patch -p1 -i linux-2.6.30.9-tunat.patch
Put the Quagga tarball in directory /home/name and unpack it:
tar xvf quagga.0.99.15.tar.gz
Apply quagga-0.99.15-tunat.patch to it:
patch -p1 -i quagga-0.99.15-tunat.patch
Put the Iproute2 tarball in directory /home/name and unpack it:
tar xvf iproute2-2.6.31.tar.gz
Apply iproute2-2.6.31-tunat.patch to it:
patch -p1 -i iproute2-2.6.31-tunat.patch
Before complile source files of quaaga and iproute2, we need to modify a linux system header:
/usr/include/rtnetlink.hLet's add two route message attribution RTA_TE and RTA_DF to the data type:
enum rtattr_type_tthe patch file is linux-header.patch. Perform following line with administrator privileges:
patch -p0 -i linux-header
You should now have the sources correctly installed.
Make sure you have no stale .o files and dependencies lying around:
cd linux-2.6.30.9-tunat
make mrproper
Before you configure kernel make sure you have development tools (gcc compilers and related tools) are installed on your system. Make sure you have at least gcc 3.2 available.
make config
You have to select different options as per your need. To enable Tunnel-AT routing, "IP: Tunnel-AT routing" option should be selected. The option is located in
Networking Support -> Networking Options -> IP: Tunnel-AT routingStart compiling to create a compressed kernel image, enter:
make
Start compiling kernel modules:
make modules
It is also possible to do "make install" if you have grub installed to suit the kernel makefiles:
make install
To do the actual install you have to be root, but none of the normal build should require that.
If you configured any of the parts of the kernel as `modules', you will also have to do "make modules_install".
make modules_install
Keep a backup kernel handy in case something goes wrong. Make sure you keep a backup of the modules corresponding to that kernel, as well. If you are installing a new kernel with the same version number as your working kernel, make a backup of your modules directory before you do a "make modules_install".
Type the following command in a shell prompt:
cd /boot
mkinitramfs -o initrd.img-2.6.30.9-tunat 2.6.30.9-tunat
update-grub
Reboot with the new kernel and enjoy.
./configure --prefix=/usr/local --sysconfdir=/etc/quagga \
--localstatedir=/var/run/quagga \
--enable-user=quagga --enable-group=quagga --enable-vty-group=quagga
After configuring Quagga, you will need to compile it for your system. Simply issue the command make in the root of the source directory and the software will be compiled.
make
Installing the software to your system consists of copying the compiled programs and supporting files to a standard location. After the installation process has completed, these files have been copied from your work directory to `/usr/local/bin', and `/usr/local/etc'.
To install the Quagga suite, issue the following command with administrator privileges at your shell prompt:
make install
./configure
make
make install
addusr quagga
Complete the following steps according to the output tips.
+------------+ +--------+ +------------+ / \ .1 | | .2 / \ | 192.168.2.0/24 |---------+ host A +--------| 192.168.5.0/24 | \ / | | \ / +------------+ +--------+ +------------+ |
+------------------------------------+ | | | ! | | ! zebra configuration file | | ! | | ! Route-A | | ! | | | | hostname Router-A | | password zebra | | enable password zebra | | | | ! Interface setting | | interface eth0 | | ip address 192.168.5.2/24 | | | | interface eth1 | | ip address 192.168.2.1/24 | | | | interface lo | | | | line vty | | | | log file /root/zebra.log | | | +------------------------------------+ |
The configurtion file is:
+------------------------------------+ | | | ! | | ! OSPFd configuration file | | ! | | ! Route-A | | ! | | | | hostname ospfd | | password zebra | | | | ! Interface | | interface eth0 | | interface eth1 | | | | ! Route | | router ospf | | network 192.168.2.0/24 area 0 | | router ospf | | network 192.168.5.0/24 area 0 | | | | line vty | | log file /root/ospfd.log | | | +------------------------------------+ |