Installing Quagga on Ubuntu Server 18

I will give an example of installing Quagga in Ubuntu Server 18.04 (bionic).

Run the installation command:

sudo apt install quagga

I have installed version 1.2.4 and such packages: quagga quagga-bgpd quagga-core quagga-isisd quagga-ospf6d quagga-ospfd quagga-pimd quagga-ripd quagga-ripngd.
The services in /etc/systemd/system/multi-user.target.wants/ were configured, the user quagga and the group quagga, quaggatvy were created.

You can also install the documentation (you can find it in /usr/share/doc/quagga-doc):

sudo apt install quagga-doc

After installing quagga, we do not forget to enable packet forwarding and, if necessary, disable rp_filter, uncomment it in /etc/sysctl.conf (for IPv4):

net.ipv4.ip_forward=1

Copy the sample configuration files and change to fit your needs:

cp /usr/share/doc/quagga-core/examples/vtysh.conf.sample /etc/quagga/vtysh.conf
cp /usr/share/doc/quagga-core/examples/zebra.conf.sample /etc/quagga/zebra.conf
cp /usr/share/doc/quagga-core/examples/bgpd.conf.sample /etc/quagga/bgpd.conf
sudo chown quagga:quagga /etc/quagga/*.conf
sudo chown quagga:quaggavty /etc/quagga/vtysh.conf
sudo chmod 640 /etc/quagga/*.conf

To write logs:

mkdir /var/log/quagga/
chown quagga:quagga /var/log/quagga/
touch /var/log/zebra.log
chown quagga:quagga/var/log/zebra.log

Run the necessary services:

sudo service zebra start
sudo service zebra status
sudo service bgpd start
sudo service bgpd status

Check whether the services start at system startup:

sudo systemctl is-enabled zebra.service
sudo systemctl is-enabled bgpd.service
sudo systemctl enable zebra.service
sudo systemctl enable bgpd.service

Disable unnecessary services:

systemctl status ospfd

systemctl is-enabled ospfd
systemctl is-enabled ospf6d
systemctl is-enabled ripd
systemctl is-enabled ripngd
systemctl is-enabled isisd

systemctl disable ospfd
systemctl disable ospf6d
systemctl disable ripd
systemctl disable ripngd
systemctl disable isisd

Connect to the vtysh, bgpd and zebra terminal as follows:

sudo vtysh
sudo telnet localhost 2605
sudo telnet localhost 2601

See also my articles:

Leave a comment

Leave a Reply