It is currently Wed Sep 08, 2010 1:39 am


All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Quagga on Qemu PC host with linux-microcore-2.11.5.img
PostPosted: Sun Jul 04, 2010 11:53 pm 
Offline

Joined: Mon Nov 10, 2008 10:31 am
Posts: 257
Location: Slovakia
Hi gyus,
this is the tutorial how to setup Linux router Quagga on Qemu PC host that runs Linux Microcore. Quagga is 0.99.15 version and was configured only for IPv4 routing protocols.

1. Download the Linux Microcore with installed Quagga
In the time of writing this tutorial there is not Quagga included in the official linux-microcore-2.11.5 image that is available in the Download section. So I post my own link for download:

Quote:
http://rapidshare.com/files/404752444/linux-microcore-2.11.5.img.html


2. Check if Quagga is really installed in the micocore image
a) Run Qemu
qemu -hda ./linux-microcore-2.11.5.img

b)
ls /mnt/hda1/tce/optional/ | grep quagga
quagga.tcz
quagga.tcz.md5.txt

If you don't see these two files try another image with installed quagga

c) Check if Quagga is included in the list of after boot running extensions
cat /mnt/hda1/tce/onboot.lst | grep quagga
quagga.tcz

Now it is the time to configure Microcore for Quagga:

3. Run Zebra (kernel routing manager)
/usr/local/sbin/zebra
privs_init: could not lookup user quagga

So we need to login as root and create user quagga:
su
root

Yo can enter the blank password with ENTER key for quagga user. Now you can check if you correctly created the user quagga and get some more information about the user:
cat /etc/passwd
quagga:x:1000:1000:Linux user,,,:/home/quagga:/bin/sh

We created user quagga with user ID 1000 that is member of group quagga with group ID 1000. Home directory is /home/quagga and the preferred shell is Bourne shell for this user.

Now we can invoke zebra the second time:
/usr/local/sbin/zebra
vty_read_config: failed to open configuration file /usr/local/etc/zebra.conf : No such file or directory

Let's create configuration file for zebra deamon and all other daemons (ripd, bgpd, ospfd). Minimally you have to setup the VTY password for each daemon you want to run.

echo "password zebra" > /usr/local/etc/zebra.conf
echo "password zebra" > /usr/local/etc/ripd.conf
echo "password zebra" > /usr/local/etc/ospfd.conf
echo "password zebra" > /usr/local/etc/bgpd.conf


4. Make zebra and routing protocols running like daemons after boot
Edit "/opt/bootlocal.sh" with vi editor and add these lines to the end
/usr/local/sbin/zebra -u root -d
/usr/local/sbin/ripd -u root -d
/usr/local/sbin/ospfd -u root -d
/usr/local/sbin/bgpd -u root -d


5. We can setup quagga now but we need to make changes and files we created persistent.
Use vi editor for modifying "/opt/.filetool.lst" and add the lines to the end
/usr/etc/
/usr/local/etc/
/usr/local/bin/backup


6. Optionally - create a script named "backup" that should make the backup of your configuration files easier
echo"/usr/bin/filetool.sh backup" > /usr/local/bin/backup
chmod +x /usr/local/bin/backup


Now run the script:
/usr/local/bin/backup

You should run this script every time before you turn off the Qemu PC host.

This is end of tutorial. For more information about quagga go to link:

Quote:
http://www.quagga.net/docs/docs-info.php#SEC124


Also there is the image with configured Quagga ready for run in GNS3:
Quote:
http://rapidshare.com/files/404983367/linux-microcore-2.11.5.img.html


Cheers,





_________________
Brezular


Top
 Profile E-mail  
 
 Post subject: Re: Quagga on Qemu PC host with linux-microcore-2.11.5.img
PostPosted: Mon Jul 05, 2010 7:48 am 
Offline

Joined: Fri Nov 07, 2008 12:04 pm
Posts: 97
thanks, cheapest routing solution on the market at this moment.

_________________
"Give a man a fish and he will eat for a day. Teach a man to fish and he will eat for a lifetime.”

GNS3 Lab Workbook v0.2

Image Image


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

phpBB SEO