PDA

View Full Version : Khắc phục lỗi với GNS3



mon_hy
31-10-2007, 09:50 AM
Tôi cài GNS3, Dynamips, winpopCap đầy đủ, Chạy riêng Dynamips thì OK, nhưng khi khởi động GNS3 thì đều báo Can't start Dynamips đã vào cấu hình để chỉnh lại đường dẫn của Dynamips trong GNS3 nhưng vẫn lỗi, Ai rành chỉ giúp với

mon_hy
02-11-2007, 12:53 PM
Nếu Pác nào gặp lỗi như tôi có thể sửa như sau:
Chỉ cần cài GNS3 với đủ 3 lựa chọn sau (WinpopCap, Dynamips, GNS3) khi cài xong vào mục EDIT-Preferences Chọn mục Dynamips sau đó thay đường dẫn trong mục Working Directory %USERPROFILE%\Local Settings\Temp bằng đường dẫn khác.
CHÚC VUI

daongocthang
03-11-2007, 02:03 PM
Tôi cài GNS3, Dynamips, winpopCap đầy đủ, Chạy riêng Dynamips thì OK, nhưng khi khởi động GNS3 thì đều báo Can't start Dynamips đã vào cấu hình để chỉnh lại đường dẫn của Dynamips trong GNS3 nhưng vẫn lỗi, Ai rành chỉ giúp với

có cái hướng dẫn (bằng tiếng anh) bác xem có giúp j dc ko

boylies1986
20-04-2008, 01:57 AM
minh dung GNS3 0.4.1
minh da cau hinh path cho dynamip nhung khi keo tha~ thi luon bi bao loi~ :
203-Bad number of Parameters (5 with min/max = 2/2)
???
khong hieu tai sao lai bi nhu vay ?!
bac nao bit xin chi~ du`m em gap
da ta. cac bac'

tranmyphuc
20-04-2008, 05:26 AM
minh dung GNS3 0.4.1
minh da cau hinh path cho dynamip nhung khi keo tha~ thi luon bi bao loi~ :
203-Bad number of Parameters (5 with min/max = 2/2)
???
khong hieu tai sao lai bi nhu vay ?!
bac nao bit xin chi~ du`m em gap
da ta. cac bac'

Chào !!!
Vào proccess kiểm tra thử xem có dynamips.exe đang chạy không nếu có end proccess.

Chúc bạn vui !!!

boylies1986
20-04-2008, 08:43 AM
Chào !!!
Vào proccess kiểm tra thử xem có dynamips.exe đang chạy không nếu có end proccess.

Chúc bạn vui !!!

:106: Minh da thu~ cach ban chi~
Nhung khi tat dynamips.exe thi no lai bao loi Connection lost

tranmyphuc
20-04-2008, 11:30 AM
SECTIONS:
I. Easy way to install Dynamips/Dynagen (older version)
II. A bit harder way to install Dynamips/Dynagen (latest version)
III. GNS-3 - graphical front-end
IV. Dia - diagram editor
V. Extras:
- 'nautilus-open-terminal' plugin
- Wireshark ----------------------------------------------------------------------------------
I. Easy way to install Dynamips/Dynagen (older version)

The easiest way to install any program on Ubuntu linux is via Synaptic (https://help.ubuntu.com/community/SynapticHowto), although in most cases slightly older versions of programs are available . Just go to (on your Gnome desktop):

1. System > Administration > Synaptic (package manager)
2. Search for Dynagen / Dynamips
3. Tick the boxes next to the chosen programs, apply changes, and wait until it finish installation.
4. That's it!

Now you can run it from terminal:

dynamips -H 7200 &Once you have your IOS and lab ready run (if not follow this tutorial (http://dynagen.org/tutorial.htm))

dynagen simple1.net(default simple1.net lab and other can be found on your system in /usr/share/doc/dynagen/ or just follow dynagen tutorial to find out how to create one)

Helpful link (Ubuntu Guide - great source on howto's for Ubuntu desktop):
http://ubuntuguide.org/wiki/Ubuntu:Gutsy

----------------------------------------------------------------------------------
II. A bit harder way to install Dynamips/Dynagen (latest version)

Alternatively, to get the latest version, rather then messing up with source .tar.gz archives (it's not recommended with linux versions based on packages, such as Ubuntu is based on .deb files - debian packages, sort of windows .exe files), follow the steps:

1. Download the latest .rpm (red hat package) for Dynamips server (dynamips-0.2.8RC1-1.i386.rpm) and Dynagen (dynagen-0.10.1-1.noarch.rpm ) from here (http://sourceforge.net/project/showfiles.php?group_id=160317).
2. Convert .rpm files to .deb with 'alien' program.
Once you haven't got 'alien' program installed by default, install it running following command from the terminal window:
(Alt+F2, and then gnome-terminal)

sudo apt-get install alienBy default Firefox put the files you download on your Desktop, so run the following commends:

cd ~/Desktop/ #changes to directory where you downloaded .rpms

sudo alien dynamips-0.2.8RC1-1.i386.rpm #converts .rpm to .deb
sudo alien dynagen-0.10.1-1.noarch.rpm3. Double click on resulting .deb files (should find them on your desktop) and once the installer pop up the window install.
4. First time you run the program:

dynamips -H 7200 &dynamips would return error (no error? go to step 6):

$ dynamips: error while loading shared libraries: libpcap.so.0.9.4: cannot open shared object file: No such file or directory:?: dynamips complains about missing lipcap library - which you actually have got installed, but in highier version!
5. To fix the problem, check the version of lipcap you have installed with:

ls /usr/lib | grep libpcap.so.*it returns (in my case):

$ libpcap.so.0.8
$ libpcap.so.0.9.7link the latest version of your lipcap (for me it is 0.9.7) to the one dynamips asks for (0.9.4):
(change the numbers in the following command if you've got different vesions!)

sudo ln -s /usr/lib/libpcap.so.0.9.7 /usr/lib/libpcap.so.0.9.4 6. Now you should successfully run dynamips with:

dynamips -H 7200 &it returns:

$ Cisco Router Simulation Platform (version 0.2.8-RC1-x86)
Copyright (c) 2005-2007 Christophe Fillot.
Build date: Sep 10 2007 21:54:52

Hypervisor TCP control server started (port 7200).To turn off dynamips server:

ps | grep dynamipswould return something like this:

10110 pts/1 00:00:00 dynamipsso to kill the dynamips process in this example enter:
:!: (Your process number might be different!)

kill 10110On the commend prompt press 'enter' again and you get:

$
[1]+ Terminated dynamips -H 72007. Once dynamips is up and running (dynamips -H 7200 &) you can run the labs with dynagen ( I assume you have working IOS and simple.net config file created in the working directory):

dynagen simple.net----------------------------------------------------------------------------------
Here is my simple.net lab example:

# 3 routers lab

[localhost]

[[7200]]
image = "ENTER PATH TO YOUR IOS IMAGE HERE"
npe = npe-400
ram = 160

[[ROUTER R1]]
s1/0 = R2 s2/0
s2/0 = R3 s1/0

[[router R2]]
s1/0 = R3 s2/0

[[router R3]]----------------------------------------------------------------------------------
III. GNS-3 - graphical front-end:

:!: (You should have the latest version of dynamips server installed, if you don't go back to section II of this howto.)

1. Get a copy of the program from here (http://www.gns3.net/download) (one of the source .tar archive)
2. Unpack downloaded file (right-click and 'unpack here' option)
2. Install dependencies:

sudo apt-get install python-qt43. To test the application, change directory to where the app resides on (I've got it on my desktop), so:

cd ~/Desktop/GNS3-0.3.2/and then run it with:

./gns3It should start up!!!

To run the emulation, configure GNS-3 first. Basically:
under Edit>Preferences
=> set the path to dynamips executable, which is: /usr/bin/dynamips
=> specify working directory for dynamips (anything you like, I created 'GNS-3' folder on my desktop, the place, where the program throws config files)
=> probably you should untick 'Enable IOS ghost feature' (once it was on I get some errors when tried to emulate two routers...

***Error: 203-Bad number of parameters (5 with min/max=3/3) ...and the emulation failed)

under Edit>IOS images and hypervisors
=> point to your IOS image file, choose platform and click save

Now, drag&drop two routers connect them with serial cable, cross you fingers and click 'Emulation Mode'.
(To find out more get a copy of the official documentation from here (http://www.gns3.net/documentation))

----------------------------------------------------------------------------------
IV. Dia - diagram editor:

Dia seem to be good tool to draw network diagrams, to install, run from terminal:

sudo apt-get install dia-gnomeAfter it finishes you'll find it under Applications>Graphics>Dia

----------------------------------------------------------------------------------
V. Extras:

Helpful little thing that you may find useful is 'nautilus-open-terminal' plugin, which let you open terminal in arbitrary local path, straight from the context menu (under right-click):

sudo apt-get install nautilus-open-terminalit requires to restart display manager, so...

sudo /etc/init.d/gdm restart...will do the trick.

Network traffic analyzer - Wireshark, to install:

sudo apt-get install wireshark----------------------------------------------------------------------------------


Good luck! Enjoy

Chúc bạn vui !!!

trainingit
20-04-2008, 11:41 AM
minh dung GNS3 0.4.1
minh da cau hinh path cho dynamip nhung khi keo tha~ thi luon bi bao loi~ :
203-Bad number of Parameters (5 with min/max = 2/2)
???
khong hieu tai sao lai bi nhu vay ?!
bac nao bit xin chi~ du`m em gap
da ta. cac bac'

bạn chụp cái cấu hình các thông số path, paremeters lên, cũng như cái lỗi khi kéo thả => sẽ dễ phát hiện lỗi hơn.

makictan
27-09-2009, 06:24 PM
cái lổi của mình không hiểu sao bị thế này khi kéo thả con r7200 ra thì nó báo lổi connection lost

makictan
27-09-2009, 09:39 PM
trả lời e đi mấy a ơi

nguyenort
18-05-2010, 09:22 AM
mình sử dụng GNS30.7 và dynagen-0.10.1_dynamips-0.8.0-RC1_Win_XP_setup
Tạo xong giao dien kết nối 2 router trên GNS3 và 2 switch -> lưu lại thành file1.net
khi mình chạy file1.net thì Dynagen thông báo lỗi

***Eror: could not connect to server: localhost:7200

mình không khắc phục được
bạn giúp mình với.

hoanbq
18-05-2010, 09:38 AM
Cả Dynagen và GNS3 đều là các chương trình giúp chúng thao tác dễ dàng hơn khi xây dựng mô hình mạng, còn thực chất chương trình để thao tác với các Cisco IOS là Dynamips. Bạn phải chạy Dynamips trước, sau đó mới chạy file .net.
Thân

thuanmv89
08-04-2011, 06:47 PM
Co bac nao dung gns3 bi loi nay chua ?biet chi dum e voi
3170
em noi 2router bang serial thi bao loi nhu the,noi lan 2 thi duoc,nhung khi save cau hinh thi ko mo lai duoc,
thank

thuanmv89
09-04-2011, 02:17 AM
error3171
cac bac chi dum e voi

tuyenvqcoltech
30-05-2011, 11:55 AM
các pác xử lý giúp e với: em dùng ubuntu 10.04 đã cài GNS , dynamips, dynagen rùi.
đã add file .bin vào image, em chạy test dynamips thì ok. Tạo 1 file mới thì cũng ok .
Nhưng cứ mở 1 file lưu sẵn thì nó báo là could not connect to server?
Thế là thế nào ạ, các pác giúp e với