Because the curious how to make Router in Linux, I was browsing to search for how to install Linux on the router using the quagga. After finding several blogs and the web of quagga load …. finally I make a summaryand conclusions of how to install the router quagga. This posting only as a reminder, because my type of people forgetful.
In this post I use the Ubuntu Linux distribution, because it is more practical and effective. Let’s see at the following description…. enjoy
1. Install source
#apt-get install quagga quagga-doc
2. Edit file daemons
#mcedit /etc/quagga/daemons
3. Change status no / yes on suitable routing protocol
zebra=yes //Compulsory “yes”
bgp=no //Border gateway protocol
ospf=no //OSPF with IPV4
ospf6d=no //OSPF with IPv6
ripd=yes //RIP versi 2
ripngd=no //RIP with IPV6
4. Make file configuration zebra.conf and ripd.conf, by copy from sample file configuration
#cp /usr/share/doc/quagga/examples/zebra.conf.sample /etc/quagga/zebra.conf
#cp /usr/share/doc/quagga/examples/ospfd.conf.sample /etc/quagga/ospfd.conf
5. Set password [optional]
#echo “password password” > /etc/quagga/zebra.conf
6. Change ownership user and group from files configuration in /etc/quagga, and change access permission
#chown quagga.quaggavty /etc/quagga/*.conf
#chmod 640 /etc/quagga/*.conf
7. Start daemons
#/etc/init.d/quagga
8. Connect quagga
#telnet localhost zebra
9. Connect routing protocol
#telnet localhost [ ospf | bgp | rip | eigrp]
=============OPTIONAL===============
1. Create file /etc/quagga/debian.conf
#mcedit /etc/quagga/debian.conf
- Examples of the contents of the file, according to the needs of -
# If this option is set the /etc/init.d/quagga script automatically loads
# the config via “vtysh -b” when the servers are started.
# Check /etc/pam.d/quagga if you intend to use “vtysh”!
#
vtysh_enable=yes //router di setting via VTYSH
zebra_options=” –daemon -A ” // “–daemon -A” , berarti dapat di access dari berbagai IP
bgpd_options=” –daemon -A “
ospfd_options=” –daemon -A 127.0.0.1 192.168.1.104″ //dapat di access dari localhost dan 192.168.1.104
ospf6d_options=”–daemon -A “
ripd_options=” –daemon -A “
ripngd_options=”–daemon -A “
isisd_options=” –daemon -A “
============Setting VTYSH===========
1. Create file configuration vtysh
#touch /etc/quagga/vtysh.conf
- Examples of the contents of the file, according to the needs of -
/etc/quagga/vtysh.conf
!
! Sample
!
! service integrated-vtysh-config
! Jika di disable maka file penyimpanan konfigurasi akan terpisah (misal ; zebra.conf dan ospfd.conf), jika di enable akan jadi satu pada Quagga.conf
hostname quagga-router
username root nopassword
!
Note :
2.That does not happen in the blink when the remote with vtysh, do not forget to do the following
#echo VTYSH_PAGER=more > /etc/environnement










7. Start daemons
#/etc/init.d/quagga
Needs a parameter, start or restart should work.
#/etc/init.d/quagga restart
That’s right!! I forgot about it..
Thanks dude
Sorry i meant linux fedora,delete my prev comment
basically, yes it’s same..
really nice explanation
How to configure bgp in quagga ..?
basically, it’s same
hi? when i configuring quagga 0.99.21 it’s saying integer expected expression line 180. How to solve?
we need to know what’s error in line 180 that you mean. Can you show me your configuration / error message ?
How to configure point 9 ??
#telnet localhost [ ospf | bgp | rip | eigrp]
what is that mean ??
it’s for testing purpose, is your routing protocol running properly in your machine or not ? You can choose ospf, or bgp, or rip, etc.