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 QuaggaIn 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/zebravty_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 bootEdit "/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 -d5. 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/backup6. Optionally - create a script named "backup" that should make the backup of your configuration files easierecho"/usr/bin/filetool.sh backup" > /usr/local/bin/backup
chmod +x /usr/local/bin/backupNow run the script:
/usr/local/bin/backupYou 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,