How to Install GNS3 2.2 on Linux Mint 22

In this article, we’ll look at how to install and use the GNS3 simulator. It’s essential if you’re getting ready for Cisco Routing or Switching exams. We’ll mainly talk about using it with Linux Mint 22.

Installing GNS3 in Linux Mint

How to Run GNS3 Software on Linux Mint 22

If you want to improve your skills in systems and networking, you might study for Cisco’s CCNA exams. You can do these exams online. To practice, use simulation programs like GNS3 or Packet Tracer.

GNS3 is considered more professional than other software. Therefore, most users prefer this software. However, you need authentic Router IOS images to use this software.

First of all, download IOS images from the table in this article. If you want, you can get them from any website.

The network emulator works on both Microsoft’s Windows and Linux distributions. If you have Linux Mint on your PC, installing it is easy. Therefore, you can start using the software right away.

How to Download and Install GNS3

On Windows, you install GNS3 using its setup file. But on Linux OSes, you can do it using commands in the terminal.

Step 1

Open the terminal on your Linux Mint desktop. Type in “sudo add-apt-repository ppa:gns3/ppa” to add GNS3 to the Repository. Then, hit Enter to finish adding PPA.

sudo add-apt-repository ppa:gns3/ppa

Adding GNS3 to Repository

Step 2

After adding GNS3 to the repo, update the software list. Then, use the “sudo apt update” command.

sudo apt update

NOTE: If you see a certificate error when updating the package database, run this command. It fixes the trust.gpg file.

ERROR: The key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.

cd /etc/apt
sudo cp trusted.gpg trusted.gpg.d

Updating the Program List

Step 3

After updating the package list, execute the “sudo apt install gns3-server gns3-gui” command in the terminal to install GNS3.

sudo apt install gns3-server gns3-gui

Installing GNS3

Step 4

Answer the relevant question with Y and press Enter to confirm the installation of the dependent packages required for GNS3.

Confirming the Installation of Required Packages

Step 5

If you want non-superuser users to run the GNS3 program, press Enter on the Yes option.

Allowing UBridge

Step 6

If you want non-superuser users to Capture Packets using the Wireshark program, press Enter on Yes.

Allowing Wireshark

Step 7

You can quickly run the program using the gns3 command in the terminal or from the start menu.

Running GNS3

Step 8

After opening the GNS3 program, select “Run appliances on my local computer” in the Setup Wizard window and click Next.

Run Devices on My Computer

Step 9

Since you will run the Router or other devices in the network software on your physical computer, continue without changing the values in the Local Server Configuration window.

Local Server Configuration

Step 10

After checking that the connection is successful in the Local Server Status window, check the server type settings in the next Summary window and close the wizard.

Verifying Local Server Configuration

How to Add Cisco IOS

The first thing you need to do after installing GNS3 on Linux Mint is to add a Cisco IOS image. After downloading these images to your computer, you can easily add them from the program’s preferences.

Step 1

Click Edit / Preferences from the tool menu of GNS3 to add an IOS Router.

Edit / Preferences

Step 2

In the IOS Router Templates window, select IOS Routers under Dynamips from the left panel, and then click the New button. In the IOS image window that opens, click Browse to add the Router image.

Adding an IOS Router

Step 3

Please navigate to the location of the c7200 IOS image from your Linux system and open it after selecting it.

Adding the c7200 IOS Image

Step 4

Wait for a while after clicking Yes to decompress iOS.

Decompressing iOS

Step 5

Continue after adding the IOS image to your network simulation program.

Checking the Location of IOS

Step 6

Configure the name and platform of the Router and click Next.

Editing Name and Platform

Step 7

Depending on the hardware performance of your Linux Mint host computer, configure the virtual memory value so that the Router can work more efficiently and faster. Since the default RAM size for the Router c7200 you added is 512 MB, you can use this value and test it.

Configuring Memory Value

Step 8

You can add or delete the network adapters that you will use in the Router c7200 from this window. As Slot 0 has the FastEthernet interface by default, you can add a Serial interface.

Adding a Network Adapter

Step 9

The Idle-PC value is essential so that the IOS Router does not use 100% of your computer’s processor. So, click Idle-PC Finder to find a value suitable for your host’s hardware.

After finding a suitable Idle-PC value for your computer, click OK and continue.

Idle-PC Value

Step 10

After adding the Router IOS image, check the settings in the template window.

Checking Information of IOS Router

How to Create a New Project

After adding a Cisco Router or Switch IOS image to your network simulator program, you can start preparing network topologies by creating a new project.

Step 1

Open the new project wizard by pressing the new project icon or CTRL + N together from the tool menu, and after configuring your project name and location, click OK.

Creating a New Project

Step 2

Drag and drop the c7200 from the Routers panel to the workspace.

Adding One Cisco Router to the Workspace

Step 3

After clicking All Devices, drag and drop the Ethernet Switch from the listed devices to the workspace.

Adding One Cisco Switch to the Workspace

Step 4

Add two VPCS to the workspace as a virtual PC.

Adding Two VPCS to the Workspace

Step 5

After enabling the cabling option, connect the VPCSs to the Switch’s accessible Ethernet interfaces.

Connecting VPCSs to the Switch

Step 6

Cable the Cisco Switch to the FastEthernet 0/0 interface of Router R1.

NOTE: You may get a uBridge error when you try to connect the Cisco Switch to FastEthernet 0/0 or one of the other ports of the Router. In this case, open the terminal and re-download and compile the uBridge software for GNS3 from Github to fix the problem.

ERROR: => Error while creating a link: uBridge is not available, the path doesn’t exist, or you just installed GNS3 and need to restart your user session to refresh user permissions.

sudo apt install git
sudo apt install libpcap-dev
cd ~/Downloads
git clone https://github.com/GNS3/ubridge.git
cd ubridge && make
sudo make install

Connecting the Switch to the Router

Step 7

To assign IP addresses to computers in the network environment, open the console by double-clicking on VPCS PC1 and then execute the “ip 192.168.1.10/24” command.

ip 192.168.1.10/24 192.168.1.1

NOTE: If you see that the telnet console cannot be started when you want to configure the VPCSs after running all the devices in the topology, click Edit / Preferences from the tool menu of the emulator software. Then open Console Applications in the General tab and change XTERM to GNOME TERMINAL.

ERROR: Could not start Telnet console with the command ‘xterm -T “PC1” -e “telnet localhost 5002″‘: No such file or directory: ‘xterm.’

Assigning IP Address to PC1

Step 8

Likewise, execute the “ip 192.168.1.20/24” command to assign an IP address from the same IP block to VPCS PC2.

ip 192.168.1.20/24 192.168.1.1

Assigning IP Address to PC2

Step 9

Finally, execute these commands on the console. They assign an IP address to the Router’s Fa0/0 interface.

R1# conf t
R1(config)# interface fastEthernet 0/0
R1(config-if)# ip address 192.168.1.1 255.255.255.0
R1(config-if)# no shutdown

Assigning an IP Address to the Router

Step 10

After assigning IP addresses to all devices, test the connection. So, you can do this by pinging PC1 to R1’s Fa0/0 interface and PC2.

Ping from PC1 to Router and PC2

Step 11

To test the network connection from PC2, ping R1’s Fa0/0 interface and PC1.

Ping from PC2 to Router and PC1

How to Uninstall GNS3 from Linux Mint

After backing up network projects, removing GNS3 is simple. You can accomplish this with a single command in your Linux Mint OS.

Steps:

Step 1

To remove the simulator and its dependencies, execute “sudo apt remove gns3-server gns3-gui”. Then, confirm the deletion by pressing Y and Enter.

sudo apt remove gns3-server gns3-gui

Uninstalling GNS3

Step 2

You can also use the “sudo apt autoclean && sudo apt autoremove” command. It gets rid of leftover files from the simulator program on your Linux Mint system.

sudo apt autoclean && sudo apt autoremove

Deleting Unnecessary Files and Packages of GNS3

Video

Installing Old Versions

Mint and GNS3 Versions
Mint / GNS3 VersionYouTube VideoSlide
19 / 2.1WatchView
20 / 2.2WatchView
21 / 2.2 (NEW)Watch

Conclusion

To summarize, GNS3 are people who are specifically preparing for Cisco’s CCNA exams. Therefore, it is an excellent program for simulating networks. It runs fine on Linux Mint 22. It also allows users to create network designs quickly. Consequently, it comes with many features that will help them test it.

The article showed how to install GNS3 on Linux Mint so you can start using it right away. It’s easy to add Cisco IOS images, which helps you start projects fast. In short, this makes it an excellent tool for improving your networking skills.

2 Comments

Add a Comment

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