Chinaunix首页 | 论坛 | 博客
  • 博客访问: 243605
  • 博文数量: 8
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 240
  • 用 户 组: 普通用户
  • 注册时间: 2014-05-13 08:39
个人简介

笨鸟要先飞

文章分类

全部博文(8)

文章存档

2015年(5)

2014年(3)

我的朋友

分类: 网络与安全

2015-09-28 19:17:03

经过实践检验,适用于GNS3 1.3.10,特此记录下。
转自: />
Updated for GNS3 version 1.3.7

Please NOTE: This document has been updated for GNS3 1.3.7 and is no longer applicable to earlier versions of GNS3.

GNS3 runs great on Ubuntu, and it's easy to install. This quick tutorial provides the steps to install GNS3, with IOU support, on Ubuntu 14.0.4.1 LTS 64-bit. When finished, you'll still have to install an IOU license file (for IOU support), IOU image files, and IOS image files; GNS3 does not provide any of those files, so you'll have to acquire them on your own.




点击(此处)折叠或打开

  1. --- GNS3 is installed from a Terminal command line ---

  2. # - After opening a terminal, I recommend changing to your user directory.
  3. $ cd ~



  4. # - Run apt-get update
  5. $ sudo apt-get update



  6. # - Install GNS3 Python dependencies
  7. $ sudo apt‐get install python3‐setuptools
  8. $ sudo apt‐get install python3‐pyqt4
  9. $ sudo apt‐get install python3‐ws4py
  10. $ sudo apt‐get install python3‐netifaces



  11. #- Install Dynmips dependencies
  12. $ sudo apt-get install cmake
  13. $ sudo apt‐get install libelf‐dev
  14. $ sudo apt‐get install uuid‐dev
  15. $ sudo apt‐get install libpcap‐dev


  16. # - Download and unzip GNS3 Linux source files
  17. $ unzip GNS3-1.3.7-source.zip
  18. dynamips-0.2.14.zip gns3-server-1.3.7.zip vpcs-0.6.zip
  19. gns3-gui-1.3.7.zip iouyap-0.95.zip

  20. # - Build and Install Dynamips
  21. $ unzip dynamips-0.2.14.zip
  22. $ cd dynamips-0.2.14
  23. $ mkdir build
  24. $ cd build
  25. $ cmake ..
  26. $ make
  27. $ sudo make install
  28. $ sudo setcap cap_net_admin,cap_net_raw=ep /usr/local/bin/dynamips
  29. $ cd ../..

  30. # - Install GNS3 Server
  31. $ unzip gns3-server-1.3.7.zip
  32. $ cd gns3-server-1.3.7
  33. $ sudo python3 setup.py install
  34. $ cd ..

  35. # - Install GNS3 GUI
  36. $ unzip gns3-gui-1.3.7.zip
  37. $ cd gns3-gui-1.3.7
  38. $ sudo python3 setup.py install
  39. $ cd ..


  40. # - Install IOU dependencies
  41. $ sudo apt-get install libssl1.0.0:i386
  42. $ sudo ln -s /lib/i386-linux-gnu/libcrypto.so.1.0.0 /lib/libcrypto.so.4
  43. $ sudo apt-get install bison
  44. $ sudo apt-get install flex
  45. $ sudo apt-get install git
  46. $ git clone http://github.com/ndevilla/iniparser.git
  47. $ cd iniparser
  48. $ make
  49. $ sudo cp libiniparser.* /usr/lib/
  50. $ sudo cp src/iniparser.h /usr/local/include
  51. $ sudo cp src/dictionary.h /usr/local/include
  52. $ cd ..


  53. # - Install GNS3 IOUYAP app (provides network support for IOU)
  54. $ unzip iouyap-0.95.zip
  55. $ cd iouyap-0.95
  56. $ sudo make install
  57. $ sudo cp iouyap /usr/local/bin
  58. $ cd ..


  59. # - Install VPCS
  60. $ unzip vpcs-0.6.zip
  61. $ cd vpcs-0.6/src
  62. $ ./mk.sh
  63. $ sudo cp vpcs /usr/local/bin/
  64. $ cd ../..


  65. # - Install VirtualBox
  66. $ sudo apt-get install virtualbox


  67. # - Install Wireshark
  68. $ sudo apt-get install wireshark


  69. # - Install QEMU - method 1
  70. $ sudo apt-get install qemu


  71. # - Install QEMU - method 2 (x86 arch. only)
  72. $ sudo apt-get install qemu-system-x86
  73. $ sudo apt-get install qemu-utils

  74. # - Install cpulimit
  75. $ sudo apt-get install cpulimit
  76. Add your IOU License file, IOU/IOS images, and you're ready to create projects, so launch GNS3 and get started!


  77. # - Start GNS3
  78. $ gns3

  79. That's it. Have fun!
阅读(3028) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~