본문 바로가기
조회 수 5880 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

+ - Up Down Comment Print
?

단축키

Prev이전 문서

Next다음 문서

+ - Up Down Comment Print

http://networkingtips-tricks.blogspot.com/2010/09/how-to-install-gns3-on-ubuntu-1004-lts.html

PDF http://sourceforge.net/projects/gns-3/files/GNS3/0.5/GNS3-0.5-tutorial.pdf/download (Good!)

and from Hojung's lab


For 64bit

1. install python and Python-Qt4

apt-get update -y
apt-get install python qt4-dev-tools pyqt4-dev-tools -y


2. Download GNS3 and extract in /opt

cd /opt
wget http://space.dl.sourceforge.net/project/gns-3/GNS3/0.7.3/GNS3-0.7.3-src.tar.bz2

tar -xjf GNS3-0.7.3-src.tar.bz2
rm GNS3-0.7.3-src.tar.bz2
mv GNS3-0.7.3-src /opt/GNS3

3. Create the following directories in Ubuntu:

cd /opt/GNS3
mkdir Dynamips IOS Project Cache tmp
chmod o+rw -R ./Project ./tmp ./IOS

4. Download binary of dynamips and make it executable

cd Dynamips
wget http://www.ipflow.utc.fr/dynamips/dynamips-0.2.8-RC2-amd64.bin
chmod +x ./dynamips-0.2.8-RC2-amd64.bin

4.1 Qemu installation

apt-get install qemu -y

desktop shortcut with the command:


python "/opt/GNS3/gns3"

Double click to open GNS3 and we will edit the default settings.

5. Go to edit | preferences and in the ‘Terminal command:’ section type in:

gnome-terminal --geometry=85x24 -t %d -e 'telnet %h %p' > /dev/null 2>&1 &


%h : device server (ex. 127.0.0.1)

%p : device port (ex. 200X)

%d : device hostname (ex. R1)


6. Under ‘Paths’ change the ‘Project directory:’ to

/opt/GNS3/Project

and the ‘IOS/PIX directory:’ to

/opt/GNS3/IOS

7. Click on Dynamips tab on the left

For the ‘Executable path:’ type in

/opt/GNS3/Dynamips/dynamips-0.2.8-RC2-x86.bin

8. Change the ‘Working directory:’ to

/opt/GNS3/tmp

Click on the Capture tab on the left

9. For the ‘Working directory for capture files:’ change it to

/opt/GNS3/Project

10. For Qemu

Change qemu path to /usr/bin/qemu and qemu-img path to /usr/bin/qemu-img


* Note. IOS images from Cisco
http://networkingtips-tricks.blogspot.com/2010/03/cisco-ios-collection-for-gns3-and.html

Small Collection of IOS Images.
ftp://ftp.unikon-ua.net/pub/Cisco/IOS/

{Updated}Big Collection of IOS Images (Almost All Cisco IOS Images)
ftp://62.117.115.92/upload/ios/

Another Big Collection
ftp://86.110.172.101/Soft/IOS/

(NEW)Cisco IOS Images Big Collection v3. **Direct HTTP Link**
http://www.jonsfiles.com/IOS%20Images%20for%20GNS3/Cisco_IOS_Collection/IOS/
http://www.intranet.betomt.com.br/repositorio/IOS/CISCO/

ASA Binary files for GNS3
http://www.4shared.com/dir/5716575/72cbe353/IOS.html

New Big IOS Collection 10 Sept 2010
ftp://79.120.76.25/torrent/downloaded/ios/



11. Start to simulate lab


11-1. copy .iso to /opt/GNS3/IOS

11-2. Go to Edit > IOS images and hypervisors, and then set:


Image file: /opt/GNS3/IOS/xxx.bin

Base config: /opt/GNS3/baseconfig.txt

Platform: <select platform for ios>

Model: <select platform for ios>


And click on Save and Close.


Note. For baseconfig.txt refer to:

http://www.gns3.net/phpBB/post9140.html?sid=5fd7541457df5e8e6eb23852dc5de6e0#p9140

------------//---------------

!
hostname %h
no ip domain lookup
line con 0
exec-timeout 0 0
logging synchronous
! and if you never want to have to type "enable" again, add:
privilege level 15

! And I also like to add:
service timestamps debug datetime msec
alias configure show do show
alias interface show do show
line vty 0 15
no login
exec-timeout 0 0
logging synchronous
privilege level 15

------------//---------------


11-3. Build your topology by drag and drop

11-4. On router, click on right button and go to Slot. assign modules on slots

11-5. Start router

11-6. On router, click on right button and go to idle PC, and select idlepc value with '*' to subside cpu usage.


참고로 각 플랫폼의 하나의 장비를 켜고 idlepc를 셋팅하고 cpu를 낮추면, 이후에 추가되는 동일한 플랫폼은 자동으로 idlepc가 셋팅되어 cpu가 낮아진다.


11-7. Play with your routers



12. Access your router remotely


telnet <your_machine> <console_port>

ex) telnet 1.1.1.1 2005



13. Add VPCS

download vpcs from http://wiki.freecode.com.cn/doku.php?id=wiki:vpcs



14. extract and copy the files to /opt/GNS3/Dynamips/


cd 0.21a

cp ./* /opt/GNS3/Dynamips/

15. Add computer as cloud


Go to Edit > Symbol Manager from GNS3


Select computer and press >
Enter name 'Host' and select type 'cloud'
click on Apply and OK

16. stop router and add ethernet port (ex. NM-1E) on slot if it doesn't have any ethernet port

17. make vpcs64 excutable


cd /opt/GNS3/Dynamips

chmod +x vpcs64
./vpcs64


18. assign ip address in VPCS1


VPCS[9]> show

NAME   IP/CIDR              GATEWAY           MAC                LPORT  RPORT
VPCS1  0.0.0.0/0            0.0.0.0           00:50:79:66:68:00  20000  30000
       fe80::250:79ff:fe66:6800/64
VPCS2  0.0.0.0/0            0.0.0.0           00:50:79:66:68:01  20001  30001
       fe80::250:79ff:fe66:6801/64
VPCS3  192.168.2.1/24       0.0.0.0           00:50:79:66:68:02  20002  30002
       fe80::250:79ff:fe66:6802/64
       2001:2::1/64
...


VPCS[9]> 1
VPCS[1]> ip 20.0.0.1 20.0.0.254 255.255.255.0 <----- assign ip for PC1
PC1 : 20.0.0.1 255.255.255.0 gateway 20.0.0.254

VPCS[1]> show

NAME   IP/CIDR              GATEWAY           MAC                LPORT  RPORT
VPCS1  20.0.0.1/24          20.0.0.254        00:50:79:66:68:00  20000  30000
       fe80::250:79ff:fe66:6800/64
VPCS2  0.0.0.0/0            0.0.0.0           00:50:79:66:68:01  20001  30001
       fe80::250:79ff:fe66:6801/64


19. Click on right button on host and select configure


from NIO UDP,:

Local port : 30000
Remote host : 127.0.0.1
Remote port : 20000

Click on Add and OK


20. Connect router to host thru ethernet cable

21. start router and configure ethernet port


conf t

int e1/0

ip addr 20.0.0.2 255.255.255.0

no shut


22. ping the host you added


ping 20.0.0.1



23. Switch emul


If you like to simul for switch, add NM-16ESW to router.


23-1. go to configure -> slot in router, and add NM-16ESW

23-2. Go to Edit -> Preferences , under General go to GUI Settings tab and select "Always use manual mode when adding links".



Title
List of Articles
번호 제목 글쓴이 날짜 조회 수
» How To Install GNS3 on Ubuntu 10.04 LTS Hojung 2011.04.25 5880
50 Cisco SPAN Hojung 2013.04.17 2031
49 f/r setting on main interface Hojung 2011.05.03 2141
48 Reset configuration in router/switch Hojung 2011.05.03 2434
47 Basic Configuration (password, domain-lookup, hostname, timeout) Hojung 2011.05.03 2921
46 [Crazy4CCIE-R&S편]VII.Security Hojung 2011.04.27 4883
45 [Crazy4CCIE-R&S편]VI. IP QoS (완료) Hojung 2011.04.27 8729
44 [Crazy4CCIE-R&S편]V.IP Multicast (완료) Hojung 2011.04.27 8347
43 [Crazy4CCIE R&S편]번외편 - 다이나밉스 운영 환경 최적화 Hojung 2011.04.27 4899
42 [Crazy4CCIE-R&S편]IV.IP and IOS Feature (완료) Hojung 2011.04.27 6098
41 [Crazy4CCIE-R&S편]II.IGP(9-IPv6-(3)-OSPFv3) Hojung 2011.04.27 4625
40 [Crazy4CCIE-R&S편]II.IGP(9-IPv6-(2)-RIPng) Hojung 2011.04.27 3318
39 [Crazy4CCIE-R&S편]II.IGP(9-IPv6-(1)-Concept) Hojung 2011.04.27 3142
38 [Crazy4CCIE-R&S편]II.IGP(8-Redistribute(재분배)-(3)-Red&Filter) Hojung 2011.04.27 2719
37 [Crazy4CCIE-R&S편]II.IGP(8-Redistribute(재분배)-(2)-Red&Metric) Hojung 2011.04.27 4823
36 [Crazy4CCIE-R&S편]II.IGP(8-Redistribute(재분배)-(1)-Concept) Hojung 2011.04.27 6758
35 [Crazy4CCIE-R&S편]II.IGP(7-Distribute-(3)-distribute-list-설정) Hojung 2011.04.27 3562
34 [Crazy4CCIE-R&S편]II.IGP(7-Distribute-(2)-labconfig) Hojung 2011.04.27 2422
33 [Crazy4CCIE-R&S편]II.IGP(7-Distribute-(1)-concept Hojung 2011.04.27 2299
32 [Crazy4CCIE-R&S편]II.IGP(6-Filtering-(1~5)access-list&prefix-list Hojung 2011.04.27 3786
31 [Crazy4CCIE-R&S편]II.IGP(5-EIGRP-(5)-Authentication) Hojung 2011.04.27 2687
Board Pagination ‹ Prev 1 2 3 Next ›
/ 3

Designed by sketchbooks.co.kr / sketchbook5 board skin

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 취소

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5