>Install the Quagga routing daemon:
<
>`sudo apt-get install quagga && sudo mkdir -p /var/log/quagga && sudo chown quagga:quagga /var/log/quagga`
<
>
<
>Enable IPv6 Forwarding:
<
>`sed 's/#net.ipv6.conf.all.forwarding=1/net.ipv6.conf.all.forwarding=1/g' /etc/sysctl.conf | sudo tee /etc/sysctl.conf`
<
>`echo "net.ipv6.conf.default.forwarding=1" | sudo tee -a /etc/sysctl.conf`
<
>`sudo sysctl -p`
<
>
<
>Enable IPv4 Unicast Forwarding:
<
>`echo "net.ipv4.conf.all.forwarding=1" | sudo tee -a /etc/sysctl.conf`
<
>`echo "net.ipv4.conf.default.forwarding=1" | sudo tee -a /etc/sysctl.conf`
<
>`sudo sysctl -p`
<
>
<
>Enable IPv4 Multicast Forwarding:
<
>`echo "net.ipv4.conf.all.mc_forwarding=1" | sudo tee -a /etc/sysctl.conf`
<
>`echo "net.ipv4.conf.default.mc_forwarding=1" | sudo tee -a /etc/sysctl.conf`
<
>`sudo sysctl -p`
<
>
<
>Create the configuration files:
<
>`sudo nano `[[attachment:bgpd.conf|/etc/quagga/bgpd.conf]]
<
>`sudo nano `[[attachment:isisd.conf|/etc/quagga/isisd.conf]]
<
>`sudo nano `[[attachment:ospf6d.conf|/etc/quagga/ospf6d.conf]]
<
>`sudo nano `[[attachment:ospfd.conf|/etc/quagga/ospfd.conf]]
<
>`sudo nano `[[attachment:pimd.conf|/etc/quagga/pimd.conf]]
<
>`sudo nano `[[attachment:ripd.conf|/etc/quagga/ripd.conf]]
<
>`sudo nano `[[attachment:ripngd.conf|/etc/quagga/ripngd.conf]]
<
>`sudo nano `[[attachment:vtysh.conf|/etc/quagga/vtysh.conf]]
<
>`sudo nano `[[attachment:zebra.conf|/etc/quagga/zebra.conf]]
<
>
<
>Change the owner and the mode of the configuration files:
<
>`sudo chown quagga:quagga /etc/quagga/bgpd.conf && sudo chmod 640 /etc/quagga/bgpd.conf`
<
>`sudo chown quagga:quagga /etc/quagga/isisd.conf && sudo chmod 640 /etc/quagga/isisd.conf`
<
>`sudo chown quagga:quagga /etc/quagga/ospf6d.conf && sudo chmod 640 /etc/quagga/ospf6d.conf`
<
>`sudo chown quagga:quagga /etc/quagga/ospfd.conf && sudo chmod 640 /etc/quagga/ospfd.conf`
<
>`sudo chown quagga:quagga /etc/quagga/pimd.conf && sudo chmod 640 /etc/quagga/pimd.conf`
<
>`sudo chown quagga:quagga /etc/quagga/ripd.conf && sudo chmod 640 /etc/quagga/ripd.conf`
<
>`sudo chown quagga:quagga /etc/quagga/ripngd.conf && sudo chmod 640 /etc/quagga/ripngd.conf`
<
>`sudo chown quagga:quaggavty /etc/quagga/vtysh.conf && sudo chmod 660 /etc/quagga/vtysh.conf`
<
>`sudo chown quagga:quagga /etc/quagga/zebra.conf && sudo chmod 640 /etc/quagga/zebra.conf`
<
>
<
>Prevent a daemon from running:
<
>`sudo unlink /etc/systemd/system/multi-user.target.wants/bgpd.service`
<
>`sudo unlink /etc/systemd/system/multi-user.target.wants/isisd.service`
<
>`sudo unlink /etc/systemd/system/multi-user.target.wants/ospf6d.service`
<
>`sudo unlink /etc/systemd/system/multi-user.target.wants/ospfd.service`
<
>`sudo unlink /etc/systemd/system/multi-user.target.wants/pimd.service`
<
>`sudo unlink /etc/systemd/system/multi-user.target.wants/ripd.service`
<
>`sudo unlink /etc/systemd/system/multi-user.target.wants/ripngd.service`
<
>`sudo unlink /etc/systemd/system/multi-user.target.wants/zebra.service`
<
>
<
>Reinstate a daemon to run:
<
>`sudo ln -st /etc/systemd/system/multi-user.target.wants /lib/systemd/system/bgpd.service`
<
>`sudo ln -st /etc/systemd/system/multi-user.target.wants /lib/systemd/system/isisd.service`
<
>`sudo ln -st /etc/systemd/system/multi-user.target.wants /lib/systemd/system/ospf6d.service`
<
>`sudo ln -st /etc/systemd/system/multi-user.target.wants /lib/systemd/system/ospfd.service`
<
>`sudo ln -st /etc/systemd/system/multi-user.target.wants /lib/systemd/system/pimd.service`
<
>`sudo ln -st /etc/systemd/system/multi-user.target.wants /lib/systemd/system/ripd.service`
<
>`sudo ln -st /etc/systemd/system/multi-user.target.wants /lib/systemd/system/ripngd.service`
<
>`sudo ln -st /etc/systemd/system/multi-user.target.wants /lib/systemd/system/zebra.service`
<
>
<
>Restart the daemons:
<
>`sudo systemctl restart zebra.service`
<
>`sudo systemctl restart bgpd.service`
<
>`sudo systemctl restart pimd.service`
<
>`sudo systemctl restart ripd.service`
<
>`sudo systemctl restart ripngd.service`
<
>`sudo systemctl restart ospf6d.service`
<
>`sudo systemctl restart isisd.service`
<
>`sudo systemctl restart ospfd.service`
<
>
<
>
----
''[[http://Jonathan-Ferguson.tk/|Jonathan Ferguson]], [[https://wiki.edubuntu.org/JonathanFerguson|Ubuntu Wiki]], [[https://wiki.edubuntu.org/JonathanFerguson/Quagga|Quagga Routing Daemon]], [[https://wiki.edubuntu.org/JonathanFerguson/Quagga]]''
----