Tutorial GNS3 Installation in Ubuntu 22.04
TUTORIAL GNS3 INSTALLATION IN UBUNTU 22.04!
William Jonathan Mulyadi
2502045683
L4AC
First before starting, let me show you how is the result of my work (by using ping in both machines)
So as you can see, that I successfully ping both machines.
PART 1: Installation of GNS3
So to begin with the tutorial of the installation:
1. You have to open your Ubuntu terminal and write these following command:
> sudo apt-get update
> sudo apt-get upgrade
> sudo add-apt-repository ppa:gns3/ppa
2. Then to update system package and install GNS
> sudo apt-get update
> sudo apt-get install gns3-server gns3-gui
p.s.: the installation might takes quite a while.
3. You will be asked to allow non-root user to run WireShark and GNS3
Click yes for all of the prompt
4. Then do:
> sudo dpkg --add-architecture i386
> sudo apt-get update
5. Then install package.gns3-iou
> sudo apt-get install gns3-iou
PART 2: Installation of Docker
Before moving any further; you have to make sure that you already install Docker CE; if you haven't, follow this step:
1. Uninstall old version of docker
> sudo apt update
> sudo apt remove docker docker-engine docker.io 2>/dev/null
2. Update the apt package
> sudo apt update
3. Install package to allow apt for using repository over HTTPS:
> sudo apt -y install lsb-release gnupg apt-transport-https ca-certificates curl software-properties-common
4. Then add Docker's official GPG key:
> curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/docker.gpg
5. Add stable repository:
> sudo add-apt-repository "deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
6. Install the docker ce:
> sudo apt update
> sudo apt install docker-ce docker-ce-cli containerd.io docker-compose-plugin
7. Adding your user to "docker" group:
> sudo usermod-aG docker $USER
> newgrp docker
8. Confirm docker is installed
> docker version
> sudo systemctl status docker
// If by any chance it doesn't run, you can write these commands:
> sudo systemctl start docker
> sudo systemctl enable docker
> sudo systemctl restart docker
9. Test the docker
> docker run hello-world
it will show this:
PART 3: Setting up the task
After the installation process is done, you can open your GNS3 in your Ubuntu. You can directly search it. After that, you open the GNS3 and create a new project.
1. Then click the browse all devices in the left part of the machine:
2. After that, click new template:
3. Then you click on the recommended update, and press next.
4. After that, click on the button "Update from online registry".
5. Then you can click the Guest and search for Kali Linux CLI and Install it:
6. Then you can click finish.
The Kali Linux will be added in the template part; you can directly drag the kali into the empty part next to where you find the template. Then, it will take a while for it to pull the image. After that, you can drag another kali machine and ethernet switch.
Then you can click on this button to connect the machines to the switch:
(You can differentiate between the eth of both machine; for me I used Kali-eth0 with eth 0 and Kali-eth1 with eth1)
The result will be like this:
Then you click the play button and click the terminal.
After that you, do this following command:
on Kali-eth0
> ip a add 192.168.14.12/24 dev eth0
on Kali-eth1
> ip a add 192.168.14.13/24 dev eth1
To check the connection between the 2 machines, you can ping each other ip and if it is successfull, it mean it is already connected!
RESULT:
I hope that my explanation is clear and can be helpful to anyone who reads it!
Thank you!








Comments
Post a Comment