Wednesday, April 29, 2015

Installing Quagga on Ubuntu 15.04

Installing Quagga on Ubuntu 15.04

Step 1:- Ubuntu 15.04 comes with quagga 0.99.23.1 release package. To install the software - 


root@R2:~# sudo apt-get install quagga

Step 2:- Create the following files in the etc/quagga folder using touch command as shown below 


root@R2:~# cd /etc/quagga/
root@R2:/etc/quagga# touch ospfd.conf
root@R2:/etc/quagga# touch zebra.conf
root@R2:/etc/quagga# touch ospf6d.conf
root@R2:/etc/quagga# touch ripd.conf
root@R2:/etc/quagga# touch ripngd.conf
root@R2:/etc/quagga# touch isisd.conf
root@R2:/etc/quagga# touch bgpd.conf
root@R2:/etc/quagga# touch vtysh.conf

Step 3:- Enable all the protocols by editing  "daemons" file located in /etc/quagga directory


root@R2:/etc/quagga# vi daemons

Change following lines to YES except babled - because we don't need it for our test

zebra=yes
bgpd=yes
ospfd=yes
ospf6d=yes
ripd=yes
ripngd=yes
isisd=yes
babeld=no


Step 4:- Change the permission for quagga directory as follows


root@R2:/etc/quagga# chown quagga.quaggavty /etc/quagga/*.conf
root@R2:/etc/quagga# chmod 640 /etc/quagga/*.conf

Step 5: Edit the file to add  “export VTYSH_PAGER=more” in the /etc/bash.bashrc file

root@R2:/etc/quagga# vi /etc/bash.bashrc

Add the following line at the end of the file

export VTYSH_PAGER=more

Step 6:- Edit the file /etc/environment to add "VTYSH_PAGER=more"

root@R2:/etc/quagga# vi /etc/environment

Add the following line at the bottom of the file

VTYSH_PAGER=more

Step 7:- Restart the QUAGGA DAEMON  as shown below


root@R2:/etc/quagga# /etc/init.d/quagga restart
Restarting quagga (via systemctl): quagga.service.
root@R2:/etc/quagga# 


Step 8:- Verify to make sure that all the daemons are up and running


root@R2:/etc/quagga# ps -ef | grep qua
quagga    2589     1  0 15:42 ?        00:00:00 /usr/lib/quagga/zebra --daemon -A 127.0.0.1
quagga    2593     1  0 15:42 ?        00:00:00 /usr/lib/quagga/bgpd --daemon -A 127.0.0.1
quagga    2597     1  0 15:42 ?        00:00:00 /usr/lib/quagga/ripd --daemon -A 127.0.0.1
quagga    2601     1  0 15:42 ?        00:00:00 /usr/lib/quagga/ripngd --daemon -A ::1
quagga    2605     1  0 15:42 ?        00:00:00 /usr/lib/quagga/ospfd --daemon -A 127.0.0.1
quagga    2609     1  0 15:42 ?        00:00:00 /usr/lib/quagga/ospf6d --daemon -A ::1
quagga    2613     1  0 15:42 ?        00:00:00 /usr/lib/quagga/isisd --daemon -A 127.0.0.1
root      2618     1  0 15:42 ?        00:00:00 /usr/lib/quagga/watchquagga --daemon zebra bgpd ripd ripngd ospfd ospf6d isisd
root      2628  1001  0 15:43 pts/0    00:00:00 grep --color=auto qua
root@R2:/etc/quagga# 

Step 9: Connect with the Quagga Router using vtysh as shown below and save the config

root@R2:~# vtysh

Hello, this is Quagga (version 0.99.23.1).
Copyright 1996-2005 Kunihiro Ishiguro, et al.

R2# wri
Building Configuration...
Configuration saved to /etc/quagga/zebra.conf
Configuration saved to /etc/quagga/ripd.conf
Configuration saved to /etc/quagga/ripngd.conf
Configuration saved to /etc/quagga/ospfd.conf
Configuration saved to /etc/quagga/ospf6d.conf
Configuration saved to /etc/quagga/bgpd.conf
Configuration saved to /etc/quagga/isisd.conf
[OK]
R2# 

This completes the configuration of Quagga router on ubuntu 15.04...

Note :- if you still see the END message-- restart your VM/computer..

No comments:

Post a Comment