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

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

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

sudo vtysh
sudo telnet localhost 2605
sudo telnet localhost 2601

See also my article:
Setting up BGP in Quagga

Did my article help you? How about buying me a cup of coffee as an encouragement? Buy me a coffe.

Leave a comment

Leave a Reply