This tutorial is for those who are interested in installing and configuring OSPF protocol on Ubuntu 10.04
I will try to make this tutorial as easy as possible.
To move on I will put them down as steps that should be followed one by one in successful accomplishment of the above said task.
To begin with I will assume you have installed Ubuntu 10.04 which is completely updated.
Now goto your Ubuntu software center and search for ospf , you will see something like this
I will try to make this tutorial as easy as possible.
To move on I will put them down as steps that should be followed one by one in successful accomplishment of the above said task.
To begin with I will assume you have installed Ubuntu 10.04 which is completely updated.
Now goto your Ubuntu software center and search for ospf , you will see something like this
As you can see I have installed the ospf routing deamon.
Now open Terminal , and start putting in these commands, which are as follows:
#sudo su
#nano /etc/quagga/daemons
Edit it like this,
zebra=yes
bgpd=no
ospfd=yes
ospf6d=no
ripd=no
ripngd=no
Save it and close it, and keep going!
#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
#cp /usr/share/doc/quagga/examples/vtysh.conf.sample /etc/quagga/vtysh.conf
#nano /etc/quagga/debian.conf
Edit it like this,
# 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
zebra_options=" --daemon -A "
bgpd_options=" --daemon -A "
ospfd_options=" --daemon -A "
ospf6d_options="--daemon -A "
ripd_options=" --daemon -A "
ripngd_options="--daemon -A "
isisd_options=" --daemon -A "
Save it - Exit, and keep moving forward,
#nano /etc/quagga/vtysh.conf
Edit it like this,
!
! Sample
!
! service integrated-vtysh-config
hostname quagga-router
username root nopassword
!
Save it,Exit - Keep moving !
#nano /etc/quagga/ospfd.conf
Edit it like this,
! Zebra configuration saved from vty
! 2012/03/10 05:06:34
!
hostname ospf
password zebra
enable password zebra
!
!
!
interface eth0
!
interface eth1
!
interface lo
!
router ospf
network 192.168.10.101/24 area 0.0.0.0 /* This was IP Address on eth1 - You should put your own*/
!
line vty
!
Save,Exit - Move on bro !
#echo VTYSH_PAGER=more > /etc/environment
#echo "1" > /proc/sys/net/ipv4/ip_forward
#echo "net.ipv4.ip_forward = 1" >> /etc/sysctl.conf
Log out and log back in !
Open the terminal and get to work !
#sudo su
#chown quagga.quaggavty /etc/quagga/*.conf
#chmod 640 /etc/quagga/*.conf
#/etc/init.d/quagga restart
#vtysh - c "write" ( save all your configuration )
#vtysh - c "show ip forwarding" ( this should indicate as being on if its correctly done )
#vtysh - c "show ip route" ( this should tell you that your ospf is working via ethX )
#vtysh - c "show ip opsf neighbor" ( shows the neighbor if any )
#vtysh - c "show ip ospf database" ( shows the entire activity )
Thats ends my tutorial of how to configure and install and run the OSPF protocol on ubuntu 10.04 LTS. I hope i have explained all the step as in detail and as easy as possible. If you are running through problems comment below and i will try to answer back your queries as early as possible, i hope it helps anybody out there !!!
No comments:
Post a Comment