GNS3 on Fedora 23

Installing GNS3 for my Cisco studies on my company laptop.. let’s make use of that 16 Gigs of RAM they gave me :]

source:
https://www.m00nie.com/2015/05/install-gns3-1-x-on-fedora-22/
and
http://www.computingforgeeks.com/2016/01/how-to-install-latest-gns3-network.html

start with a sane environment for compiling and pull in some dependencies:
# dnf groupinstall "Development Tools"
# dnf install git gcc cmake bison flex
# dnf install python3-tornado python3-netifaces python3-devel python-pip python3-setuptools python3-PyQt4 python3-zmq
# dnf install elfutils-libelf-devel libuuid-devel libpcap-devel
# dnf install python3-PyQt5

Downloading and installing Gns3 gui

git clone https://github.com/GNS3/gns3-gui
cd gns3-gui
sudo python3 setup.py install

Downloading and installing Gns3 Server

git clone https://github.com/GNS3/gns3-server
cd gns3-server
sudo python3 setup.py install

If you want to use Python pip to install both Gns3 server and Gui, Just run the commands below.

sudo pip3 install gns3-server
sudo pip3 install gns3-gui

If you would like to install latest version of Gns3 1.4.x, ude the link below to download it https://github.com/GNS3/gns3-gui/releases
Download and Install Dynamips Hypervisor.

git clone https://github.com/GNS3/dynamips
cd dynamips
mkdir build
cd build
cmake ..
sudo make install

Extra: iouyap has issues with iniparser so workaround: (download or compile it) do this before building iouap:

git clone http://github.com/ndevilla/iniparser.git
cd iniparser
make
sudo cp libiniparser.* /usr/lib/
sudo cp src/iniparser.h /usr/local/include
sudo cp src/dictionary.h /usr/local/include

git clone https://github.com/GNS3/iouyap.git
cd iouyap
make
chmod +x iouyap
sudo cp iouyap /usr/local/bin/

Download and Install iouyap.

git clone https://github.com/GNS3/iouyap.git
cd iouyap
bison –yacc -dv netmap_parse.y
flex netmap_scan.l
gcc -Wall -g *.c -o iouyap -liniparser -lpthread
make
sudo make install
chmod +x iouyap
sudo cp iouyap /usr/local/bin
sudo setcap cap_net_admin,cap_net_raw=ep /usr/local/bin/iouyap

then continue:

Download and install vpcs

wget http://sourceforge.net/projects/vpcs/files/0.8/vpcs_0.8b_Linux64/download
mv download vpcs
chmod +x vpcs
sudo cp vpcs /usr/local/bin/

now build a launcher: find out where the application resides:

[root@anakin tmp]# which gns3
/bin/gns3
[root@anakin tmp]#

download the icon:
cd ~
wget https://www.gns3.com/assets/images/logo-colour.png

assuming it went to my homedir:

# vi /usr/share/applications/gns3.desktop

[Desktop Entry]
Type=Application
Encoding=UTF-8
Terminal=false
Keywords=Emulator;Simulator;Networking;Network Design;Gns3;
GenericName=Network Emulator
Name=Gns3 Network Emulator
Exec=/bin/gns3
Icon=/home/andreas/logo-colour.png
Categories=GTK;GNOME;Development;

should be in development/programming menu now

alternatively use alacarte to create a nice launcher:
# dnf install alacarte

Name: GNS3 Network Simulator
command: /bin/gns3
comment: Best Network Emulator.

Last: change xterm to gnome-terminal for console:
gnome-terminal -t %d -e ‘telnet %h %p’ > /dev/null 2>&1 &

if you want to run an ASA inside GNS3 it is very important to do the following:
– run the recommended images as per GNS3 forum link
– – (ASA 8.4.2, adsm 6.4.7) – other versions apparently crash.
– connect a windows VM to it using IE (see above example)
– use the “cloud” interface and tie it to a loopback interface to allow internet access via the ASA
– create a tun interface and configure it – see here
– make the tun interface accessible for userland – see here