GNS3 Linux Install
Installation from Packages#
Ubuntu-based distributions (64-bit only)#
These instructions are for Ubuntu and all distributions based on it (like Linux Mint).
(when prompted whether non-root users should be allowed to use wireshark and ubridge, select ‘Yes’ both times)
If you want IOU support
To install Docker CE (Xenial_and_newer)
Remove any old versions:
Install the following packages:
Import the official Docker GPG key:
Add the appropriate repo:
Finally, add your user to the following groups:
Debian-based distributions (64-bit only)#
For Debian Jessie Add the following lines to your /etc/apt/sources.list:
For Debian Stretch Add the following lines to your /etc/apt/sources.list:
For Debian Buster Refresh your metadata, and install the following packages:
Install GNS3 from Pypi:
We’ll go ahead and install docker next. Import the Docker GPG key:
(As of 10/10/2019, Buster requires using the “edge” repo)
Refresh your metadata, and install docker:
Add the following lines to your /etc/apt/sources.list:
Refresh your metadata, and ONLY install the following two packages!
To prevent accidentally installing anything else from that repo (for now), remove or comment out those two lines in your /etc/apt/sources.list file:
You can also remove that GPG key, if desired:
Add your user to the following groups:
The reason we currently can’t just install all of the packages (except docker-ce) off launchpad, is due to a python issue
If you have a pre-existing install of Buster, and run into the following error, follow these instructions (shout out to user Pierce Howell for providing them!)
Start by uninstalling gns3 and gns3-server (Do not remove the ppa’s):
Create a symbolic link for python 3.5 using python3.7:
Install python-pip and python3-pip to use the gns3 from source: sudo apt install python-pip python3-pip
Install from PyPi as listed:
Once installed, additional dependencies such as QtSvg, qtwebsockets, and dynamips will be required in order for the application to run.
Finally, attempt to start gns3 from the command line. If you receive no output errors and the application does not start, try to reboot your machine.
You may not have to reboot your machine. The reboot worked in my case after much trial and error. You may also have to add the shortcut as it may not automatically populate in your applications menu.
How To Install GNS3 on Ubuntu 18.04|16.04|20.04
In this blog post, we will look at how to Install Latest GNS3 on Ubuntu 20.04|18.04|16.04. GNS3 is an open source, free Network Simulator used by hundreds of thousands of network engineers worldwide to emulate, configure, test and troubleshoot virtual and real networks. GNS3 has helped in virtualization real hardware devices and preparation for certification exams such as the Cisco CCNA, CCNP, CCIE, Juniper certifications e.t.c.
GNS3 started with the emulation of Cisco devices using software called Dynamips. But it has now evolved to support many devices from multiple network vendors including Cisco virtual switches, Cisco ASAs, Brocade vRouters, Cumulus Linux switches, Docker instances, HPE VSRs, multiple Linux appliances and many others. With GNS3, you can test interoperability between many vendors and even try out esoteric setups using network technologies with SDN, NFV, Linux, and Docker.
GNS3 consists of two software components:
Features of GNS3
Install Latest GNS3 Network Simulator on Ubuntu 20.04|18.04|16.04
This guide will concentrate on the installation of GNS3 on Ubuntu 20.04|18.04|16.04 from apt repository. This is recommended method since it is easy to update GNS3 packages to the latest release.
Install GNS3 on Ubuntu 20.04|18.04|16.04 from apt repository
GNS3 packages are available on a GNS3 ppa repository, first, add the repository by running the commands below:
Update system package list and install GNS3:
This may take a bit of time depending on your internet speed. There will be an installation of a lot of packages and GNS3 dependencies.
When prompted to allow non-root user to run Wireshark and GNS3, answer yes:
vpcs which is a Virtual PC Simulator will also be installed. It allows you to simulate a PC supporting DHCP and ping when simulating Networks with GNS3.
GNS3 – Add Support for IOU (Optional)
If you would like to allow GNS3 support for IOS on Unix (IOU), you’ll have to enable running of x86 packages on a 64-bit system.
Once it is enabled, install package. gns3-iou
GNS3 – Add Support for Docker (Optional)
By default, GNS3 allows you to use Docker containers when building networking labs. But first, you need docker engine installed and running so that you can create Docker Containers. Use our official guide to Install Docker on your system:
Don’t forget to add your user to docker group:
Also, add your user to the following groups to avoid permission issues:
Launch GNS3 on Ubuntu 20.04|18.04|16.04
On your Desktop Environment Launcher, search for GNS3 to start initial configuration. On the first page, select “Run the typologies on my computer”.
On the second page, confirm local server configuration location.
The third page should display a successful installation message
If you want to add your Virtual machines, Docker containers, vpcs or Network devices images, do it in the next step. This can also be done later after the installation.
Once configured, you should have a ready GNS3 installed on your Ubuntu 18.04 or Ubuntu 16.04 server.
To be able to capture GNS3 packets for analysis, you need Wireshark. You can install it using our guide in the link below.
That’s all. Enjoy using GNS3. If you’re preparing for exams with this tool, I wish you happy learning and success in your certification exams.
Как установить gns3 на ubuntu
$ sudo apt-get update
$ sudo apt-get install python3-setuptools
$ sudo apt‐get install python3‐pyqt4
$ sudo apt‐get install python3‐ws4py
$ sudo apt‐get install python3‐netifaces
$ sudo apt-get install cmake
$ sudo apt‐get install libelf‐dev
$ sudo apt‐get install uuid‐dev
$ sudo apt‐get install libpcap‐dev
$ c d /home/cooper (не забываем что у вас будет что-то другое вместо cooper)
Перейдем к установке Dynamips и распак уем архив:
$ sudo setcap cap_net_admin,cap_net_raw=ep /usr/local/bin/dynamips
$ cd gns3-server-1.3. 10
$ sudo python3 setup.py install
$ sudo python3 setup.py install
$ sudo apt-get install libssl1.0.0:i386
$ sudo apt-get install bison
$ sudo apt-get install flex
$ sudo apt-get install git
$ git clone http://github.com/ndevilla/iniparser.git
$ sudo cp libiniparser.* /usr/lib/
$ sudo cp src/iniparser.h /usr/local/include
$ sudo cp src/dictionary.h /usr/local/include
$ sudo cp iouyap /usr/local/bin
$ sudo cp vpcs /usr/local/bin/
$ sudo apt-get install virtualbox
$ sudo apt-get install wireshark
$ sudo apt-get install qemu
$ sudo apt-get install cpulimit
Там права еще давать надо на папки или не запустится.
На видео показан процесс установки. Дополнительных прав не понадобилось.
к счастью, разработчики наконец-то развернули репозиторий, теперь установка сводится к
sudo add-apt-repository ppa:gns3/ppa
sudo aptitude update
sudo aptitude install gns3
Подтягивает сразу все пакеты (dynamips, qemu, vpcs, wireshark и т.д)? Или только gns3 server и gns3 gui?