In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
Download address of software needed for the experiment: http://down.51cto.com/data/2092966
1. Experimental environment
[root@CentOS1] # head-1 / etc/issue
CentOS release 6.5 (Final)
[root@CentOS1 ~] # uname-r
2.6.32-431.el6.i686
2. Preparatory work
2.1. Installation graphical interface
Yum-y groupinstall "Desktop"
Yum-y groupinstall "X Window System"
Yum-y groupinstall "Chinese Support"
Startx
2.2.install VNC
Yum-y install tigervnc*
Vncserver: 1
3. Install the dependency package
Yum-y install PyQt4 sip python qt qt-x11
4. Install 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
(for 64-bit systems, execute export DYNAMIPS_LIB=lib64 and export DYNAMIPS_ARCH=amd64 in make&&make install first)
5. Install 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. Start GNS3
6.1.Add IOS image
6.2. test dynamips
6.3. Add equipment
Comment out the following two lines and restart 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. Set and configure the terminal
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.