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.

Centos Users, Please scroll down to see updated steps.

IMP::Installation of all this packages will take a lot of time. So do it in the free time.

IMP:: For 64-bit users (I don't have Dynamips 0.2.8 RC3 for 64 bit, if you have it please share it with me)
[root@admin Dynamips ]#wget http://www.ipflow.utc.fr/dynamips/dynamips-0.2.8-RC2-amd64.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.

* 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-RC3-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 /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/cisco-ios-collection-for-gns3-and.html

Update for Centos:

Users of Centos get this error "Need Python 2.6 or higher" after following the above steps. The problem is, there is no way to upgrade Python 2.4 to 2.6. Because upgrading to 2.6 will break the OS.The solution is to install Python 2.6 alongside 2.4. So here are the steps to install Python 2.6 from the source

Share your views...

68 Respones to "(Tutorial) How To Install GNS3 on Centos/Redhat/Fedora ."

Yipikaia
said...

hi naresh,thanks for the guidance above, but i got a small problem and hopefully you can help me.i'm using centos as well and followed your instruction exactly without any errors.

i'm able to run gns3 but the problem is I always got "failed to start Dynamips" when i clicked the Test button on GNS3's Dynamips. fyi, if i run dynamips manually from CLI ($ dynamips -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.

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

Just want to know if somebody have seen this error when installing on Centos 5.5

[root@samba PyQt-x11-gpl-4.5.2]# python configure.pyDetermining the layout of your Qt installation...Error: Make sure you have a working Qt v4 qmake on your PATH or use the -qargument to explicitly specify a working Qt v4 qmake.

i also tried running gns3 as root but still got the "failed to start dynamips" status. if i directly drag the c3600 icon, i got this error: "Can't connect to the hypervisor on port 7200: (-2, 'Name or service not known')". is that error because the dynamips failed to run?thank u, appreciate your help.

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

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

But :)I've got one problem, my gns3 dosent: write a to nvram and export router conf. - when i type new projcect and ticks nvram and export, nothing heppend,- directory are created name_nvram, name_works, and only way to go on is cancel.(window with new project dosent want disapire:) )-then ive got 2 empty derictory and 1 file name.net - porject is chmod 777- chown -R user:user

and then I got [root@localhost tmp]# cd PyQt-x11-gpl-4.8.3[root@localhost PyQt-x11-gpl-4.8.3]# python configure.pyError: Make sure you have a working Qt v4 qmake on your PATH or use the -qargument to explicitly specify a working Qt v4 qmake.[root@localhost PyQt-x11-gpl-4.8.3]# python configure.pyError: Make sure you have a working Qt v4 qmake on your PATH or use the -q

please can u help me resolve the issue or post an update here my mail is d_tsulaia@gmail.com or yahoo

Thank You, YOU ARE AWSOOOME =D it worked perfectly only small problem though: I get error dynamips error:206-unable to extract config from VM "R1". I don't think it will be to mych of a prob to solve I'll try to work my way around it,but if u can help on this one too it would be great. thanks again for updating links, I'll be praising ur name for years to come =))) thanks a lot

Already fixed the problem with Dynamips error: unable to extract config. I just needed to config the baseconfig.txt file in IOS config. You just need to make shure that file exsits at all u can leave it empty or put some config. for example:!privilege level 15 ( if u'r too lasy to type enable all the time router starts =)) )

hi again, =))) me with my problems. Although I did try my best to work out this on my own I FAILED. anyways.GNS3 works perfect, I have ASA (Qemu if i get lucky) and crapload of routers ( like 15 or so ) anyway. after I complete my work I save. and after I restart GNS3 and try to load, it fails. With dynamips erroe message thatFollowing errors occured: (and the space here indicates nothng, it's empty . no errors.) every time I start GNS3 I have to go in options and press Test to start dynamips and Qemu, otherwise nothing works. I have no problem doing that but I do have problem with my project not loading. Once again I place my hopes with u =)) currently I am back on windows. no similar problem there but hell it can barely load 3 routers without lagging. and the CPU flies sky-high.

Hi. I've installed a fresh Centos 5.5. The PyQt4 4.5.2 is no longer available. I have found a later version at riverbankcomputing (4.8.3) but this required a later version of SIP also. I installed 4.12.1 of SIP. Installed GNS3 but now when I go to start GNS3 it requires Python 2.6 or greater. I've installed Python 2.6 but when I run GNS3 with Python 2.6 I get 'Can't import Qt modules, PyQt is probably not installed ...'

Does anyone have fresh install instructions to get GNS3 loaded on Centos 5.5 (or 5.6)?

Naresh, where are the updated steps? the links in the steps above no longer work. i have found new packages at riverbankcomputing but haven't got the install to work correctly yet. any help would be very much appreciated.

Hi Naresh, thanks for the updated comments. I've installed a fresh Centos 5.6 and followed your steps. The ./confg for Python didn't seem to work. I installed Python 2.6 a different way but when doing the make in SIP i get;siplib.c:9189: error: expected ')' before '*' token If I use Python 2.4 there is no issue.

Great post. One note: CentOS 5.4 installs only support glibc2.5, while dynamips_0.2.8RC3 requires glibc2_7. You can't easily upgrade glibc, and although hacking some soft links may work (i've been known to do that in a pinch), i'd recommend just using dynamips_0.2.7 instead.

Great post. Just so you know though, the extra steps are no longer required for CentOS 6 (or RHEL 6), correct version of Python is in the repositories so everything installs fine. Might want to update your "Update for CentOS" to be "Update for CentOS 5.X"

ABSOLUTLY AMAZING !! Thank you very much. worked flawlessly... kinda.. it gave an error after gmake and another error after make install, but havent had any issues. using fedora core17!! thank you soooo much ! VERY GOOD JOB!!

Contributors

Our Partners

DISCLAIMER: This site does not store any files on its server. I only index and link to content provided by other sites. All the files are from internet. In case of any query/objection regarding copyright or privacy, please inform me at Contact me and leave your comment here. I will immediately respond to you.