GNS3 – Installation Tutorial for Linux
Posted by Josh on Mon 28 Jan 2008Categories: Cisco , Dynamips , GNS3 , Linux - [46] Comments
This tutorial will demonstrate how to install GNS3 Router Emulation Software on a Linux platform. I used Ubuntu 7.10 because I use it as my home OS and the most user friendly.

Installing GNS on Ubuntu 7.10 is as simple as:
1) Download GNS3 source files
2) Download dynamips binary for linux
3) Change the dynamips binary to allow execution.
4) Double-Click gns3
5) Set the location for the dynamips binary in the GNS3 preferences.
6) Add an IOS image to the GNS3 IOS library
7) Create your LAB
Enter emulation mode.

January 29th, 2008 at 10:49 pm
great tutorial. thanks a lot. i had couple of failed attempts to install gns3 on ubuntu prior to this tutorial.
February 8th, 2008 at 7:00 am
great tutorial, i am using packet tracer on windows at the moment, i didnt knew their were Router Emulation Software on a Linux. Thanks alot i will try it out.
February 17th, 2008 at 5:00 pm
Great instruction! I had just installed Ubuntu 7.10 in my laptop and I can run my first router in less than an hour. Thanks.
One thing you should mention is unzipping Cisco image s with “unzip -p compressedimage > regularsizeimage”
as dynamips software author mentions in his web page.
Thanks.
March 3rd, 2008 at 7:47 pm
[...] En windows, tenemos al packet tracer es un simulador de de redes por medio de un software.. bueno como saben me mude a linux, por que wintendo murio.. en busqueda de información y programas parecidos di con GNS3 que realiza lo mismo pero en linux, ademas que cargas las ios de los routers y puedes trabajar con las ios actualizadas. permitiendonos adquirir un mayor conocimiento.. bueno pero como se instala?.. facil vean el siguiente video tutorial de unos 6 min.. y quedarán listos para usar en sus linux su Gns3 aca unas screenshot desde mi pc [...]
March 15th, 2008 at 9:24 am
[...] Installation Tutorial for Linux [...]
April 3rd, 2008 at 4:19 am
Is their Any installation tutorial for Windows XP or it only works on Linux….
April 3rd, 2008 at 4:29 am
I am A windows XP user and I want GNS3 to be installed on WinXP. I have downlaoded and installed as per the instructuion but unable to telnet.
need Advice
April 4th, 2008 at 9:56 pm
Inayat,
Here is the video tutorial for Windows XP.
http://www.blindhog.net/cisco-gns3-graphical-router-emulation-software/
Josh
April 8th, 2008 at 4:48 am
[...] http://www.blindhog.net/gns3-installation-tutorial-for-linux/ [...]
April 29th, 2008 at 3:20 pm
I tried this method in Ubuntu 8.04 But it doesnot work.Need your suggestion.Thanks
April 29th, 2008 at 8:34 pm
Tariq,
The instructions on the GNS3 download page seems to work.
http://gpl.code.de/oswiki/GplcodedeApt
Josh
May 17th, 2008 at 4:03 pm
I have a problem. when I test dynamips, i get failed to start dynamips.
Could be a permision problem? I have followed everything else in the tutorial.
Not a linux guru and have searched the web but not sure how to debug this further.
thx
May 17th, 2008 at 9:14 pm
@Duane
Can you navigate to the directory containing the dynamips file and send the output of the ‘ls -la’ command?
May 19th, 2008 at 8:25 pm
thanks Josh,
Desktop/GNS3-0.5-src$ ls -la
total 1916
drwxr-xr-x 5 dmcgee dmcgee 4096 2008-05-17 17:08 .
drwxr-xr-x 4 dmcgee dmcgee 4096 2008-05-17 17:08 ..
-rwxr-xr-x 1 dmcgee dmcgee 73 2008-04-27 09:24 AUTHORS
-rwxr-xr-x 1 dmcgee dmcgee 1730 2008-04-27 09:24 CHANGELOG
drwxr-xr-x 3 dmcgee dmcgee 4096 2008-05-06 15:41 docs
-rwxr-xr-x 1 dmcgee root 917608 2008-05-17 17:07 dynamips-0.2.7-x86.bin
-rwxrwxrwx 1 dmcgee root 943340 2008-05-06 15:42 dynamips-0.2.8-RC2-x86.bin
-rwxr-xr-x 1 dmcgee dmcgee 1934 2008-04-27 09:24 gns3
-rwxr-xr-x 1 dmcgee dmcgee 18004 2008-04-27 09:24 GNS3.e4p
-rwxr-xr-x 1 dmcgee dmcgee 17987 2008-04-27 09:24 LICENSE
drwxr-xr-x 2 dmcgee dmcgee 4096 2008-05-06 15:41 pemu
-rw-r–r– 1 dmcgee dmcgee 1401 2008-04-27 09:24 README
-rwxr-xr-x 1 dmcgee dmcgee 3073 2008-04-27 09:24 setup.py
drwxr-xr-x 3 dmcgee dmcgee 4096 2008-05-06 15:41 src
-rwxr-xr-x 1 dmcgee dmcgee 1022 2008-04-27 09:24 TODO
May 19th, 2008 at 10:52 pm
@Duane,
The permissions look ok to me. Which of these versions of dyanamips are you referencing inside GNS3? – Josh
May 20th, 2008 at 12:59 pm
i have used both. I am currently pointed to the 2.7.
I also just noticed I am running the 64 bit version of ubuntu.
thanks
May 20th, 2008 at 3:20 pm
@duane, 64-bit could definitely be the problem. Do you have another machine running 32-bit? – Josh
May 23rd, 2008 at 6:20 am
how to attach PC with routers or switches in GNS?
May 25th, 2008 at 9:09 pm
@sachin
http://www.blindhog.net/how-to-integrate-a-microsoft-loopback-interface-with-gns3/
June 2nd, 2008 at 8:41 am
sorry for the delay in replying. I downloaded the latest non 64 Ubuntu and Gns3 and have things up and running.
now my next goal of getting my two 4 port ethernet nics and 4 usb adpaters recognized so i can map them to the my lab switches.
thanks for the help Josh.
July 5th, 2008 at 5:17 am
Hi Josh,
It always a pleasure to visit blindhog.
Thanks to your tutorials, I’m quite proficient with using Dynamips, so I haven’t been really interested in GNS-3; however I decided to watch a couple of your GNS-3 videos and I was convinced that GNS-3 is definitley the way to go.
My only question is this:
Have I got to unintsall Dynamips and Dynagen currently running on my Ubuntu Server? Or can I just point GNS-3 to the Dynamips Binaries?
Thanks a Bunch!!!!
Rgrds,
Ayo
August 11th, 2008 at 8:57 pm
nice tutor ..
can u explain about gns for windows and linux diffrences ..?? I got some problem in resource virtual memory for windows.waht about in Linux …???
August 12th, 2008 at 10:59 pm
@giat,
No. I use both and like GNS3 in Windows and Linux.
Josh
October 8th, 2008 at 4:22 pm
Excellent yet simple tutorial – thumps up !
October 25th, 2008 at 10:17 pm
Thanks a bunch for the tutorial.. installed GNS3 on fedora, works great. Much more stable than windows xp.
November 25th, 2008 at 12:46 am
I installed GMS3 0.5 in Windows Vista and it is working fine. I have not had any problems so far.
November 26th, 2008 at 10:32 am
I have a question about the idlepc variable. Every time that I restart GNS3 and load a saved Lab configuration, I have to recalculate the idlepc variable for all routers. Is there any way to keep the variable after I restart the GNS3 Lab? and is this happening?
Another question:
As I understood idlepc is applied to the IOS. in other words, if I use the same router with the same IOS I don’t need to recalculate the idlepc for each router in my lab. am I correct?
Note: Congratulations and thanks for these amazing tutorials
Regards
December 3rd, 2008 at 10:45 pm
M-angel,
I have had this problem with the idle-pc value as well. After I add a new IOS image to GNS3, I have learned that I have the best luck starting a lab with a single router using the new image.
Start the router, and watch the task manager as I change the idle-pc value.
After I settle in on an idle-pc value it becomes the default idle-pc value for the IOS image.
When I add a router to new labs using the new IOS image, the correct idle pc value is added automatically.
===
Well, if you add multiple routers and then start calculating the idle-pc values, I have noticed that it does not assign it to the IOS image.
I agree with you that it is frustrating.
Josh
February 11th, 2009 at 1:14 pm
I installed GNS3 on Vista and have not been able to get it to work. I get an error “Can’t start dynamips” when i go into edit/preferences to test my ios’s. Originally I thought the UAC might be the problem so I turned it off completely and ran GNS3 as admin. No good. I then noticed an incorrect path to the executale c:\programfiles\gns3\dynamips.exe. no such file existed. a startup script file called dynamips_startup pointed to dynamips_wxp in a dynamips subdirectory so I changed the executable filename and pointed it to the right directory. No good. Changed the file name and moved it into the orignal gns3 directory. no good. I’m also running Fedora 10 on my laptop but I can’t find directions on how to make GNS3 work in Fedora. Any help would be appreciated. I don’t really care which OS I use for this although the comments look like Linux may be the more stable environment. Thanks so much folks…
March 6th, 2009 at 7:15 am
[...] this particular piece of software is considerably difficult and definitely an overkill for newbies. This blog attempts to bridge the difficulty by providing video tutorials for installation, but that does not [...]
April 4th, 2009 at 8:16 am
Hi there,
is there any possible that GNS3.06 can running on openSolaris 11 ?
Tq
April 11th, 2009 at 3:52 am
I have about the same problem as Duane. GNS3 installed but can’t start dynamips.
How do i check i have ubuntu 64 or 32?
i think i have 32 bit ubuntu but need to be certain.
i install this ubuntu using wubi. does that had anything to do with this problem?
April 16th, 2009 at 9:12 pm
FYI: There’s now a package for Ubuntu 8.10. sudo apt-get install gns3 was the easiest thing i’ve ever done..
April 18th, 2009 at 10:22 am
Thanks a million guys
April 19th, 2009 at 8:27 am
Colin,
Thanks for the tip! Your suggestion is a lot easier.
Josh
April 21st, 2009 at 7:29 pm
[...] para la configuración en Linux aqui les dejo el link donde podran ver el video que la verdad esta mas que claro. Algo importante al momento de que [...]
June 17th, 2009 at 12:51 pm
man this cool video
July 29th, 2009 at 10:00 am
[...] http://www.blindhog.net/gns3-installation-tutorial-for-linux/ [...]
September 26th, 2009 at 12:33 pm
well i m using Red hat linux 5 server edition.
is gns3 working on it ? ?
October 4th, 2009 at 3:45 am
Hello, i am trying to run GNS3 on mandriva, it just doesnt happen. I am not a linux user. when i double click the gns3 binary file, it opens in KWrite, what should be its default application to open. Thanking you.
Ashish
October 5th, 2009 at 2:10 pm
Hi Josh
plz tell me that is gns3 (dynamips) in linux more efficient on processor than on windows. I heard its performance is better on linux. I have Intel Dual core, 1 gb DDR-2 RAM, 2 MB cache.
Thx
October 14th, 2009 at 3:59 pm
I followed the tutorial and got GNS3 running on
Ubuntu 9.04 server [after installing Ubuntu GUI desktop: sudo apt-get install ubuntu-desktop ]!
Just one thing. Make sure to click the “Test” button after changing the executable path for dynamips. Otherwise when you put a router into play for the first time you will get an error message saying to test the path. After clicking the “Test” button, dynamips “Started” and all was good.
Thanks for the tutorial.
November 15th, 2009 at 8:13 pm
I cannot install gns3 on linux8.1 can anyone assist method for 7.1 doesnt apply
November 25th, 2009 at 2:27 pm
thanks a lot dude
January 22nd, 2010 at 9:05 pm
How to use Gns3 for linux mandriva 2010.Because I was install to GNS3 not running.Thanks from respon my comment to all master linux
January 24th, 2010 at 11:49 pm
@Gerland,
I do not know much about Mandriva Linux. Sorry.
Josh