Advertisement
opexxx

How To Install GNS3 on Centos/Redhat/Fedora

May 4th, 2014
396
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.48 KB | None | 0 0
  1. You won't find detailed instructions for GNS3 installation on Centos/Redhat/Fedora over the net, So I decided to make one for our certcollection members. Installing GNS3 on Centos/Redhat/Fedora can be very tedious task. But If you follow my Steps given below you can setup and run GNS3 without any difficulty. Since Qt 4.5.1 binary which is required for GNS3 is not available for these OS's, we'll have to compile it from the source.
  2.  
  3. IMP:: Installation of all this packages will take a lot of time. So do it in the free time.
  4.  
  5. OK lets roll
  6.  
  7. First we'll have to install dependencies
  8.  
  9. [user@admin ~]$ su
  10.  
  11. Password: (Type in your root password here)
  12.  
  13. [root@admin /]# yum install python python-devel xorg-x11-proto-devel libXext-devel
  14.  
  15. [root@admin /]# yum install gcc-c++
  16.  
  17.  
  18. Now we'll download and install Qt4
  19.  
  20. [root@admin /]#cd /tmp
  21.  
  22. [root@admin tmp#wget http://ftp.heanet.ie/disk1/ftp.trolltech.com/pub/qt/source/qt-x11-opensource-src-4.5.1.tar.gz
  23.  
  24. [root@admin tmp]#tar xzf qt-x11-opensource-src-4.5.1.tar.gz
  25.  
  26. [root@admin tmp]# cd qt-x11-opensource-src-4.5.1
  27.  
  28. [root@admin qt-x11-opensource-src-4.5.1]#./configure -nomake examples -nomake demos -qt-gif -no-exceptions -debug -qt3support
  29.  
  30. [root@admin qt-x11-opensource-src-4.5.1]#gmake <====This might take 2-3 hrs.
  31.  
  32. [root@admin qt-x11-opensource-src-4.5.1]#gmake install <====Another 30 mins or so
  33.  
  34. [root@admin qt-x11-opensource-src-4.5.1]#PATH=/usr/local/Trolltech/Qt-4.5.1/bin:$PATH
  35.  
  36. [root@admin qt-x11-opensource-src-4.5.1]#export PATH
  37.  
  38.  
  39. Next we'll install SIP
  40.  
  41. [root@admin qt-x11-opensource-src-4.5.1]#cd ..
  42.  
  43. [root@admin tmp]#wget http://cvs.fedoraproject.org/lookaside/pkgs/sip/sip-4.8.1.tar.gz/859e5b103ba5a083e4f2021eb6d99b26/sip-4.8.1.tar.gz
  44.  
  45. [root@admin tmp]#tar xzf sip-4.8.1.tar.gz
  46.  
  47. [root@admin tmp]#cd sip-4.8.1
  48.  
  49. [root@admin sip-4.8.1]#python configure.py
  50.  
  51. [root@admin sip-4.8.1]#make
  52.  
  53. [root@admin sip-4.8.1]#make install
  54.  
  55.  
  56. Next we'll Install PyQt4
  57.  
  58. [root@admin sip-4.8.1]#cd ..
  59.  
  60. [root@admin tmp]#wget http://cvs.fedoraproject.org/lookaside/pkgs/PyQt4/PyQt-x11-gpl-4.5.2.tar.gz/997269d78aced5b1105edb155d49e248/PyQt-x11-gpl-4.5.2.tar.gz
  61.  
  62. [root@admin tmp]#tar xzf PyQt-x11-gpl-4.5.2.tar.gz
  63.  
  64. [root@admin tmp]#cd PyQt-x11-gpl-4.5.2
  65.  
  66. [root@admin PyQt-x11-gpl-4.5.2]#python configure.py
  67.  
  68. [root@admin PyQt-x11-gpl-4.5.2]#make <=====This will take 30-60 mins
  69.  
  70. [root@admin PyQt-x11-gpl-4.5.2]#make install
  71.  
  72.  
  73. We are done with compiling part, now lets download GNS3 source files
  74.  
  75. [root@admin tmp]#cd /opt
  76.  
  77. [root@admin opt]#wget http://space.dl.sourceforge.net/project/gns-3/GNS3/0.7.3/GNS3-0.7.3-src.tar.bz2
  78.  
  79. [root@admin opt]#tar -xjvf GNS3-0.7.3-src.tar.bz2 && rm GNS3-0.7.3-src.tar.bz2
  80.  
  81. [root@admin opt]#mv GNS3-0.7.3-src /opt/GNS3
  82.  
  83.  
  84. Create the following directories:
  85. These directories will be used by GNS3 – such as projects – where your working projects will be stored, cache, temp, IOS images, etc.
  86.  
  87. [root@admin opt]#cd /opt/GNS3
  88. [root@admin GNS3]#mkdir Dynamips
  89. [root@admin GNS3]#mkdir IOS
  90. [root@admin GNS3]#mkdir Project
  91. [root@admin GNS3]#mkdir Cache
  92. [root@admin GNS3]#mkdir tmp
  93. [root@admin GNS3]#chmod o+rw -R ./Project
  94. [root@admin GNS3]#chmod o+rw -R ./tmp
  95. [root@admin GNS3]#chmod o+rw -R ./IOS
  96.  
  97. Download binary of dynamips and make it executable
  98.  
  99. [root@admin GNS3]#cd Dynamips
  100.  
  101. [root@admin Dynamips ]#wget http://www.ipflow.utc.fr/dynamips/dynamips-0.2.8-RC2-x86.bin
  102.  
  103. [root@admin Dynamips ]#chmod +x ./dynamips-0.2.8-RC2-x86.bin
  104.  
  105. IMP:: For 64-bit users
  106. [root@admin Dynamips ]#wget http://www.ipflow.utc.fr/dynamips/dynamips-0.2.8-RC2-amd64.bin
  107. [root@admin Dynamips ]#chmod +x ./dynamips-0.2.8-RC2-amd64.bin
  108.  
  109. You can create a desktop shortcut by right-clicking on the desktop and select “Create Launcher..”, Name it GNS3 and in the command section type in
  110.  
  111. python "/opt/GNS3/gns3"
  112.  
  113. Double click to open GNS3 and we will edit the default settings. If you don’t want to use desktop icons you can create a launcher from your programs menu by right clicking on the Main Menu, selecting Edit Menu. Select New Item on the right and you will be presented with the same window where you type in the above. From there you can move the launcher into any menu section of your choice.
  114.  
  115. Fire up GNS3
  116.  
  117. * Go to edit | preferences and in the ‘Terminal command:’ section type in:
  118. gnome-terminal -t %d -e 'telnet %h %p' > /dev/null 2>&1 &
  119.  
  120. * Under ‘Paths’ change the ‘Project directory:’ to
  121. /opt/GNS3/Project
  122. and the ‘IOS/PIX directory:’ to
  123. /opt/GNS3/IOS
  124.  
  125. * Click on Dynamips tab on the left
  126. For the ‘Executable path:’ type in
  127. /opt/GNS3/Dynamips/dynamips-0.2.8-RC2-x86.bin
  128.  
  129. * Change the ‘Working directory:’ to
  130. /opt/GNS3/tmp
  131. Click on the Capture tab on the left
  132.  
  133. * For the ‘Working directory for capture files:’ change it to
  134. /opt/GNS3/Project
  135.  
  136. Imp:: When you want to stop the router, use right click stop on the router.
  137.  
  138. After you have done all that, you will be able to Open and Save your GNS3 projects properly and have an efficient setup for GNS3. In order to use the devices in GNS3 you must obtain our own IOS images from Cisco or you can request for it @ http://certcollection.org/forum/index.php?/forum/203-ios-and-related-cisco-files/
  139.  
  140. In my next tutorial, we'll install loopback adapter on Centos/Redhat/Fedora for GNS3.
  141. http://certcollection.org/forum/index.php?/topic/36486-tutorialhow-to-create-a-loopback-interface-in-linux-for-gns3/
  142.  
  143. Find More Tutorials on Gns3
  144. http://networkingtips-tricks.blogspot.com/search/label/GNS3%20Tutorials
  145.  
  146.  
  147. Happy Learning
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement