Setting up GNS3

tested on ubuntu

Requirements

For the Cloud connection to work, make sure you’ve got a bridge already, in which eth0 is part of. Any bridge will do, it can be xenbr0 or virbr0, and validate with a VPCS. Here, when the Cloud connection was eth0 itself, the host was not reachable and strangely enough, it still did relay the traffic across the LAN, as the gateway was responding .o0O

For the NAT connection to work, make sure you’ve got the virbr0 bridge already in da place. See the KVM guide.

Install

dpkg --add-architecture i386
add-apt-repository ppa:gns3/ppa
apt install gns3-gui gns3-iou gns3-server

non-root YES
non-root capture YES

we’ve got an issue with dynamips/amd64, we need the i386 flavor. last available was for eoan (http://ppa.launchpad.net/gns3/ppa/ubuntu/pool/main/d/dynamips/)

dpkg -l | grep dynamips
dpkg -r dynamips

wget http://ppa.launchpad.net/gns3/ppa/ubuntu/pool/main/d/dynamips/dynamips_0.2.21-1~eoan1_i386.deb
dpkg -i dynamips_0.2.21-1~eoan1_i386.deb
apt-get -f install

make sure you’re compliant with all the KVM and Libvirt requirements (libvirt group and bridge-utils, for example)

and finally restart your user session for the group permissions to apply or hotfix as follows

newgrp wireshark

Ready to go

systemctl status gns3
systemctl restart gns3
systemctl enable gns3
netstat -lntup | grep 3080

as user

gns3

add the Libvirt bridge in da Cloud

right-click properties

show special ethernet interfaces
add virbr0

also tune the terminal

Edit > Preferences / Console applications

# gnome-terminal -t "%d" -e "telnet %h %p"
EDIT --> terminator -e "telnet %h %p" -T "%d"

Server mode

#apt install python3-setuptools python3-aiohttp python3-psutil python3-jsonschema git
wget https://raw.githubusercontent.com/GNS3/gns3-server/master/init/gns3.service.systemd
mv -i gns3.service.systemd /lib/systemd/system/gns3.service

which gns3server
vi /lib/systemd/system/gns3.service

(switch to /usr/bin/gns3server)

systemctl daemon-reload

guests take a lot of space, use a large partition for that purpose

useradd --system -s /sbin/nologin -m -d /data/gns3 gns3
usermod -aG ubridge gns3
usermod -aG kvm gns3
grep gns3 /etc/group
grep gns3 /etc/passwd

systemctl enable gns3
systemctl start gns3
netstat -lntp | grep 3080
nmap -p 3080 localhost

Dynamips appliances

see gns3-appliances

DIY QEMU templates

see gns3-guests

Resources

https://docs.gns3.com/docs/getting-started/installation/remote-server

https://docs.gns3.com/docs/getting-started/installation/one-server-multiple-clients/

https://sourceforge.net/projects/gns-3/files/Qemu%20Appliances/

https://docs-v1.gns3.com/1_3RdgLWgfk4ylRr99htYZrGMoFlJcmKAAaUAc8x9Ph8/index.html

https://github.com/GNS3/gns3-registry/tree/master/appliances

https://www.gns3.com/marketplace/appliances

https://docs.gns3.com/docs/using-gns3/advanced/create-a-new-version-for-an-appliance/

https://docs-v1.gns3.com/1_3RdgLWgfk4ylRr99htYZrGMoFlJcmKAAaUAc8x9Ph8/index.html

tuning

RouterGods - Adding serial interfaces in GNS3 https://www.youtube.com/watch?v=nMGl8M9JruU

How to add serial port on C7200 router? http://forum.gns3.net/post25282.html

Cloud how to add serial interface? https://www.gns3.com/community/featured/cloud-how-to-add-serial-interfac

A Comparison of GNS3 Terminal Applications https://rednectar.net/2013/09/09/a-comparison-of-gns3-terminal-applications/

Use custom symbols in GNS3 https://docs.gns3.com/docs/using-gns3/beginners/change-node-symbol

https://superuser.com/questions/272061/reload-a-linux-users-group-assignments-without-logging-out –> newgrp

systemd

https://docs.gns3.com/docs/using-gns3/administration/running-gns3-server-as-daemon/


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun