CentOS6.5 installation GNS3

Source: Internet
Author: User

1. Experimental environment

[Email protected] ~]# head-1/etc/issue

CentOS Release 6.5 (Final)

[Email protected] ~]# uname-r

2.6.32-431.el6.i686


2. Preparatory work

2.1. Install the graphical interface

Yum-y Groupinstall "Desktop"

Yum-y groupinstall "X window System"

Yum-y Groupinstall "Chinese support"

StartX

2.2. Installing VNC

Yum-y Install tigervnc*

Vncserver:1


3. Install dependent packages

Yum-y install PyQt4 sip python qt qt-x11


4, installation Dynamips

[[email protected] src]# ls

C3640-jk9o3s-mz.124-7a.bin dynamips-0.2.8-rc3-community.tar.gz gns3-0.8.3.1-src.tar.gz

[Email protected] src]# tar zxvf dynamips-0.2.8-rc3-community.tar.gz

[Email protected] src]# CD dynamips-0.2.8-rc3-community

[[email protected] 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

[[email protected] dynamips-0.2.8-rc3-community]# yum-y install GCC

[[email protected] 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 of this function)

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

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

.. /common/rom2c.c:25:error: ' Ehdr ' undeclared (first use of this function)

.. /common/rom2c.c:26:error: ' Elf32_phdr ' undeclared (first use of this function)

.. /common/rom2c.c:26:error: ' PhDr ' undeclared (first use of this function)

.. /common/rom2c.c:27:error: ' Elf ' undeclared (first use of this function)

.. /common/rom2c.c:27:error: ' Img_elf ' undeclared (first use of this function)

.. /common/rom2c.c:42:warning:implicit declaration of function ' Elf_version '

.. /common/rom2c.c:42:error: ' Ev_current ' undeclared (first use of this function)

.. /common/rom2c.c:42:error: ' Ev_none ' undeclared (first use of this function)

.. /common/rom2c.c:47:warning:implicit declaration of function ' Elf_begin '

.. /common/rom2c.c:47:error: ' Elf_c_read ' undeclared (first use of 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 have 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 have 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

[Email protected] dynamips-0.2.8-rc3-community]# yum-y install elfutils*

[[email protected] 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

[Email protected] dynamips-0.2.8-rc3-community]# yum-y install libuuid*

[[email protected] 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

[Email protected] dynamips-0.2.8-rc3-community]# yum-y install libpcap*

[[email protected] dynamips-0.2.8-rc3-community]# make && make install

(for 64-bit systems, first execute export dynamips_lib=lib64 and export dynamips_arch=amd64 at Make&&make install)


5, Installation GNS3

[Email protected] src]# tar zxvf gns3-0.8.3.1-src.tar.gz

[Email protected] src]# CD GNS3-0.8.3.1-SRC

[[email protected] gns3-0.8.3.1-src]# python setup.py install


6. Start GNS3

6.1. Add iOS image

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/73/0C/wKiom1XylEHBKKAtAAQBQnlrp8s820.jpg "style=" float: none; "Title=" 1, add Ios.png "alt=" Wkiom1xylehbkkataaqbqnlrp8s820.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/73/09/wKioL1XylnGTB2qCAASFKKb60c4907.jpg "style=" float: none; "Title=" 2, add Ios_2.png "alt=" Wkiol1xylngtb2qcaasfkkb60c4907.jpg "/>


6.2. Test Dynamips

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/73/09/wKioL1XylpLQK_4rAAP7_c7yvU0348.jpg "style=" float: none; "Title=" 3, Test Dynamic.png "alt=" Wkiol1xylplqk_4raap7_c7yvu0348.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/73/0C/wKiom1XylGTwHNHyAAR8CHdrcKw752.jpg "style=" float: none; "Title=" 4, Test Dynamic_2.png "alt=" Wkiom1xylgtwhnhyaar8chdrckw752.jpg "/>



6.3. Adding equipment

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/73/09/wKioL1XylrKi74aOAARl_ANQ01Y591.jpg "title=" 5, Error adding device. png "alt=" wkiol1xylrki74aoaarl_anq01y591.jpg "/>

Comment out the following two lines, restart GNS3

[Email protected] gns3-0.8.3.1-src]# vim/usr/lib/python2.6/site-packages/gns3/node/abstractnode.py

#if qtcore.qt_version >= 0x040600:

# flags = Flags | Self. Itemsendsgeometrychanges


6.4. Setting up the configuration terminal

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/73/0C/wKiom1XyliSg6Rd8AAQUAEt_E-8880.jpg "style=" float: none; "Title=" 7, Set configuration terminal. png "alt=" wkiom1xylisg6rd8aaquaet_e-8880.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/73/09/wKioL1XymFTjjsv7AATekwctV4Y648.jpg "style=" float: none; "Title=" 8, set configuration Terminal _2.png "alt=" Wkiol1xymftjjsv7aatekwctv4y648.jpg "/>



This article is from the "Open Source Hall" blog, please be sure to keep this source http://kaiyuandiantang.blog.51cto.com/10699754/1693892

CentOS6.5 installation GNS3

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.