CentOS6.5 安装GNS3
admin
2023-01-30 18:05:57
0

实验所需软件下载地址:http://down.51cto.com/data/2092966


1、实验环境

[root@CentOS1 ~]# head -1 /etc/issue

CentOS release 6.5 (Final)

[root@CentOS1 ~]# uname -r

2.6.32-431.el6.i686


2、准备工作

2.1、安装图形界面

yum -y groupinstall "Desktop"

yum -y groupinstall "X Window System"

yum -y groupinstall "Chinese Support" 

startx

2.2、安装VNC

yum -y install tigervnc*

vncserver :1


3、安装依赖包

yum -y install PyQt4 sip python qt qt-x11


4、安装dynamips

[root@CentOS1 src]# ls

c3640-jk9o3s-mz.124-7a.bin  dynamips-0.2.8-RC3-community.tar.gz  GNS3-0.8.3.1-src.tar.gz

[root@CentOS1 src]# tar zxvf dynamips-0.2.8-RC3-community.tar.gz

[root@CentOS1 src]# cd dynamips-0.2.8-RC3-community

[root@CentOS1 dynamips-0.2.8-RC3-community]# make

make -C stable

make[1]: Entering directory `/usr/local/src/dynamips-0.2.8-RC3-community/stable'

Linking rom2c

make[1]: cc: Command not found

make[1]: *** [rom2c] Error 127

make[1]: Leaving directory `/usr/local/src/dynamips-0.2.8-RC3-community/stable'

make: *** [dynamips.stable] Error 2

[root@CentOS1 dynamips-0.2.8-RC3-community]# yum -y install gcc

[root@CentOS1 dynamips-0.2.8-RC3-community]# make

make -C stable

make[1]: Entering directory `/usr/local/src/dynamips-0.2.8-RC3-community/stable'

Linking rom2c

cc: /usr/lib/libelf.a: No such file or directory

../common/rom2c.c:16:20: error: libelf.h: No such file or directory

../common/rom2c.c: In function ‘main’:

../common/rom2c.c:25: error: ‘Elf32_Ehdr’ undeclared (first use in this function)

../common/rom2c.c:25: error: (Each undeclared identifier is reported only once

../common/rom2c.c:25: error: for each function it appears in.)

../common/rom2c.c:25: error: ‘ehdr’ undeclared (first use in this function)

../common/rom2c.c:26: error: ‘Elf32_Phdr’ undeclared (first use in this function)

../common/rom2c.c:26: error: ‘phdr’ undeclared (first use in this function)

../common/rom2c.c:27: error: ‘Elf’ undeclared (first use in this function)

../common/rom2c.c:27: error: ‘img_elf’ undeclared (first use in this function)

../common/rom2c.c:42: warning: implicit declaration of function ‘elf_version’

../common/rom2c.c:42: error: ‘EV_CURRENT’ undeclared (first use in this function)

../common/rom2c.c:42: error: ‘EV_NONE’ undeclared (first use in this function)

../common/rom2c.c:47: warning: implicit declaration of function ‘elf_begin’

../common/rom2c.c:47: error: ‘ELF_C_READ’ undeclared (first use in this function)

../common/rom2c.c:49: warning: implicit declaration of function ‘elf_errmsg’

../common/rom2c.c:49: warning: implicit declaration of function ‘elf_errno’

../common/rom2c.c:49: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’

../common/rom2c.c:53: warning: implicit declaration of function ‘elf32_getphdr’

../common/rom2c.c:55: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’

../common/rom2c.c:64: warning: implicit declaration of function ‘elf32_getehdr’

make[1]: *** [rom2c] Error 1

make[1]: Leaving directory `/usr/local/src/dynamips-0.2.8-RC3-community/stable'

make: *** [dynamips.stable] Error 2

[root@CentOS1 dynamips-0.2.8-RC3-community]# yum -y install elfutils*

[root@CentOS1 dynamips-0.2.8-RC3-community]# make

make -C stable

make[1]: Entering directory `/usr/local/src/dynamips-0.2.8-RC3-community/stable'

Linking rom2c

/usr/bin/ld: cannot find -luuid

collect2: ld returned 1 exit status

make[1]: *** [rom2c] Error 1

make[1]: Leaving directory `/usr/local/src/dynamips-0.2.8-RC3-community/stable'

make: *** [dynamips.stable] Error 2

[root@CentOS1 dynamips-0.2.8-RC3-community]# yum -y install libuuid*

[root@CentOS1 dynamips-0.2.8-RC3-community]# make

make -C stable

make[1]: Entering directory `/usr/local/src/dynamips-0.2.8-RC3-community/stable'

Linking rom2c

/usr/bin/ld: cannot find -lpcap

collect2: ld returned 1 exit status

make[1]: *** [rom2c] Error 1

make[1]: Leaving directory `/usr/local/src/dynamips-0.2.8-RC3-community/stable'

make: *** [dynamips.stable] Error 2

[root@CentOS1 dynamips-0.2.8-RC3-community]# yum -y install libpcap*

[root@CentOS1 dynamips-0.2.8-RC3-community]# make && make install

(若为64位系统,先执行export DYNAMIPS_LIB=lib64和export DYNAMIPS_ARCH=amd64在make&&make install )


5、安装GNS3

[root@CentOS1 src]# tar zxvf GNS3-0.8.3.1-src.tar.gz 

[root@CentOS1 src]# cd GNS3-0.8.3.1-src

[root@CentOS1 GNS3-0.8.3.1-src]# python setup.py install


6、启动GNS3

6.1、添加IOS镜像

CentOS6.5 安装GNS3

CentOS6.5 安装GNS3


6.2、测试dynamips

CentOS6.5 安装GNS3

CentOS6.5 安装GNS3



6.3、添加设备

CentOS6.5 安装GNS3

注释掉下面两行,重启GNS3即可

[root@CentOS1 GNS3-0.8.3.1-src]# vim /usr/lib/python2.6/site-packages/GNS3/Node/AbstractNode.py

 62         #if QtCore.QT_VERSION >= 0x040600:

 63         #    flags = flags | self.ItemSendsGeometryChanges


6.4、设置配置终端

CentOS6.5 安装GNS3

CentOS6.5 安装GNS3



相关内容

热门资讯

雷军亲自下场讲物理!小米澎程不... 7月22日,小米CEO雷军在微博抛出“灵魂三问”,9系全尺寸大空间四驱SUV你选哪个? 1. 大电池...
最新民调:特朗普的支持者对伊朗... 美伊谅解备忘录失效,停火局面被打破,双方最近大打出手。据美媒报道,美国最新民调显示,特朗普的支持者对...
专业可靠的AirTag平替销售... 智能防丢市场新选择:AirTag平替产品的核心选购逻辑与可靠源头厂商解析 在苹果AirTag带动下...
黄仁勋谈中国AI模型:非常优秀... 英伟达首席执行官黄仁勋7月21日表示,中国开源AI模型“非常优秀”,美国企业“应该使用”。他同时警告...
西门子无霜冰箱冷藏室不制冷冷冻... 1、可能是制冷剂发生了泄漏的情况;2、可能是因为风机的问题导致了不制冷情况。3、可能是外界温度的影响...
防盗门钥匙能锁门不能开门怎么回... 1、如果是喇叭锁时,导致门锁忽然打不开很可能是其锁斜舌脱勾而出现故障,这时可以将锁具螺丝下开,对锁舌...
西门子洗衣机不排水怎么回事 1、排水管不通畅或排水泵堵转。2、可能是电脑板坏了。3、排水泵与电脑板之间接触不良或排水泵损坏引起的...
西门子洗衣机不排水是什么原因 西门子洗衣机不排水可能有以下原因:1. 排水泵故障:排水泵可能损坏或堵塞,导致无法正常排水。2. 排...
siemens滚筒洗衣机具体的... 插上电源,放下排水管,打开水龙头。把要洗涤的衣物和洗衣粉及添加剂倒入洗衣机内,并将机盖关上。按下电源...
重庆一吊车起火,火焰有几米高 7月22日晚,多名网友发布视频称,重庆南北大道靠近嘉华隧道附近有一大吊车着火。网友们发布的视频显示,...