Prerequisites:
Before configuring and installing quagga, the following packages need to be installed first:
awk (gawk works fine)
libzebra (or libidzebra)
libreadline6-dev (version 5 should work as well)
libreadline6 (version 5 should work as well)
After installing this libraries, you should run sudo ldconfig just to be sure to refresh the library path.
First, the default user quagga needs to be created. Another user can be specified to the configure script, but this shows how to configure quagga with the default user:
[root@fedora ~]# adduser quagga [root@fedora ~]# mkdir /usr/local/quagga [root@fedora ~]# chown quagga:quagga /usr/local/quagga
After this, you need to call the ./configure script:
[root@fedora ~]# cd /usr/local/src/quagga-0.99.11/ [root@fedora quagga-0.99.11]# ./configure --sysconfdir=/usr/local/quagga --localstatedir=/usr/local/quagga
If some of the implemented protocols aren't needed, they can be disabled. Also, isis has to be enabled manually:
[root@fedora quagga-0.99.11]# ./configure --enable-isisd --disable-ripd \ > --disable-ripngd --disable-ospfd --disable-ospf6d \ > --sysconfdir=/usr/local/quagga --localstatedir=/usr/local/quagga
If you want to use isis,
Next:
[root@fedora quagga-0.99.11]# ./make
[root@fedora quagga-0.99.11]# ./make install
You will notice that the installation script has created sample config files for each deamon in the /usr/local/quagga folder. In order to work, you need to create conf files both in /usr/local/etc and in /usr/local/quagga. The config file in use will be the one in the directory set at configure time, in our case /usr/local/quagga.
Example for isisd:
[root@fedora quagga-0.99.11]# sudo cp /usr/local/quagga/isisd.conf.sample /usr/local/quagga/isisd.conf
[root@fedora quagga-0.99.11]# sudo cp /usr/local/quagga/isisd.conf.sample /usr/local/etc/isisd.conf
Now, you can run a daemon by calling:
[root@fedora quagga-0.99.11]# sudo isisd -dAdditional, a script for configuring and installing quagga (an example):
#!/bin/sh QPATH=~/QUAGGA/quagga-0.99.22 cd $QPATH case $1 in build) make distclean ./configure --enable-isisd --disable-ripngd --disable-ospf6d --sysconfdir=/usr/local/quagga --localstatedir=/usr/local/quagga --enable-vtysh make ;; install) make install ;; clean) make clean esac
No comments:
Post a Comment