How to Install GNS3 in CentOS 7?

Stpe 1.First update the machine. And install epel repository after that restart the machine…..
# yum update
# yum install epel* -y
# init 6
# yum install gcc

Step 2.Now install the following packages

# yum install zlib-devel openssl-devel sqlite-devel bzip2-devel telnet

Step 3.Install Python-3.5
# cd ~/Downloads
# wget https://www.python.org/ftp/python/3.5.1/Python-3.5.1.tar.xz
# xz -d Python-3.5.1.tar.xz
# tar xvf Python-3.5.1.tar
# cd Python-3.5.1
# ./configure
# make
# make test
# make install

Step 4.Install Python setuptools
# cd ~/Downloads
# wget https://pypi.python.org/packages/source/s/setuptools/setuptools-12.2.zip
# unzip setuptools-12.2.zip
# cd setuptools-12.2
# python3.4 setup.py install
# cd ..

Step 5.Install ws4py
# git clone https://github.com/Lawouach/WebSocket-for-Python
# cd WebSocket-for-Python
# python3.4 setup.py install
# cd ..

Step 6.Install Qt5
# yum install qt5*
# cd /usr/bin
# ln -s qmake-qt5 qmake
# cd ~/Downloads

Step 7.Install sip
# wget https://sourceforge.net/projects/pyqt/files/sip/sip-4.18.1/sip-4.18.1.tar.gz/download
# tar zxvf sip-4.18.1.tar.gz
# cd sip-4.18.1
# python3.4 ./configure.py
# make
# make install
# cd ..

Step 8.Install pyqt5 (be patient – this takes a while to build)
# wget http://sourceforge.net/projects/pyqt/files/PyQt5/PyQt-5.5.1/PyQt-gpl-5.5.1.tar.gz
# tar zxvf PyQt-gpl-5.5.1.tar.gz
# cd PyQt-gpl-5.5.1
# python3.4 ./configure.py
# type: “yes” to accept the license
# make
# make install
# cd ..

Step 9.Install netifaces
# wget https://pypi.python.org/packages/source/n/netifaces/netifaces-0.10.4.tar.gz
# tar xfv netifaces-0.10.4.tar
# cd netifaces-0.10.4
# python3.4 setup.py install

Step 10.Install Dynamips dependencies
# yum install cmake elfutils-libelf-devel libpcap-devel libuuid-devel

Step 11.Install IOU x86 dependencies
# ln -s /usr/lib/libcrypto.so.10 /usr/lib/libcrypto.so.4
# yum install libgcc_s.so.1

Step 12.Install other IOU dependencies
# wget http://ndevilla.free.fr/iniparser/iniparser-3.1.tar.gz
# tar zxf iniparser-3.1.tar.gz
# cd iniparser
# make
# cp libiniparser* /usr/lib
# cp src/*.h /usr/include

Step 13.Download and Unzip GNS3 Base files Download
# unzip GNS3-1.4.4.source.zip
(dynamips-0.2.14.zip gns3-server-1.4.4.zip vpcs-0.6.1.zip
gns3-gui-1.4.4.zip iouyap-0.97.zip)

Install the gns3-server
# unzip gns3-server-1.4.4.zip
# cd gns3-server-1.4.4
# python3.4 setup.py install
# cd ..

Install the gns3-gui
# unzip gns3-gui-1.4.4
# cd gns3-gui-1.4.4
# python3.4 setup.py install
# cd ..

Fix GNOME menu icons
# gconftool-2 –type Boolean –set /desktop/gnome/interface/menus_have_icons True

Install Dynamips
# unzip dynamips-0.2.14
# cd dynamips-0.2.14
# mkdir build
# cd build
# cmake ..
# make
# make install
# setcap cap_net_admin,cap_net_raw=ep /usr/local/bin/dynamips
# cd../..

Install IOU network support
# yum install bison.x86_64 flex.x86_64 -y
# unzip iouyap-0.97.zip
# cd iouyap-0.97
# make
# make install
# cp iouyap /usr/local/bin/
# cd ..

Install VPCS
# yum install glibc-static
# unzip vpcs-0.6.1.zip
# cd vpcs-0.6.1/src/
# ./mk.sh
# cp vpcs /usr/local/bin/
# cd ../..

Step 14.Install cpulimit
# wget http://sourceforge.net/projects/cpulimit/files/cpulimit/cpulimit/cpulimit-1.1.tar.gz
# tar zxvf cpulimit-1.1.tar.gz
# cd cpulimit-1.1
# make
# cp cpulimit /usr/local/bin
# cd ..

Step 15.Install QEMU (from source)
# yum install zlib-devel glib2-devel
# wget http://wiki.qemu-project.org/download/qemu-2.3.0.tar OR wget http://wiki.qemu-project.org/download/qemu-2.3.0.tar.bz2
# bunzip2 qemu-2.3.0.tar.bz2
# tar xvf qemu-2.3.0.tar
# cd qemu-2.3.0
# ./configure
# make
# make install

Step 16.Install wireshark
# yum install wireshark-gnome

Step 17.Install VirtualBox
No package is available, download from: Linux_Downloads – Oracle VM VirtualBox
Choose AMD64: Oracle Linux 7 (“OL7”) / Red Hat Enterprise Linux 7 (“RHEL7”) / CentOS 7 | AMD64
Open and Install as directed by CentOS (default’s will get the job done)
\\\\\*** This is not necessary to install Virtualbox now, if you have already installed virtualbox, then it’s good. OR you can install Virtualbox first and then start the above Steps…………..

Launch GNS3
# gns3

IOS:
c3640-ik9o3s-mz124-13-bin
c2691-entservicesk9-mz-124-13b-bin
c3745-advipservicesk9-mz-124-25d-bin
Source link

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s