Friday, November 11, 2011

How to install GNS3 on fedora 16

1. download GNS3 from http://www.gns3.net/

2. install python3-PyQt4
#yum install python3-PyQt4

3. install PyQt4
#yum install PyQt4

4. download dynagen from

32 bit version: http://sourceforge.net/projects/gns-3/files/Dynamips/0.2.8-RC2/dynamips-0.2.8-RC2-x86.bin/download
64 bit version: http://sourceforge.net/projects/gns-3/files/Dynamips/0.2.8-RC2/dynamips-0.2.8-RC2-amd64.bin/download

5. after you download you will get file dynamips-0.2.8-RC2-x86.bin (rename it to dynamips.py if you gns3 does not recognize the file we download)

6. extract the gns3 package then run
#python gns3.pyw

7. when GNS3 open go to edit --> Preferences --> dynamips
  - change the Executable path: to the dynamips-0.2.8-RC2-x86.bin that u just download
  - change working directory  to the folder that contain dynamips-0.2.8-RC2-x86.bin



8. How you can load Cisco ISO file and start using it.

Note: when you click console to configure router, if the console port does not appear you can telnet telnet localhost port 2001. And if you have multiple router are running. you have to use netstart to list the listening ports that are higher that 2001. if you see 2002, 2003, or 2005, etc are open. means that other will use that port so telnet to localhost with the port that you see in your system.

Example I use putty to access router in gns3 console port
then


Luck ;)

27 comments:

  1. Thanks for the Instructions.

    All the process went uninterrupted but at the end test gave "Failed to determine version of dynamips" error and I wasn't able to run it.

    Please help!!

    ReplyDelete
    Replies
    1. Look brother!, if u want to do software development, or network design and implementation with GNS3, use UBUNTU redistribution of linux..
      Its good, i have GNS3,and even packet tracer in ubuntu..
      But if u ware still interested in using GNS3 in fedora better use wine

      Delete
  2. I think u might not select the path to the dynamips in the GNS3 preferences.

    Please look at the picture above for how to do so.

    I hope this is the answer for your question.

    ReplyDelete
  3. hi,
    why have you asked to rename to dynagen.py and in the path its dynamips.py? sorry im a lil confused

    ReplyDelete
  4. that was wrong posting, so now i have updated the post, you can read it again,

    actually, dynagen is the binary version of dynamips.py, but GNS3 needs dynamips.py in it configuration file, so we can rename the dynagen to dynamips.py

    ReplyDelete
  5. i have 32bit of fedora16 and i m new user plz help me in GNS3 installation ...i also fellow these steps but failed plz help me my friend.

    ReplyDelete
  6. Ok,

    so on which step that you fail?
    and what is the error message?

    ReplyDelete
  7. Sorry my friend but I have the same problem, when I run the test it fails with this error "Fail to determine version of dynamips" I just followed the steps but is not working, if you could help i would really appreciate it =)

    ReplyDelete
  8. Please read the post again, I have re-edit it again, If you still not able to do it, you can make a comment again. i will show you how.

    ReplyDelete
  9. Well my friend, thank you very much now it's working fine =) , I just have another question If you don't mind, Id like to work with virtualbox I have it installed now and of course it says that it is not installed, How can you make it work with virtualbox? Do i just have to make a path to it?

    Thanks

    ReplyDelete
  10. I just finished following your guide and successfully ran GNS3 0.8.2 BETA2 + dynamips-0.2.8-RC3-x86 without a need to rename anything. The only thing I did was "chmod +x dynamips-0.2.8-RC3-x86.bin".

    Thanks a lot for your guide.

    ReplyDelete
  11. Can I make a installer from this source code and install. So that GNS3 shows up in Application screen along with other installed softwares

    ReplyDelete
  12. Hi Bhaskar,

    Yes, you can install from the source,

    But I think to find a way to create shortcut that will appear in Application menu, will be much easier.

    ReplyDelete
  13. i am still that dynamips failed error while testing..please help

    ReplyDelete
  14. hi Anonymous,

    I think it must be working, because I tested it already, and other guys also be able to do after they follow the post.

    Recheck your downloaded dynagen, if your linux is 64 bit, download 64 bit version,

    ReplyDelete
  15. nice Post everything is working fine

    ReplyDelete
  16. really nice post.thank for the post.
    i have one question. if there are two routers then how to use putty for both?

    ReplyDelete
  17. i also got the same error of "fail to start dynamips".when i did according to Maziar and make the path executable as "chmod +x dynamips-0.2.8-RC3-x86.bin" then it works fine.

    ReplyDelete
  18. Dear stylesp,

    Note: when you click console to configure router, if the console port does not appear you can telnet telnet localhost port 2001. And if you have multiple router are running. you have to use netstart to list the listening ports that are higher that 2001. if you see 2002, 2003, or 2005, etc are open. means that other will use that port so telnet to localhost with the port that you see in your system.

    ReplyDelete
  19. Sorry to be pedantic but (to give Christophe Fillot his due recognition) step 4 above should be "Download dynamips" - NOT "dynagen". Dynagen code is important, but it is integrated into GNS3. :)

    ReplyDelete
  20. i'm new user on Linux. needing help Dara Theam in the installation of gns3! i'd failed in the step of run python gns3.pyw this is what i'd got===> python: can't open file 'gns3.pyw': [Errno 2] No such file or directory

    ReplyDelete
  21. dear Vicente Garrido,

    You might execute the command (python gns3.pyw) in the wrong location.

    - after extracting the gns3 package
    - cd to the gns3 folder then execute the command

    ReplyDelete
    Replies
    1. You're right Dara Theam. I was in the wrong location. After that, i executed the command and an error appeared, showing me that i'd needed a newer version of Qt. I couldn't download it. So, i decided to modified the script gns3.pyw (line 41) erasing that line (a condition) and few more. Now, everything is working! Thanks!!!

      Delete
  22. [root@athuk-vaio GNS3-0.8.3.1-src]# python gns3.pyw
    Traceback (most recent call last):
    File "gns3.pyw", line 40, in
    if QtCore.QT_VERSION < 0x040600:
    AttributeError: 'module' object has no attribute 'QT_VERSION'

    what this means

    ReplyDelete
  23. Hi Dara Theam
    Thanks a lot This topic helps me
    i just need to add little command cause i faced problem after did all step
    the problem was Dynamips failed to start
    i solve it By give the execute mode to the dynamips-0.2.8-RC2-x86.bin
    # sudo chmod a+x dynamips-0.2.8-RC2-x86.bin (write the absolute path)

    i hope it help

    ReplyDelete
  24. Dara

    When I start, it (GNS3)X comes up but I get the following on the terminal

    Client failed to connect to the D-BUS daemon:
    Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

    (process:31020): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
    Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
    Qt: Session management error: None of the authentication protocols specified are supported

    (python:31020): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
    Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

    ReplyDelete
  25. i think you have problem with D-BUS. If you used root to open GNS3 ( fail to start), you can try to use the normal user.

    ReplyDelete