===== Quagga =====
{{tag>Linux Routing}}
This was done on a Raspberry Pi.
0) Elevate to root and install\\
$ sudo su -
# apt-get update
# apt-get install quagga quagga-doc
1) Fix VTYSH paging for root and sudo users\\
# echo "export VTYSH_PAGER=more" >> /etc/bash.bashrc
# echo "VTYSH_PAGER=more" >> /etc/environment
# visudo
Defaults env_keep += "VTYSH_PAGER"
2) Enable IP forwarding\\
# echo "net.ipv4.ip_forward = 1" >> /etc/sysctl.conf
3) Create config files\\
# cp /usr/share/doc/quagga/examples/ospfd.conf.sample /etc/quagga/ospfd.conf
# cp /usr/share/doc/quagga/examples/vtysh.conf.sample /etc/quagga/vtysh.conf
# cp /usr/share/doc/quagga/examples/zebra.conf.sample /etc/quagga/zebra.conf
# chown quagga.quaggavty /etc/quagga/*.conf
# chmod 640 /etc/quagga/*.conf
4) Verify vtysh is enabled\\
# cat /etc/quagga/debian.conf
vtysh_enable=yes
5) Enable daemons\\
# cat /etc/quagga/daemons
zebra=yes
ospfd=yes
6) Reboot Raspberry Pi\\
# reboot
7) Configure router\\
$ sudo vtysh
Hello, this is Quagga (version 0.99.22.4).
Copyright 1996-2005 Kunihiro Ishiguro, et al.
#
----
[[http://openmaniak.com/quagga_tutorial.php]]