Dynagen Install with CentOS

Dynamips is a Cisco IOS emulator.  Dynagen is a way to wire-up your routers to make a fully-capable network.  It’s most common use is for lab-work.  You can use it to help with your studies or test out features and configurations before deploying them into your production network.  Many people prefer GNS3 as a graphical front-end to Dynagen.  However, for me, the graphical use just takes up resources for me and is more “eye-candy” than functional.  However, it may be your cup-of-tea.

To get the full features of Dynagen, you must install libpcap library (or winpcap for Windows) in order to take advantage of the built-in network interfaces of your machine.  For lab-work, this is a must, as you will usually want to talk to external physical switches and/or devices.  If it’s not already installed, install it:

 


        [root@sys1 ~]# yum install libpcap

Next, download Dynamips from http://sourceforge.net/projects/dyna-gen/files/  I’m going to be installing on CentOS 5.8, so I’m going to download the RPM file from: http://sourceforge.net/projects/dyna-gen/files/dynamips%20Linux%20RPM/0.2.8-RC2/dynamips-0.2.8RC2-1.i386.rpm/download
 


	[root@sys1 ~]# rpm -Uvh dynamips-0.2.8RC2-1.i386.rpm
	error: Failed dependencies:
	        libpcap.so.0.9 is needed by dynamips-0.2.8RC2-1.i386
	        

Woops! Let me check if libpcap is, in fact, installed:
 


	[root@sys1 ~]# rpm -qa libpcap
	libpcap-0.9.4-15.el5

Hmm…. looks like I’ve got it.  Let me check if if libpcap.so.0.9 is included
 


	[root@sys1 ~]# rpm -ql libpcap
	/usr/lib/libpcap.so.0
	/usr/lib/libpcap.so.0.9
	/usr/lib/libpcap.so.0.9.4
	/usr/share/doc/libpcap-0.9.4
	/usr/share/doc/libpcap-0.9.4/CHANGES
	/usr/share/doc/libpcap-0.9.4/LICENSE
	/usr/share/doc/libpcap-0.9.4/README
	/usr/share/man/man3/pcap.3.gz

Yep!  I’ve got it.  Looks like the installer couldn’t tell for some reason.  I’m going to install it without checking dependencies.
 


	[root@sys1 ~]# rpm -Uvh --nodeps dynamips-0.2.8RC2-1.i386.rpm
Preparing...                ########################################### [100%]
	   1:dynamips               ########################################### [100%]
	   

Now that I’ve got dynamips, it’s time to install dynagen.  I’m downloading http://sourceforge.net/projects/dyna-gen/files/dynagen%20source%20_%20Linux/dynagen%200.11.0/dynagen-0.11.0-1.fc9.noarch.rpm/download
 


	[root@sys1 ~]# rpm -Uvh dynagen-0.11.0-1.fc9.noarch.rpm
Preparing...                ########################################### [100%]
	   1:dynagen                ########################################### [100%]
	[root@sys1 ~]#

Done! Let’s check:
 


	[root@sys1 ~]# whereis dynagen
	dynagen: /usr/bin/dynagen.ini /usr/bin/dynagen

Looks like the executable is in my path /usr/bin, and the configuration file is /usr/bin/dynagen.ini

I’ll post my configurations at another time.  Happy Dynagen’ing!

Share This Page : Share on TwitterShare on FacebookShare on GooglePlusShare on PinterestShare on Linkedin