GNS3 is used by hundreds of thousands of network engineers worldwide to emulate, configure, test and troubleshoot virtual and real networks. It’s also a great tool for security researchers, so in this post, I am going to show the steps I used to setup the latest GNS3 network virtualization software on ArchLinux.
The first step is to make sure you have the following packages installed using
sudo pacman -S python-pip wget git sudo pacman -S python-pyqt5 qt5-tools qt5-multimedia sudo pacman -S gcc cmake libelf libpcap sudo pacman -S bison flex git
Next, you need to use python’s
pip installer to setup a few python modules needed for GNS3.
sudo pip install --upgrade pip sudo pip install -U tornado ws4py setuptools netifaces zmq dev sudo pip install -U ws4py sudo pip install pyqt5
Now that prerequisite packages have been installed, its time to install the GNS3 packages starting with the GNS3 GUI from github.
mkdir -p /tmp/gns3 cd /tmp/gns3 git clone https://github.com/GNS3/gns3-gui.git cd gns3-gui sudo python setup.py install cd ..
Once the GNS3 GUI was setup, you need to install the GNS3 Server as seen below.
git clone https://github.com/GNS3/gns3-server.git cd gns3-server sudo python setup.py install cd ..
In order to run the IOS images within the GNS3 Server, you need to have dynamips installed to emulate the Cisco devices.
git clone git://github.com/GNS3/dynamips.git cd dynamips mkdir build cd build cmake .. make sudo make install cd ../..
The ubridge package is needed for creating network connections between GNS3 and our physical or virtual network space.
git clone https://github.com/GNS3/ubridge.git cd ubridge make sudo make install cd ..
Next, to install the Virtual PCs (VPCS) packages to allow emulating of PCs on the virtual network.
git clone https://github.com/GNS3/vpcs.git cd vpcs/src sh mk.sh cp vpcs /usr/local/bin/ chmod +x /usr/local/bin/vpcs cd ../..
Last, but not least, you need to install the iniparser to help with Cisco IOU.
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 cd ..
Once all the above steps have been taken, you should now be able to start the GNS3 GUI by running the command
gns3 at the command line.