GNS3 Tutorials


CCNA Video Zone


Free Network Tools

Table Of Contents

(Tutorial) How To Install GNS3 on Centos/Redhat/Fedora .
8:28 PM Posted by NARESH

Subscribe to my blog to receive free updates direct to your inbox. Enter your email Subscribe to RSS feed. Subscribe

You won't find detailed instructions for GNS3 installation on Centos/Redhat/Fedora over the net, So I decided to make one for our certcollection members. Installing GNS3 on Centos/Redhat/Fedora can be very tedious task. But If you follow my Steps given below you can setup and run GNS3 without any difficulty. Since Qt 4.5.1 binary which is required for GNS3 is not available for these OS's, we'll have to compile it from the source. IMP:: Installation of all this packages will take a lot of time. So do it when you are free.

Recent Posts
All About GNS3

OK lets roll

First we'll have to install dependencies
[user@admin ~]$ su Password: (Type in your root password here) [root@admin /]# yum install python python-devel xorg-x11-proto-devel libXext-devel [root@admin /]# yum install gcc-c++

Cisco Packet Tracer Video Tutorials Configure Vmware to work with GNS3. How to Install Gns3 on Mac Os X 2a Configure IP address

Recent Comments Now we'll download and install Qt4
[root@admin /]#cd /tmp [root@admin tmp#wget http://ftp.uludag.org.tr/pub/source/2009/qt-x11-opensource-src4.5.1.tar.gz [root@admin tmp]#tar xzf qt-x11-opensource-src-4.5.1.tar.gz [root@admin tmp]# cd qt-x11-opensource-src-4.5.1 [root@admin qt-x11-opensource-src-4.5.1]#./configure -nomake examples -nomake demos -qtgif -no-exceptions -debug -qt3support [root@admin qt-x11-opensource-src-4.5.1]#gmake <====This might take 2-3 hrs. [root@admin qt-x11-opensource-src-4.5.1]#gmake install <====Another 30 mins or so [root@admin qt-x11-opensource-src-4.5.1]#PATH=/usr/local/Trolltech/Qt-4.5.1/bin:$PATH [root@admin qt-x11-opensource-src-4.5.1]#export PATH On Sep 28 cyberwiz2010 commented on emulate asa in gns3 on: “Please recheck the Asa Preference settings in GNS3. Press enter 2-3 times in Console. If you get #…” On Sep 28 Mjerodd commented on emulate asa in gns3 on: “Hi. Thanks for the detailed instructions. I seem to make it all the way through with no errors…” On Sep 27 cyberwiz2010 commented on emulate asa in gns3 on: “Please check your email , I have sent you Asa initrd and Kernel download links, just download them…” On Sep 26 emr7 commented on emulate asa in gns3 on: “Hi cyberwiz2010, I am getting the following error; gzip: asa802-k8.gz: not in gzip format” On Sep 26 LB commented on tutorial how to install gns3 on: “Thank you very much it works like a magic on first go Awesome”

Next we'll install SIP
[root@admin qt-x11-opensource-src-4.5.1]#cd .. [root@admin tmp]#wget http://ftp.uludag.org.tr/pub/source/2009/sip-4.8.1.tar.gz [root@admin tmp]#tar xzf sip-4.8.1.tar.gz [root@admin tmp]#cd sip-4.8.1 [root@admin sip-4.8.1]#python configure.py

Related Posts
All About GNS3 Configure Vmware to work with GNS3. How to Install Gns3 on Mac Os X Add Qemu Host in GNS3.

[root@admin sip-4.8.1]#make [root@admin sip-4.8.1]#make install
How to install a loopback interface in Linux for GNS3.

Next we'll Install PyQt4
[root@admin sip-4.8.1]#cd .. [root@admin tmp]#wget http://ftp.uludag.org.tr/pub/source/2009/PyQt-x11-gpl-4.5.2.tar.gz


If you find this site|
[root@admin tmp]#tar xzf PyQt-x11-gpl-4.5.2.tar.gz
converted by Web2PDFConvert.com

[root@admin tmp]#tar xzf PyQt-x11-gpl-4.5.2.tar.gz [root@admin tmp]#cd PyQt-x11-gpl-4.5.2 [root@admin PyQt-x11-gpl-4.5.2]#python configure.py [root@admin PyQt-x11-gpl-4.5.2]#make <=====This will take 30-60 mins [root@admin PyQt-x11-gpl-4.5.2]#make install
I Recommend
CCNA 640-802 Ex am Certification Library, Sim ulator Edition Wendell O dom (Hardcover - Jan CCNA 640-802 9, 2010) Network $125.99 Sim ulator Pearson Certification (CD-RO M - Jul 4, 2009) Get W idget Privacy $94.49 CCNA O fficial Ex am Certification Library (Ex am 640-802), Third Edition (Containing ICND1 and 31 Days Before ICND2 Second Your CCNA Edition Ex am Ex am : A dayCertification by-day Guides) review guide for the Wendell640-802 CCNA O dom (Hardcover - Sep ex am (2nd 14, 2007) Edition) $37.79 A llan Johnson (Paperback - Nov 19, 2008) $24.41

We are done with compiling part, now lets download GNS3 source files
[root@admin tmp]#cd /opt [root@admin opt]#wget http://space.dl.sourceforge.net/project/gns-3/GNS3/0.7 .2/GNS30.7 .2-src.tar.bz2 [root@admin opt]#tar -xjvf GNS3-0.7 .2-src.tar.bz2 && rm GNS3-0.7 .2-src.tar.bz2 [root@admin opt]#mv GNS3-0.7 .2-src /opt/GNS3

Create the following directories:
These directories will be used by GNS3 – such as projects – where your working projects will be stored, cache, temp, IOS images, etc. [root@admin opt]#cd /opt/GNS3 [root@admin GNS3]#mkdir Dynamips [root@admin GNS3]#mkdir IOS [root@admin GNS3]#mkdir Project [root@admin GNS3]#mkdir Cache [root@admin GNS3]#mkdir tmp [root@admin GNS3]#chmod o+rw -R ./Project [root@admin GNS3]#chmod o+rw -R ./tmp [root@admin GNS3]#chmod o+rw -R ./IOS

Download binary of dynamips and make it executable
[root@admin GNS3]#cd Dynamips [root@admin Dynamips ]#wget http://www.ipflow.utc.fr/dynamips/dynamips-0.2.8-RC2x86.bin [root@admin Dynamips ]#chmod +x ./dynamips-0.2.8-RC2-x86.bin IMP:: For 64-bit users [root@admin Dynamips ]#wget http://www.ipflow.utc.fr/dynamips/dynamips-0.2.8-RC2amd64.bin [root@admin Dynamips ]#chmod +x ./dynamips-0.2.8-RC2-amd64.bin You can create a desktop shortcut by right-clicking on the desktop and select “Create Launcher..”, Name it GNS3 and in the command section type in python "/opt/GNS3/gns3" Double click to open GNS3 and we will edit the default settings. If you don’t want to use desktop icons you can create a launcher from your programs menu by right clicking on the Main Menu, selecting Edit Menu. Select New Item on the right and you will be presented with the same window where you type in the above. From there you can move the launcher into any menu section of your choice.

Fire up GNS3
* Go to edit | preferences and in the ‘Terminal command:’ section type in: gnome-terminal -t %d -e 'telnet %h %p' > /dev/null 2>&1 & * Under ‘Paths’ change the ‘Project directory:’ to /opt/GNS3/Project and the ‘IOS/PIX directory:’ to /opt/GNS3/IOS * Click on Dynamips tab on the left For the ‘Executable path:’ type in /opt/GNS3/Dynamips/dynamips-0.2.8-RC2-x86.bin * Change the ‘Working directory:’ to /opt/GNS3/tmp Click on the Capture tab on the left * For the ‘Working directory for capture files:’ change it to

converted by Web2PDFConvert.com

/opt/GNS3/Project Imp:: When you want to stop the router, use right click stop on the router. After you have done all that, you will be able to Open and Save your GNS3 projects properly and have an efficient setup for GNS3. In order to use the devices in GNS3 you must obtain our own IOS images from Cisco or http://networkingtips-tricks.blogspot.com/2010/03/ciscoios-collection-for-gns3-and.html Hope this tutorial will help you guys to setup and run GNS3 on your Linux system. Just the right place to find a schadenfreude Happy Learning Tags: GNS3 Tutorials Share |

Add New Comment
Optional: Login below.

Post as …

Showing 10 comments
Sort by Popular now Subscribe by email Subscribe by RSS

LB 2 day s ago
Thank y ou very much it works like a magic on first go Awesome
Like Reply

Sbrodeur63 1 week ago
Hi, This is the most accurate tutorial that I have seen on this subject. Just want to know if somebody have seen this error when installing on Centos 5.5 [root@samba Py Qt-x11-gpl-4.5.2]# py thon configure.py Determining the lay out of y our Qt installation... Error: Make sure y ou have a working Qt v4 qmake on y our PATH or use the -q argument to explicitly specify a working Qt v4 qmake. Does somebody knows how to fix this? Thanks Stephane
Like Reply


1 week ago

Mate, if y ou are getting that error, y ou haven't followed my steps properly , You'll need qt-x11opensource-src-4.5.1 package. Please check the installation steps under the heading Now we'll download and install Qt4. If y ou still face any problem let me know.
Like Reply

Yipikaia 1 week ago
hi naresh, thanks for the guidance above, but i got a small problem and hopefully y ou can help me.

converted by Web2PDFConvert.com

i'm using centos as well and followed y our instruction exactly without any errors. i'm able to run gns3 but the problem is I alway s got "failed to start Dy namips" when i clicked the Test button on GNS3's Dy namips. fy i, if i run dy namips manually from CLI ($ dy namips -H 7200), it worked. any idea how to solve this problem? I couldn't find any similar solution from google/hacki, mostly for windows and it's only the path problem but i'm hundred percent sure that the path is correct and also the permission is open/granted for the user. thanks in advance
Like Reply


1 week ago

Please recall if y ou had made dy namips executable by executing this command chmod +x ./dy namips-0.2.8-RC2-x86.bin, if not do it now. Also try running gns3 as root. If y ou still face problem please let me know.
Like Reply

Yipikaia 1 week ago
hi cy berwiz, y es i did that (chmod +x), here's the list: [root@zimbra Dy namips]# ls -l total 928 -rwxr-xr-x 1 tara users 943340 Sep 20 23:29 dy namips-0.2.8-RC2-x86.bin i also tried running gns3 as root but still got the "failed to start dy namips" status. if i directly drag the c3600 icon, i got this error: "Can't connect to the hy pervisor on port 7200: (-2, 'Name or service not known')". is that error because the dy namips failed to run? thank u, appreciate y our help.
Like Reply


1 week ago

Yes this error relates to dy namips, Please check If y ou are using centos 64 bit, if y es, y ou'll need http://www.ipflow.utc.fr/dy namips/dy namips-0.2.8-RC2-amd64.bin. Also try disabling selinux and firewall before running gns3. One more solution is to check that y ou don't have multiple py thon installed by running rpm -qa | grep py thon, if so uninstall the older version. If y ou still have face problem please let me know.
Like Reply

Yipikaia 1 week ago
hi again, i'm using 32 bit and firewall and selinux is already disabled since the beginning of OS installation. regarding the py thon.. : [root@zimbra ~]# rpm -qa | grep py thon py thon-virtinst-0.400.3-9.el5 gnome-py thon2-bonobo-2.16.0-1.fc6 gnome-py thon2-extras-2.14.2-7.el5 gnome-py thon2-gnomekey ring-2.16.0-3.el5 notify -py thon-0.1.0-3.fc6 py thon-elementtree-1.2.6-5 gnome-py thon2-canvas-2.16.0-1.fc6 gnome-py thon2-libegg-2.14.2-7.el5 py thon-sqlite-1.1.7-1.2.1 py thon-ldap-2.2.0-2.1 libvirt-py thon-0.6.3-33.el5_5.1 py thon-2.4.3-27.el5 py thon-devel-2.4.3-27.el5 gnome-py thon2-desktop-2.16.0-3.el5 gnome-py thon2-gnomeprint-2.16.0-3.el5 py thon-iniparse-0.2.3-4.el5 My SQL-py thon-1.2.1-1 py thon-imaging-1.1.6-2.el5.rf audit-libs-py thon-1.7.17-3.el5 libxslt-py thon-1.1.17-2.el5_2.2 gnome-py thon2-gtksourceview-2.16.0-3.el5 gamin-py thon-0.1.7-8.el5 mod_py thon-3.2.8-3.1 gnome-py thon2-2.16.0-1.fc6 gnome-py thon2-gconf-2.16.0-1.fc6

converted by Web2PDFConvert.com

libxml2-py thon-2.6.26- py thon-numeric-23.7-2.2.2 gnome-py thon2-gnomevfs-2.16.0-1.fc6 libselinux-py thon-1.33.4-5.5.el5 dbus-py thon-0.70-9.el5_4 rpm-py thon- gnome-py thon2-applet-2.16.0-3.el5 gtk-vnc-py thon-0.3.8-3.el5 gnome-py thon2-gtkhtml2-2.14.2-7.el5 py thon-urlgrabber-3.1.0-5.el5 [root@zimbra ~]# could that be one of the py thon conflict? thanks bro!
Like Reply


1 week ago

py thon installation seems to be OK. Can y ou send me screen-shot of GNS3 Preference/Dy namips @ cy berwiz2010@y ahoo.com
Like Reply

Yipikaia 6 day s ago
sent. thx.
Like Reply

Trackback URL http://disqus.com/forums/allaboutnetworking/httpnetworkingtips_tricksblogspotcom201008tutorial_how_to_install_gns3_onhtml/trackback/

Previous Article Subscribe to: Post Comments (Atom)


Next Article

ASA Boson Simulator CCNA Flashcards

NARESH I'm The Best At What I Do... Networking. View my complete profile


CCNA Interview Q\A


Cheat Sheets

Cisco IOS
Free Network Tools

Ethernet Cabling
Ftp Links

GNS3 Tutorials

IPv6 - Introduction

Online Videos

Packet Tracer


Softwares TestInside



Video Tutorials
Youtube Vids

Windows 7 Networking

D I S C L A I M E R : T h i s s i t e d o e s n o t s t o r e a n y f i l e s o n i t s s e r v a r e f r o m i n t e r n e t . I n c a s e o f a n y q u e r y / oC bo j n e t c a t a i no dnm ler e e a g v a e r dy i o n c t c o m m e n t h e r e . I w i l l i m m e d i a t e l y r e s p o n d t o y o u .

converted by Web2PDFConvert.com

Sign up to vote on this title
UsefulNot useful