How to Install GNS3 on Kali Linux 2019

GNS3 is the most preferred network simulator program to prepare for the Cisco exams. Kali Linux is a Debian-based Linux system developed by Defensive Security.

How to Install GNS3 on Kali Linux

How to Install GNS3 2.1.21 on Kali Linux 2019.3

Kali Linux is also known as BackTrack. Those who prefer Kali Linux are usually interested in network vulnerabilities. It is a widely preferred Linux distribution because there are many free network-related tools on the system.

In our previous articles, we installed GNS3 on Linux-based operating systems;

In this article, we will install GNS3 on the latest version of Kali 2019.3. And finally, we will test the functionality of the program by adding a Cisco Router IOS image to GNS3.

How to Setup and Configure GNS3

The latest version of GNS3 for Linux is 2.1.21. To install the latest version of GNS3, you need to add Ubuntu repository addresses to /etc/apt/sources.list.

Follow the steps below to install and use GNS3 step by step.

Also, if you have not done Kali installation before, you can check out our article here.

   Step 1

Before starting the installation, open Terminal, and execute the command below to edit sources.list.

sudo nano /etc/apt/sources.list

 
sudo nano /etc/apt/sources.list

   Step 2

Copy and paste the following addresses into the Kali Linux source list.

deb http://ppa.launchpad.net/gns3/ppa/ubuntu bionic main
deb-src http://ppa.launchpad.net/gns3/ppa/ubuntu bionic main

deb http://ftp.us.debian.org/debian jessie main
deb http://ftp.us.debian.org/debian stretch main
deb http://deb.debian.org/debian unstable main

deb http://deb.debian.org/debian stretch contrib
deb http://deb.debian.org/debian stretch non-free

 
After adding the above addresses to Sources.list, press Ctrl + X / Y / Enter to save the file.

NOTE: If you have problems installing, you should add Ubuntu Cosmic mainline in addition to the list above.

deb http://ppa.launchpad.net/gns3/ppa/ubuntu cosmic main
deb-src http://ppa.launchpad.net/gns3/ppa/ubuntu cosmic main

 
Editing Kali Linux sourcelist

   Step 3

To install dirmngr to run GNS3, execute sudo apt-get install dirmngr at the Terminal.

sudo apt-get install dirmngr

 
sudo apt-get install dirmngr

   Step 4

For GNS3 security, add Ubuntu Global Public Key by executing the command below.

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F88F6D313016330404F710FC9A2FD067A2E3EF7B

 
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F88F6D313016330404F710FC9A2FD067A2E3EF7B

   Step 5

To update the Kali package list, execute the apt-get update command on the Terminal.

apt-get update

 
apt-get update

   Step 6

Finally, execute sudo apt-get install gns3-gui to start the installation.

sudo apt-get install gns3-gui

 
sudo apt-get install gns3-gui

   Step 7

Press Y to confirm the installation of the dependent packages for GNS3, then press Enter.

Confirming Installation of Dependent Packages

   Step 8

To prevent non-superusers from running GNS3, press Enter on the No option.

uBridge Configuration

   Step 9

After completing the installation process, open the start menu and type gns3 and then find and run the program.

Starting GNS3

How to Add Cisco Router to GNS3

After installing the simulator software, you must add a Cisco Router IOS image to test the program. Follow the steps below to run the Router on Kali.

   Step 1

In the Setup Wizard window, select Run the topologies on my computer and click Next.

GNS3 Setup Wizard

   Step 2

After configuring Host Binding: 127.0.0.1 and Port: 3080 TCP in the GNS3 Local Server Configuration window, click Next.

Local Server Configuration

   Step 3

After connecting to Local Server, click Next button.

Local Server Status

   Step 4

After checking the information in the Summary window, click Finish.

Summary Window

   Step 5

In the New appliance template window, select Add an iOS router using a real IOS image (supported by Dynamips) option and click OK.

New Appliance Template

   Step 6

Click the Browse button to add the Cisco Router IOS image and click the Next button after adding the IOS image.

IOS Image

   Step 7

You can change the model of the Cisco Router you added in the Name and Platform window. Click Next to continue.

Name and Platform

   Step 8

Specify the RAM value for the Cisco Router according to your computer’s specifications and click Next.

Assing RAM to Cisco Router

   Step 9

In the Network Adapters window, you can add interfaces to the Cisco Router. Add the C7200-IO-FE card to the Cisco Router and click Next.

Network Adapters

   Step 10

Click the Idle-PC finder button to set the Idle-PC value for the Cisco Router to run on Kali, and then click Finish.

Idle-PC Value

   Step 11

Check that the Cisco Router you added on Kali Linux is working.

Router CLI Terminal Screen

How to Use Simulator Software in Kali ⇒ Video

You can watch the video below to install GNS3 on your Linux system and also subscribe to our YouTube channel to support us!

   Final Word


In this article, we have installed GNS3 on Linux system. And finally, we have examined how to use Cisco Router in Kali. Thanks for following us!

   Related Articles


How to Install GNS3 on macOS Mojave
♦ How to Add Layer 2 Switch to GNS3
♦ How to Add Layer 3 Switch to GNS3
♦ How to Use VPCS in GNS3
♦ How to Configure Cisco Switch in GNS3

Add a Comment

Your email address will not be published. Required fields are marked *

shares
error: