• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.
Xin chào ! Nếu đây là lần đầu tiên bạn đến với diễn đàn, xin vui lòng danh ra một phút bấm vào đây để đăng kí và tham gia thảo luận cùng VnPro.

Announcement

Collapse
No announcement yet.

Khắc phục lỗi với GNS3

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Khắc phục lỗi với GNS3

    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
    ----------------
    Good luck for you.

  • #2
    OKies

    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
    ----------------
    Good luck for you.

    Comment


    • #3
      Originally posted by mon_hy View Post
      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
      Attached Files

      Comment


      • #4
        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'

        Comment


        • #5
          Originally posted by boylies1986 View Post
          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 !!!
          Trần Mỹ Phúc
          tranmyphuc@hotmail.com
          Hãy add nick để có thông tin đề thi mới nhất :tranmyphuc (Hỗ trợ tối đa cho các bạn tự học)

          Cisco Certs : CCNP (Passed TSHOOT 1000/1000)

          Juniper Certs :
          JNCIP-ENT & JNCIP-SEC
          INSTRUCTORS (No Fee) : CISCO (Professional) , JUNIPER (Professional) , Microsoft ...

          [version 4.0] Ôn tập CCNA


          Comment


          • #6
            Originally posted by tranmyphuc1988 View Post
            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

            Comment


            • #7
              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, 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:
              Code:
              dynamips -H 7200 &
              Once you have your IOS and lab ready run (if not follow this tutorial)
              Code:
              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):


              ----------------------------------------------------------------------------------
              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.
              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)
              Code:
              sudo apt-get install alien
              By default Firefox put the files you download on your Desktop, so run the following commends:
              Code:
              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.rpm
              3. 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:
              Code:
              dynamips -H 7200 &
              dynamips would return error (no error? go to step 6):
              Code:
              $ 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:
              Code:
               ls /usr/lib | grep libpcap.so.*
              it returns (in my case):
              Code:
              $ libpcap.so.0.8
              $ libpcap.so.0.9.7
              link 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!)
              Code:
                   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:
              Code:
              dynamips -H 7200 &
              it returns:
              Code:
              $ 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:
              Code:
              ps | grep dynamips
              would return something like this:
              Code:
              10110 pts/1    00:00:00 dynamips
              so to kill the dynamips process in this example enter:
              :!: (Your process number might be different!)
              Code:
              kill 10110
              On the commend prompt press 'enter' again and you get:
              Code:
              $ 
              [1]+  Terminated              dynamips -H 7200
              7. 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):
              Code:
              dynagen simple.net
              ----------------------------------------------------------------------------------
              Here is my simple.net lab example:
              Code:
              # 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 (one of the source .tar archive)
              2. Unpack downloaded file (right-click and 'unpack here' option)
              2. Install dependencies:
              Code:
              sudo apt-get install python-qt4
              3. To test the application, change directory to where the app resides on (I've got it on my desktop), so:
              Code:
              cd ~/Desktop/GNS3-0.3.2/
              and then run it with:
              Code:
              ./gns3
              It 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...
              Code:
              ***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)

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

              Dia seem to be good tool to draw network diagrams, to install, run from terminal:
              Code:
              sudo apt-get install dia-gnome
              After 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):
              Code:
              sudo apt-get install nautilus-open-terminal
              it requires to restart display manager, so...
              Code:
              sudo /etc/init.d/gdm restart
              ...will do the trick.

              Network traffic analyzer - Wireshark, to install:
              Code:
              sudo apt-get install wireshark
              ----------------------------------------------------------------------------------


              Good luck! Enjoy

              Chúc bạn vui !!!
              Trần Mỹ Phúc
              tranmyphuc@hotmail.com
              Hãy add nick để có thông tin đề thi mới nhất :tranmyphuc (Hỗ trợ tối đa cho các bạn tự học)

              Cisco Certs : CCNP (Passed TSHOOT 1000/1000)

              Juniper Certs :
              JNCIP-ENT & JNCIP-SEC
              INSTRUCTORS (No Fee) : CISCO (Professional) , JUNIPER (Professional) , Microsoft ...

              [version 4.0] Ôn tập CCNA


              Comment


              • #8
                Originally posted by boylies1986 View Post
                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.
                no car...no house...no money, but have only a sharing and friendly heart. What's the most important thing in this life "Heart or Money ?". Anything else can stead money ?

                :32::53::X:106:

                Nothing last forever...

                Comment


                • #9
                  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
                  Attached Files

                  Comment


                  • #10
                    trả lời e đi mấy a ơi

                    Comment


                    • #11
                      help me!

                      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.
                      Last edited by nguyenort; 18-05-2010, 08:27 AM.

                      Comment


                      • #12
                        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
                        Từ nay quyết chí đi tu, ráng luyện công mong ngày thành chính quả. Nam mô a di đà phật. Thiện tai. Thiện tai.

                        Comment


                        • #13
                          Co bac nao dung gns3 bi loi nay chua ?biet chi dum e voi
                          [ATTACH=CONFIG]3170[/ATTACH]
                          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

                          Comment


                          • #14
                            errorClick image for larger version

Name:	Untitled.jpg
Views:	1
Size:	14.9 KB
ID:	205524
                            cac bac chi dum e voi

                            Comment


                            • #15
                              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

                              Comment

                              Working...
                              X