您的位置:首页 > 其它

unbuntu 16.04 LTS下安装GNS3 1.4.6

2016-06-17 00:34 483 查看
先吐槽一下系统:



我用的linux版本是Ubuntu kylin 16.04 LTS ,确实比源生Ubuntu界面要好一些,符合中国人习惯,但是默认的中文输入法却不尽如人意,默认是繁体字。。听说是可以用搜狗输入法、还没有试过。默认安装的谷歌浏览器显示效果不好,火狐还可以。

之前看过一个文章说,在linux下运行gns3比较好,资源占用少,且直接可以安装iou,就可以不用gns3-iou VM了,然后我就想试一下。而且我在官方文档上确实看到:官方确实推荐在linux下使用。

On which operating systems can I use GNS3?

GNS3 works on Windows, Linux and Mac OS. However, we recommend Linux because GNS3 can leverage some Linux kernel features which increase performances and stability (e.g. KVM), also some emulated devices, like IOU (IOS on UNIX), can only run on Linux. Note that the three platforms get the same level of support from the GNS3 team.

1.安装系统.我在虚拟机上装的,这里说下怎么安装VMware Tools,(备忘)



将VMware Tools.tar.gz提取到任意地方,在那个文件夹下打开终端执行
sudo ./vmware-install.pl , 一路回车就行了,系统重启后生效

2.打开终端,输入一下命令,通过安装包安装确实省事,一次就成功了。我在debain上也试过,安装过程有报错,然后就放弃了。

Installation from packages

Ubuntu-based distributions (64-bit only)
Run the following commands in a terminal:

sudo add-apt-repository ppa:gns3/ppa
sudo apt-get update
sudo apt-get install gns3-gui

If you want IOU support:

sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install gns3-iou


3.启动GNS3
在终端上直接输入gns3即可,下面是部分输出。(光是这步,就找了半天文档)
例如:
apple@ubuntu:~$ gns3
GNS3 GUI version 1.4.6
Copyright (c) 2007-2016 GNS3 Technologies Inc.
2016-06-16 23:37:10 INFO logger.py:107 Log level: INFO
2016-06-16 23:37:12 ERROR __init__.py:144 vmware command not found
2016-06-16 23:37:12 INFO servers.py:102 New local server connection http://127.0.0.1:8000 registered
2016-06-16 23:37:12 INFO __init__.py:181 VPCS module reset
2016-06-16 23:37:12 INFO __init__.py:324 Dynamips module reset
2016-06-16 23:37:12 INFO __init__.py:264 IOU module reset
2016-06-16 23:37:12 INFO __init__.py:258 QEMU module reset
2016-06-16 23:37:12 INFO __init__.py:302 VirtualBox module reset
2016-06-16 23:37:12 INFO __init__.py:368 VMware module reset
2016-06-16 23:37:12 INFO __init__.py:70 Built-in module reset
2016-06-16 23:37:12 INFO topology.py:407 Topology reset

4.添加ios和iou,直接从windows下复制过来,,当添加iou时,最好不用让软件自动复制到images 目录,可能会报错:
error while starting IOU1: IOU image '/home/apple/GNS3/images/IOU/i86bi-linux-l2-upk9-12.2.bin' is not executable
原因:网友说是复制的过程中添加空格了。紫钥匙想把iou放在它指定的目录,你可以自己手工复制,这样是没问题的。
还有iourc的问题,这个需要用CiscoIOUKeygen.py自己运算出来,也可以从网上找,这个工具我提供下载。
运算过程:
apple@ubuntu:~/GNS3/images/IOU$ python3 CiscoIOUKeygen.py
*********************************************************************
Cisco IOU License Generator - Kal 2011, python port of 2006 C version
Modified to work with python3 by c_d 2014
hostid=00000000, hostname=ubuntu, ioukey=2a3

Add the following text to ~/.iourc:
[license]
ubuntu = da20375fbbe5a952;

You can disable the phone home feature with something like:
echo '127.0.0.127 xml.cisco.com' >> /etc/hosts

apple@ubuntu:~/GNS3/images/IOU$

[license]ubuntu = da20375fbbe5a952;保存在一个文本文档里就行。

以下是我两个iourc的内容:一个是ubuntu的,这个“ubuntu”就是我系统的名字,如果iourc不对的话,会报错(如下),我觉得iourc确实与系统名称有关:我的系统名是Ubuntu,license就是Ubuntu打头,系统是虚拟机你上的gns3-iouvm,license就是gns3-iouvm打头。

error while starting IOU1: Hostname "ubuntu" not found in iourc file /home/apple/GNS3/images/IOU/iourc.txt

[license]
ubuntu = da20375fbbe5a952;

[license]
gns3-iouvm = cd11acbc599f2364;
gns3vm = 73635fd3b0a13ad0;

5.现在就已经装好了,linux 确实可以直接运行iou,如下。







引用:
from:
https://www.gns3.com/software/faq

https://www.gns3.com/support/docs/linux-installation

CiscoIOUKeygen.py 见下面链接文章附件

http://www.xueyue8.cn/ZBlog/?id=17

本文出自 “雪月工作室” 博客,请务必保留此出处http://xueyue8.blog.51cto.com/4650249/1790122
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: