Recommended OS for Dynamips

Hi All,

 

May I know what is the recommended or most efficient OS for Dynamips, I am think of using Debian? Is there any known issues? How about Freebsd?

 

Regards,

Comments

  • Debian is good. I've used FreeBSD with Dynamips as well. Performance wise I don't think there is much of a difference between FreeBSD and any Linux distro. Support for a Linux distro might be easier to find.

    Personally, I just installed a bare bones Ubuntu system without X or any other software packages except SSHD for remote access. It works great. Another thing nice to have is screen. That way you keep a "permanent" telnet session open to all of the devices.

     

    HTH,

     

    Mike

  • Hi Mike,

     

    Any idea how can I run multiple hypervisors on Debian?

     

  • Yeah,

    dynamips -H 7200 &

    dynamips -H 7201 &

     

    Will start 2 hypervisors (one on port 7200 and one on 7201). The "&" will background the process, so you don't have to tie down a terminal. After you kick off those processes then you can load your net file with dynagen.

    The alternative is to use GNS3, but then you need X windows and other misc bloat on the OS.

     

    HTH,

     

    Mike

  • I'm using Fedora Core 10. It's working now - but I am not a fan of Fedora. I've had alot of trouble with networking, wake on lan, updates killing the box etc.  I still haven't rebuilt the kernel. I used to rebuild a kernel weekly on a FreeBSD box - seem ALOT easier than the many FAQ's I've seen for Redhat Kernel rebuilds. Hibernate seems to work now though from Gnome which is a good thing.

    2.6.27.25-170.2.72.fc10.x86_64






  • Hi Mike,

    I am still having some issue when I run dynagen. Below is the error message. I have also posted the .net file. Kindly assist to take a look.

    dynagen ine.routing.and.switching.topology.5.00-debian.net

    Reading configuration file...

    Shutdown in progress...
    Shutdown completed.
    Shutdown in progress...
    Shutdown completed.
    netio_desc_create_udp: unable to connect to 127.0.0.1:10000

    *** Error: Connecting R1 F0/0 to SW1 F1/1 resulted in
        206-unable to create UDP NIO
    Shutdown in progress...
    Shutdown completed.
    Shutdown in progress...
    Shutdown completed.
    Press ENTER to continue

    =============================================
    .net file

    A##############################################################################################
    #                                                           
    # Internetwork Expert Routing & Switching topology Version 5.0 mappings for dynamips/dynagen on Mac OS X
    #
    #
    # For more information:
    #  Dynamips: http://www.ipflow.utc.fr/index.php/Cisco_7200_Simulator
    #  Dynagen:  http://dyna-gen.sourceforge.net/
    #  GNS3: http://www.gns3.net
    #  Hacki's Forum: http://hacki.at/7200emu/index.php
    #  Internetwork Expert's Forum: http://IEOC.com
    #
    ##############################################################################################

    ##################################################
    #
    # Define global router parameters for instance 1
    #
    ##################################################

    autostart=false
    [localhost:7200]

    #workingdir = /Applications/Dynagen/sample_labs/internetworkexpert/working
    workingdir = /usr/share/doc/dynagen/sample-labs/working-lab1


    [[3725]]
     #
     # Specify 3725 IOS image on Mac OS X here:
     #image = /Applications/Dynagen/images/c3725-adventerprisek9-mz.124-15.T10.extracted.bin
     image = /usr/share/doc/dynagen/images/c3725-adventerprisek9-mz.124-15.T10.image
     #
     ram = 128
     disk0 = 0
     disk1 = 0
     # Choose an idlepc value from the below
     idlepc = 0x62b1c780
     mmap = true
     ghostios = true
     

    ###########################
    #
    # Define router instances
    #
    ###########################

     [[Router R1]]
      model = 3725
      console = 2001
      autostart = false
      #slot1 = NM-4T
      F0/0 = SW1 F1/1
      S0/0 = FRSW 1
      #cnfg = /Applications/Dynagen/sample_labs/internetworkexpert/initial.configs/R1.initial.config.txt
      cnfg = /usr/share/doc/dynagen/sample-labs/initial.configs/R1.initial.config.txt
     [[Router R2]]
      model = 3725
      console = 2002
      autostart = false
      #slot1 = NM-4T
      F0/0 = SW2 F1/2
      S0/0 = FRSW 2
      #cnfg = /Applications/Dynagen/sample_labs/internetworkexpert/initial.configs/R2.initial.config.txt
      cnfg = /usr/share/doc/dynagen/sample-labs/initial.configs/R2.initial.config.txt

     [[Router R3]]
      model = 3725
      console = 2003
      autostart = false
      slot1 = NM-4T
      S1/0 = FRSW 3
      S1/1 = FRSW 13
      S1/2 = R1 S0/1
      S1/3 = R2 S0/1
      F0/0 = SW1 F1/3
      F0/1 = SW3 F1/3
      #cnfg = /Applications/Dynagen/sample_labs/internetworkexpert/initial.configs/R3.initial.config.txt
      cnfg = /usr/share/doc/dynagen/sample-labs/initial.configs/R3.initial.config.txt

     [[Router R4]]
      model = 3725
      console = 2004
      autostart = false
      #slot1 = NM-4T
      F0/0 = SW2 F1/4
      F0/1 = SW4 F1/4
      S0/0 = FRSW 4
      S0/1 = R5 S0/1
      #cnfg = /Applications/Dynagen/sample_labs/internetworkexpert/initial.configs/R4.initial.config.txt
      cnfg = /usr/share/doc/dynagen/sample-labs/initial.configs/R4.initial.config.txt

     [[Router R5]]
      model = 3725
      console = 2005
      autostart = false
      #slot1 = NM-4T
      F0/0 = SW1 F1/5
      F0/1 = SW3 F1/5
      S0/0 = FRSW 5
      #cnfg = /Applications/Dynagen/sample_labs/internetworkexpert/initial.configs/R5.initial.config.txt
      cnfg = /usr/share/doc/dynagen/sample-labs/initial.configs/R5.initial.config.txt

     [[Router R6]]
      model = 3725
      console = 2006
      autostart = false
      #slot1 = NM-4T
      F0/0 = SW2 F1/6
      F0/1 = SW4 F1/6
      S0/0 = FRSW 6
      #cnfg = /Applications/Dynagen/sample_labs/internetworkexpert/initial.configs/R6.initial.config.txt
      cnfg = /usr/share/doc/dynagen/sample-labs/initial.configs/R1.initial.config.txt

    ##################################################
    #
    # Define global router parameters for instance 2
    #
    ##################################################

    [localhost:7201]

    #workingdir = /Applications/Dynagen/sample_labs/internetworkexpert/working
    workingdir = /usr/share/doc/dynagen/sample-labs/working-lab1

    [[3725]]
     #
     # Specify 3725 IOS image on Mac OS X here:
     #image = /Applications/Dynagen/images/c3725-adventerprisek9-mz.124-15.T10.extracted.bin
     image = /usr/share/doc/dynagen/images/c3725-adventerprisek9-mz.124-15.T10.image
     #
     ram = 128
     disk0 = 16
     disk1 = 0
     # Choose an idlepc value from the below
     idlepc = 0x62b1c780
     mmap = true
     ghostios = true

    ###########################
    #
    # Define router instances
    #
    ###########################
       
     [[Router SW1]]
      model = 3725
      console = 2007
      autostart = false
      slot1 = NM-16ESW
      F1/7 = SW2 F1/7
      F1/8 = SW2 F1/8
      F1/9 = SW2 F1/9
      F1/10 = SW3 F1/7
      F1/11 = SW3 F1/8
      F1/12 = SW3 F1/9
      F1/13 = SW4 F1/7
      F1/14 = SW4 F1/8
      F1/15 = SW4 F1/9
      #cnfg = /Applications/Dynagen/sample_labs/internetworkexpert/initial.configs/SW1.initial.config.txt
      cnfg = /usr/share/doc/dynagen/sample-labs/initial.configs/SW1.initial.config.txt

     [[Router SW2]]
      model = 3725
      console = 2008
      autostart = false
      slot1 = NM-16ESW
      F1/10 = SW3 F1/10
      F1/11 = SW3 F1/11
      F1/12 = SW3 F1/12
      F1/13 = SW4 F1/10
      F1/14 = SW4 F1/11
      F1/15 = SW4 F1/12
      #cnfg = /Applications/Dynagen/sample_labs/internetworkexpert/initial.configs/SW2.initial.config.txt
      cnfg = /usr/share/doc/dynagen/sample-labs/initial.configs/SW2.initial.config.txt

     [[Router SW3]]
      model = 3725
      console = 2009
      autostart = false
      slot1 = NM-16ESW
      F1/13 = SW4 F1/13
      F1/14 = SW4 F1/14
      F1/15 = SW4 F1/15
      #cnfg = /Applications/Dynagen/sample_labs/internetworkexpert/initial.configs/SW3.initial.config.txt
      cnfg = /usr/share/doc/dynagen/sample-labs/initial.configs/SW3.initial.config.txt

     [[Router SW4]]
      model = 3725
      console = 2010
      autostart = false
      slot1 = NM-16ESW
      #cnfg = /Applications/Dynagen/sample_labs/internetworkexpert/initial.configs/SW4.initial.config.txt
      cnfg = /usr/share/doc/dynagen/sample-labs/initial.configs/R1.initial.config.txt


     [[Router BB1]]
      model = 3725
      console = 2011
      autostart = false
      slot1 = NM-4T
      S1/0 = BB3 S1/0
      S1/1 = FRSW 21
      #cnfg = /Applications/Dynagen/sample_labs/internetworkexpert/initial.configs/BB1.initial.config.v5.txt
      cnfg = /usr/share/doc/dynagen/sample-labs/initial.configs/BB1.initial.config.v5.txt

     [[Router BB2]]
      model = 3725
      console = 2012
      autostart = false
      F0/0 = SW2 F1/0
      #cnfg = /Applications/Dynagen/sample_labs/internetworkexpert/initial.configs/BB2.initial.config.v5.txt
      cnfg = /usr/share/doc/dynagen/sample-labs/initial.configs/BB2.initial.config.v5.txt

     [[Router BB3]]
      model = 3725
      console = 2013
      autostart = false
      slot1 = NM-4T
      F0/0 = SW3 F1/0
      #cnfg = /Applications/Dynagen/sample_labs/internetworkexpert/initial.configs/BB3.initial.config.v5.txt
      cnfg = /usr/share/doc/dynagen/sample-labs/initial.configs/R1.initial.config.v5.txt

    [[Router TermServ]]
      model = 3725
      console = 2000
      autostart = false
      #
      # Specify your local host's loopback here from the network device list
      #
      # F0/0 = NIO_gen_eth:/Device/NPF_{4065B11C-2A6C-4FD2-8204-A12A9A8328A4}
      F0/0 = NIO_linux_eth:eth0
      #cnfg = /Applications/Dynagen/sample_labs/internetworkexpert/initial.configs/RSTermServ.initial.config.txt
      cnfg = /usr/share/doc/dynagen/sample-labs/initial.configs/RSTermServ.initial.config.txt

     [[FRSW FRSW]]

      # R1 to FRSW
      1:102 = 2:201
      1:103 = 3:301
      1:113 = 13:311
      1:104 = 4:401
      1:105 = 5:501

      # R2 to FRSW
      2:203 = 3:302
      2:213 = 13:312
      2:204 = 4:402
      2:205 = 5:502

      # R3 to FRSW
      3:304 = 4:403
      3:305 = 5:503
      13:314 = 4:413
      13:315 = 5:513

      # R4 to FRSW
      4:405 = 5:504

      # R6 to FRSW
      6:51 = 21:51
      6:100 = 21:100
      6:101 = 21:101
      6:201 = 21:201
      6:301 = 21:301
      6:401 = 21:401



    Windows 7: Simplify what you do everyday. Find the right PC for you.
  • One thing I would try is to comment out all of terminal server stuff. I've never used the terminal server functionality. I more of an "open each session in a terminal and watch everything as it happens" kind of guy. You can telnet to 127.0.0.1 and then ports 2001 - 2010 once everything is running. For me, the extra overhead of an additional router instance isn't worth it.

    I'm pretty sure your problem lies in the "F0/0=NIO_linux_eth:eth0" part. I don't know if you need to load a kernel module or something to make that part work.

    As far as the shutdown messages go, they are perfectly normal. I think Dynagen starts the devices upon the inital load and then shuts them down because of the autostart being false. My dynamips setup has the same messages and works fine.

     

    The Wiki at http://www.ipflow.utc.fr/index.php/Cisco_7200_Simulator is a great resource on Dynamips/Dynagen. They have links to blogs and technical docs.

     

    Mike

  • You have to love the simplicy of cvsupdate, ports, and make world in the FreeBSD world. Debian based Linux OS's are the only thing that comes remotely close in the Linux world.

    I left the server world as a career in 2003, at the time my favorite RedHat OS was the aging 6.2. I haven't touched a RedHat product since.

    FreeBSD is an awesome OS, but not for the faint of heart. If I want a box to do WWW, SMTP, and other traditional Unix services it's my top pick.

    Ubuntu is my favorite Linux OS these days. It takes all of the good stuff from the Debian bloodline and combines it with the ease of use of a RedHat distro. I love it in the workstation role.

    I hope I didn't just touch off an OS religion war. :-)

     

     

    I'm using Fedora Core 10. It's working now - but I am not a fan of Fedora. I've had alot of trouble with networking, wake on lan, updates killing the box etc.  I still haven't rebuilt the kernel. I used to rebuild a kernel weekly on a FreeBSD box - seem ALOT easier than the many FAQ's I've seen for Redhat Kernel rebuilds. Hibernate seems to work now though from Gnome which is a good thing.

    2.6.27.25-170.2.72.fc10.x86_64

     






  • Hi Mike,

    Thanks I managed to solved that part by using another udp port for my second hypervisor.

    But I am still encountering some issue. I am able to start R1 and R2 but when I try to telnet to them. There isn't any new screen coming up. Any idea?

    Regards,


    From: [email protected]
    To: [email protected]
    Date: Thu, 22 Oct 2009 08:25:32 -0700
    Subject: Re: [DYNAMIPS] RE: Recommended OS for Dynamips

    One thing I would try is to comment out all of terminal server stuff. I've never used the terminal server functionality. I more of an "open each session in a terminal and watch everything as it happens" kind of guy. You can telnet to 127.0.0.1 and then ports 2001 - 2010 once everything is running. For me, the extra overhead of an additional router instance isn't worth it.

    I'm pretty sure your problem lies in the "F0/0=NIO_linux_eth:eth0" part. I don't know if you need to load a kernel module or something to make that part work.

    As far as the shutdown messages go, they are perfectly normal. I think Dynagen starts the devices upon the inital load and then shuts them down because of the autostart being false. My dynamips setup has the same messages and works fine.

     

    The Wiki at http://www.ipflow.utc.fr/index.php/Cisco_7200_Simulator is a great resource on Dynamips/Dynagen. They have links to blogs and technical docs.

     

    Mike



    Internetwork Expert - The Industry Leader in CCIE Preparation

    http://www.internetworkexpert.com



    Subscription information may be found at:

    http://www.ieoc.com/forums/ForumSubscriptions.aspx


    Windows 7: Find the right PC for you. Learn more.
  • If you have a connection refused, then that means that the router isn't actually started. Otherwise, the normal rules of reverse telnet apply i.e. you sometimes have to give it a couple of carriage returns to get something to show up on the terminal.

    There should be a log in the directory that you ran dynagen in. You might want to check that for some ugliness.






  • Hi Mike,

    The problem is that when i telnet to TermServ it still remain in the same page? Is that correct? I have copy the startup sequence below, is there any issue with it?

    Cisco Router Simulation Platform (version 0.2.8-RC2-x86)
    Copyright (c) 2005-2007 Christophe Fillot.
    Build date: Mar 27 2008 23:29:30

    ILT: loaded table "mips64j" from cache.
    ILT: loaded table "mips64e" from cache.
    ILT: loaded table "ppc32j" from cache.
    ILT: loaded table "ppc32e" from cache.
    Hypervisor TCP control server started (port 7201).
    ology.5.00-debian.netnd.switching.topo

    Reading configuration file...

    Shutdown in progress...
    Shutdown completed.
    Shutdown in progress...
    Shutdown completed.
    CPU0: carved JIT exec zone of 64 Mb into 2048 pages of 32 Kb.
    NVRAM is empty, setting config register to 0x2142
    C3725 instance 'ghost-c3725-adventerprisek9-mz.124-15.T10.image-localhost' (id 14):
      VM Status  : 0
      RAM size   : 128 Mb
      NVRAM size : 128 Kb
      IOS image  : /usr/share/doc/dynagen/images/c3725-adventerprisek9-mz.124-15.T10.image

    Loading ELF file '/usr/share/doc/dynagen/images/c3725-adventerprisek9-mz.124-15.T10.image'...
    ELF entry point: 0x80008000

    C3725 'ghost-c3725-adventerprisek9-mz.124-15.T10.image-localhost': starting simulation (CPU0 PC=0xffffffffbfc00000), JIT enabled.

    C3725 'ghost-c3725-adventerprisek9-mz.124-15.T10.image-localhost': stopping simulation.
    Network successfully loaded

    Dynagen management console for Dynamips
    Copyright (c) 2005-2007 Greg Anuzelli


    => start TermServ
    CPU0: carved JIT exec zone of 64 Mb into 2048 pages of 32 Kb.
    C3725 instance 'TermServ' (id 13):
      VM Status  : 0
      RAM size   : 128 Mb
      NVRAM size : 128 Kb
      IOS image  : /usr/share/doc/dynagen/images/c3725-adventerprisek9-mz.124-15.T10.image

    Loading ELF file '/usr/share/doc/dynagen/images/c3725-adventerprisek9-mz.124-15.T10.image'...
    ELF loading skipped, using a ghost RAM file.
    ELF entry point: 0x80008000

    C3725 'TermServ': starting simulation (CPU0 PC=0xffffffffbfc00000), JIT enabled.
    100-VM 'TermServ' started
    => telnet TermServ
    =>

    From: [email protected]
    To: [email protected]
    Date: Thu, 22 Oct 2009 13:18:20 -0700
    Subject: Re: [DYNAMIPS] RE: RE: Recommended OS for Dynamips

    If you have a connection refused, then that means that the router isn't actually started. Otherwise, the normal rules of reverse telnet apply i.e. you sometimes have to give it a couple of carriage returns to get something to show up on the terminal.

    There should be a log in the directory that you ran dynagen in. You might want to check that for some ugliness.



    Internetwork Expert - The Industry Leader in CCIE Preparation

    http://www.internetworkexpert.com



    Subscription information may be found at:

    http://www.ieoc.com/forums/ForumSubscriptions.aspx


    New Windows 7: Simplify what you do everyday. Find the right PC for you.





  • Anybody have any ideas?




    Windows 7: Simplify what you do everyday. Find the right PC for you.
  • Hello Folks,

    I've a IBM x366 Server with Four Intel Xeon 64 bit Processor MP, 12 GB RAM and need your expert opinion for the OS. I am confortable working in Windows and to an certain extent in Linux(Ubuntu/Red Hat/CentOS) and FreeBSD OS. My ultimate goal is to use this server hardware to run the CCIE Security lab. After reading several threads from various forums, few of them have reported 64 bit Ubuntu is not as great as 32 bit Ubuntu (in terms of reliability or functionality). Please post your comments and experiences on using Windows 2003 Server, Ubuntu, FreeBSD and RedHat Enterprise Server OS. Thanks and will appreciate your comments.  

  • This probably isn't the answer you want, but I would go with whatever you are most comfortable with. You have plenty of punch from that hardware list to make it run good on any platform.

    Generally speaking I think Linux or FreeBSD are more stable(I try to avoid Windows as much as possible).

    As far as the 32 bit vs. 64 bit argument goes....

    I don't really see any reason to go 32 bit. I've used both 32 and 64 bit binaries of Dynamips and Dynagen on a quad core box and both are stable with Ubuntu and FreeBSD. The main downfall of 32 bit is the memory limitations.

  • Thanks MJK2374 for sharing your opinion. Is there a particular Linux distro if you heard or experienced which has less problems in setting and running the dynamips, dynagen, gns3.

  • Any linux distro should be good enough, depends what other services are activated and GUI.

    You can disable most, also instead of running KDE/Gnome switch to XFCE4 or FVWM windows manager.

     

    I'm running Ubuntu 9.10 on a T61p (Intel Core Duo @ 2.2GHz with 2GB Ram) and is running sweet no problems at all and very easy to install and get up and running esp if you just want to get on with IE studys.

     

    Although I've been customising mine and will be looking to make complete switch again to Linux! Run's so much better

Sign In or Register to comment.