Quagga is a suite of dynamic routing protocols for Unix based systems and is a fork of GNU Zebra, which seems to be discontinued.
I attempted to follow the documentation but some steps seemed to be assumed so here is what I did to get it up and running on my Ubuntu 8.04 system – it should work on the majority of Linux distributions though…
I’m working with the latest stable release of quagga, currently at 0.98.6.
wget http://www.quagga.net/download/quagga-0.98.6.tar.gztar -xvvf quagga-0.98.6.tar.gz
I have customised the default directories quagga as it will help with managing permissions later. You need to be a superuser to install and run quagga initially, but when running, quagga will drop down to a least-privilege user (by default, called
quagga). This user can be customised, and you should check out the Quagga documentation for the full range of configuration switches.
cd quagga-0.98.6./configure –localstatedir=/var/run/quagga –sysconfdir=/usr/local/etc/quaggamakesudo sumake install
This folder is used when quagga runs to store pid’s etc.
groupadd quaggauseradd –g quagga quaggaid quagga
id command shows you the groups that quagga belongs to: check the
quagga user is in the
chgrp quagga /var/run/quaggachgrp quagga /usr/local/etc/quaggachown -R quagga /var/run/quaggachown –R quagga /usr/local/etc/quagga
For simplicity, I’ll just copy the sample configuration file…
cp /usr/local/etc/quagga/zebra.conf.sample /usr/local/etc/quagga/zebra.conf
/etc/serviceslists zebra and the numerous dynamic routing protocol ports as part of the Quagga suite by inserting the protocol bindings at Section 2.3 of the Quagga documentation and adding them if they don’t exist.
- As the root user type
zebra –d. This will run zebra in daemon mode without any errors.
- Exit out of superuser mode.
- To check zebra is running correctly, we’ll now telnet into the, zebra VTY by typing
telnet localhost 2601, which should present a hello message from Quagga with a CLI for managment purposes. The password specified in
zebra.confis used, which is
To get any use out of Quagga, you’ll need to run one of the routing daemons included, such as
ripd. I’ll leave this to another article. In any case, you need to make sure zebra has been invoked first. For this to work make sure you have created/copied the relevant configuration file within
ripd, the configuration file that needs to be present in this folder is
Hope this helps someone!