This brief tutorial shows students and new users how to install GNS3 on Ubuntu 20.04 | 18.04.
Graphical Network Simulator-3 (GNS3) is a network software emulator that helps network professionals design and build better networks, share ideas and make connections.
GNS3 can be used to configure, test and troubleshoot virtualized network to emulate real world hardware devices. It has helped thousands of network professionals network pass network exams, and can be used in training sessions without purchasing real hardware which may cost a lot.
GNS3 works with multiple vendors’ hardware devices including, Cisco virtual switches, Cisco ASAs, Brocade vRouters, Cumulus Linux switches, Docker instances, HPE VSRs and others.
Instead of purchasing individual hardware devices from these many vendors, GNS3 can be used instead to test interoperability and real world experiences.
To get started with installing GNS3 on Ubuntu, follow the steps below:
Install GNS3 via APT Repository
There are multiple ways to install GNS3 on Ubuntu. The quickest way is to install it from its official PPA repository. To do that, run the commands below to add its PPA.
sudo add-apt-repository ppa:gns3/ppa sudo apt update sudo apt install gns3-gui gns3-server
When prompted whether non-root users should be allowed to use wireshark and ubridge, select ‘Yes’ both times.
┌──────────────────────────┤ Configuring ubridge ├──────────────────────────┐ │ │ │ Ubridge can be installed in a way that allows members of the "ubridge" │ │ system group to capture packets. This is recommended over the │ │ alternative of running GNS3 directly as root, because less of the code │ │ will run with elevated privileges. │ │ │ │ All users members of "sudo" or "admin" group will be added to this group │ │ by default. │ │ │ │ Without that most GNS3 features will not work. │ │ │ │ Should non-superusers be able to run GNS3? │ │ │ │ <Yes> <No> │ │ │ └───────────────────────────────────────────────────────────────────────────┘
You should also accept Yes below:
┌─────────────────────┤ Configuring wireshark-common ├──────────────────────┐ │ │ │ Dumpcap can be installed in a way that allows members of the "wireshark" │ │ system group to capture packets. This is recommended over the │ │ alternative of running Wireshark/Tshark directly as root, because less │ │ of the code will run with elevated privileges. │ │ │ │ For more detailed information please see │ │ /usr/share/doc/wireshark-common/README.Debian.gz once the package is │ │ installed. │ │ │ │ Enabling this feature may be a security risk, so it is disabled by │ │ default. If in doubt, it is suggested to leave it disabled. │ │ │ │ Should non-superusers be able to capture packets? │ │ │ │ <Yes> <No> │ │ │ └───────────────────────────────────────────────────────────────────────────┘
Install IOU Support
After running the commands above, run the commands below to install IOU support.
sudo dpkg --add-architecture i386 sudo apt update sudo apt install gns3-iou
The commands above allows GNS3 support for IOS on Unix (IOU).
Install Docker CE
By default, GNS3 uses Docker containers when building networking labs. Since Docker isn’t installed in Ubuntu, run follow the steps below to install Docker.
First install the following packages below:
sudo apt install apt-transport-https ca-certificates curl software-properties-common
Then add the official Docker GPG key.
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
After that run the commands below to add Docker repository
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
Finally, run the commands below to install Docker CE.
sudo apt update sudo apt install docker-ce
You should always add your user account to Docker group.
sudo usermod -a -G docker $USER
Add this point, all is good. However, to properly use GNS3 you must add your user account into the following groups ubridge libvirt kvm wireshark.
sudo usermod -aG ubridge $USER sudo usermod -aG libvirt $USER sudo usermod -aG kvm $USER sudo usermod -aG wireshark $USER
Restart your user session by logging out and back in, or restarting the system.
GNS3 should be installed, configured and ready to use. Simply go to the Activities Overview –> Dashboard and search for GNS3, then launch.
This post showed you how to install GNS3 on Ubuntu 20.04 | 18.04. If you find any error above, please use the form below to report.