Image
image
image
image


Dynamips & Dynagen - how to run Cisco Routers on your PC


By David Bombal
CCIE #11023, CCSI, CCDP, CCIP, CCNP, CCSP, CCVP

In this issue:
ConfigureTerminal.com Networking Tips
Resources for the networking professional
This product is changing the Cisco world - Some people are becoming CCIEs with this software!
By David Bombal

This is a life changing product. And I am not exaggerating. It looks like it will forever change the Cisco landscape. The products that enable you to do this are Dynamips and Dynagen. You are now able to run the Cisco IOS on your PC easily!

Richard has spent a lot of time explaining the powerful Dynamips/Dynagen software - please see below for Video Demonstrations and explanations.

I have been using Dynamips/Dynagen for quite a while now and I can only say that it is pretty amazing. Find out more below.

Some people are evening becoming CCIEs with no routers - just using this software! 

Did you miss last month's newsletter?

If you missed last month's newsletter click here: Last month

If covered the following topics:

  • User Exec Mode - Full ‘show ?’ commands list
  • DSPs - how they work, how to size them, how to configure them - Transcoding video demonstration
  • EIGRP authentication - now in the CCNA course - video demonstration
  • Resetting Passwords without a visit - access a router without a password

To your success
David Bombal

 
How to run routers on your PC using Dynamips/Dynagen
By Richard Bannister

If you have reached this article thinking “What is Dynagen?” you may well find your life a lot easier after reading this. (Or just look at the videos below for step by step instructions)

To start with I will quickly give you an overview of Dynamips; Dynamips is a Cisco router emulator, not a simulator, and what that means is that you can run a real IOS image and emulate Cisco router hardware within PC software!


Initially Dynamips emulated just the 7200 series but support has now been extended to the 2600, 3600, & 3800 series routers plus a large number of modules/port adapters.  Ethernet and frame-relay switches can also be virtualized (not emulated).


Dynamips brings with it the possibility of training, testing, and POC without requiring actual Cisco hardware!
J!

Dynamips as you would imagine is quite a complex application in itself and that’s where Dynagen comes into the equation.  Dynagen is a front-end to Dynamips, the main benefit being that it provides a management CLI.

This article will attempt to cover the basics of Dynagen and also give you a few other useful pointers.  I have made an assumption that you will be running Windows (2000/XP).

Installation:
The software download can be found @ http://dynagen.org, accepting all of the defaults when installing is advised. 
Here is a link to a video showing you how to install Dynagen.
*Dynamips requires WinPcap to function


Where to start:
Once you have installed Dynagen three icons should have been placed on your desktop:

         ‘Dynamips Server’
         !=== Used to start the server
        
‘Dynagen Sample Labs’
         !=== Contains example configurations
        
Network Device List’
         !=== Used to identify computer interfaces to imitate router interfaces

We will start by using a sample lab to review a basic configuration file and actual startup process.  Double click the newly created ‘Dynagen Sample Labs’ shortcut and then browse into the ‘simple1’ folder, you should find a file named simple1.net.  After install the ‘.net’ extension is registered to the Dynagen application, ‘.net’ files are clear text configuration files that can be edited using a text editor such as notepad or wordpad.  Open the file using notepad:

        Dynamips Dynagen

Let’s run through the file:

        [localhost]
        !=== Tells Dynagen the server is running locally (‘Dynamips Server’ icon)

        [[7200]]
        !=== High level configuration options for all 7200 series routers used
        !=== This could also be 2600, 3600, or 3800
        image =
        !=== This is the IOS image location for all same model routers
        !=== This line will more than likely need to be amended to reflect an image you have
        npe =
        !=== ‘Network Processing Engine’ to emulate
        ram =
        !=== RAM to assign to same model routers (can be overridden at lower level)

        [[ROUTER R1]]
        !=== New router created with a name of ‘R1’
        s1/0 = R2 s1/0
        !=== Here a physical interface is mapped to a physical interface of another router
        !=== ‘s1/0’ is the local ‘interface Serial1/0’ and ‘R2 s1/0’ is R2’s ‘interface Serial1/0’
        !=== This line means a virtual back-to-back serial cable will be connected for you

        [[ROUTER R2]]
        !=== New router created with a name of ‘R2’
        !=== Mirror statements for connections are not required
        !=== Router must be created even if no connections statements are specified


Once a configuration file has been created/customized two steps should then be completed; one before launching the lab, and one during.

Before – IOS Image
IOS images in standard form are actually compressed files (you may recall an ‘uncompressing’ message if you have ever watched a bootup), leaving the real IOS image within a compressed file creates a lot of overhead for your PC when it boots up a router in software which increases the router bootup time.  To reduce this time you should open the compressed IOS .bin file with archiving software (e.g. WinRAR) and extract the contents.  It is also good practice to rename the uncompressed file to a less generic name.  Please find a video here, the video shows how an IOS image can be extracted to the Dynagen image directory and then how to update the image location in a .net file – in this case simple1.net.

During – IdlePC
When an IOS image is launched using Dynamips your PC will not be able to differentiate between the router’s ‘real work’ and idle routines and so the router instance will use as much resource as possible, this becomes obvious when your CPU hits 100%.  ‘IdlePC’ is a value set locally that tells your computer when the router is idle or not and therefore when software needs to compute routines.  It is set on a per-IOS image level, not router or host machine level which means values that are known to be good are valid on all dynamips servers.

How to use the Dynagen Management Console
The management console is relatively straight forward to use.  A ‘?’ displays all available commands:
        Dynamips Dynagen

A video will follow which will make use of the majority of commands you need to concern yourself with (initially at least).  Here is a list of the main five:

        list
        !=== List all routers and status
        start
        !=== Used to start a router bootup (/all switch = all routers)
        stop
        !=== Used to stop a router (/all switch = all routers)
        console/telnet
        !=== Used to access the router CLI
        idlepc
        !=== Used to configure IdlePC settings

Please find the video here, this video shows you how to launch the example lab and then configure the idlepc value for a given IOS image.


Custom Lab Creation
Here I will run through creating a virtual lab from scratch.  Please click the image to launch the video.

- A three router lab with PA-4T & PA-2FE-TX port adapters installed.       

 

Dynamips Dynagen

The topology above has been created entirely in software on one PC!  No need to invest in routers and rack space.  But most important of all - No noise!

What’s next:
In future articles I will cover the following:
        How to capture traffic
        Creating a virtual Ethernet switch (access and trunk ports)
        Creating a virtual frame-relay switch
        The ‘LAN’ option
        Adding a host – Use of Microsoft Loopback Adapter
        Adding a real connection - An interface into the ‘real world’

Other Information/Files:
Please don’t get any ideas about replacing real (production) Cisco hardware with Dynamips, a Cisco router emulated by a PC simply can’t get anywhere near the performance of the real thing.  I also can’t imagine it’s a lawful thing to do.

A router reload should always be performed from within the Dynagen Management Console using the ‘reload’ command and not from the Cisco IOS CLI.

All configuration options can be found @
‘C:\Program Files\Dynamips\sample_labs\all_config_options.txt’

A tutorial file can be found @
‘C:\Program Files\Dynamips\docs\tutorial.htm’

A guide to the minimum RAM to assign to routers:
IOS 12.1 = 48MB
IOS 12.2 = 64MB
IOS 12.3 = 96MB
IOS 12.4 = 128MB

Good IdlePC values to use (can be added to %USERPROFILE%\dynagenidledb.ini – the Dynagen database):
c2691-js-mz.123-21.bin = 0x604bbfa8
c7200-js-mz.123-21.bin = 0x60756088
c3620-is-mz.123-21.bin = 0x603f0940
c7200-js-mz.121-27b.bin = 0x60529f78

Supported Modules:

Routers

Cards

Card Description

NPE

7206

C7200-IO-FE

FastEthernet (slot0 only)

100

 

C7200-IO-2FE

FastEthernet x 2 (slot0 only)

150

 

C7200-IO-GE

GigabitEthernet (slot0 only)

175

 

PA-FE-TX

FastEthernet

200

 

PA-2FE-TX

FastEthernet x 2

225

 

PA-4E

Ethernet x 4

300

 

PA-8E

Ethernet x 8

400

 

PA-4T

Serial x 4

g1

 

PA-8T

Serial x 8

g2

 

PA-A1

ATM

 

 

PA-POS-OC3

POS

 

 

PA-GE

GigabitEthernet

 

 

 

 

 

3660

NM-1E

Ethernet

 

3640

NM-4E

Ethernet x 4

 

3620

NM-1FE-TX

FastEthernet

 

 

NM-16ESW

Ethernet Switch 16 Port

 

 

NM-4T

Serial x 4

 

 

Leopard-2FE

3660 FastEthernet (slot0 only)

 

 

 

 

 

2691

NM-1FE-TX

FastEthernet

 

3725

NM-16ESW

Ethernet Switch 16 Port

 

3745

NM-4T

Serial x 4

 

 

GT96100-FE

2 integrated ports

 

 

 

 

 

2610

NM-1E

Ethernet

 

2611

NM-4E

Ethernet x 4

 

2620

NM-1FE-TX

FastEthernet

 

2621

NM-16ESW

Ethernet Switch 16 Port

 

2610XM

 

 

 

2620XM

 

 

 

2621XM

 

 

 

2650XM

 

 

 

2651XM

 

 

 



URL’s:
Dynamips (the emulator)
http://www.ipflow.utc.fr/index.php/Cisco_7200_Simulator

Dynamips Blog
http://www.ipflow.utc.fr/blog/

Dynagui (A GUI Frontend)
http://dynagui.sourceforge.net/

Hacki’s Dynamips/Dynagen/Dynagui Forum:
http://hacki.at/7200emu/index.php


WinPcap
http://www.winpcap.org/install/default.htm



See below for Video Demonstrations
 
How to install and use Dynamips/Dynagen - 3 Video Demonstrations
By Richard Bannister

Here, I demonstrate in three videos how to:
  • Download and install Dynamips/Dynagen
  • How to optimize the IOS
  • How to optimize the your PC's CPU - stop it running at 100% utilization

 

 

Visual Video Demonstration of Dynamips/Dynagen - PART 1

How to install on your PC

Dynamips Dynagen how to install on your PC 

 

 



 

Visual Video Demonstration of Dynamips/Dynagen - PART 2

Extracting an IOS and using it

Dynamips Dynagen extracting an ios and using it 

 

 


 

Visual Video Demonstration of Dynamips/Dynagen - PART 3

Making sure the PC does not run at 100% CPU

Dynamips - making sure the PC does not run at 100% CPU 

 

 


Please see the next article on how to create your own lab and use it!

 

 
How to build your own lab using Dynagen - Video Demonstration
By Richard Bannister

Here I demonstrate how to build your own lab and how to test it

 

Visual Video Demonstration of Dynamips/Dynagen - PART 4

How to build your own load

Dynamips Dynagen - how to build your own lab 

 

 

 

 
WARNING - Estimated exhaustion of IPv4 addresses by 2009!!
By David Bombal 

IPv6 has been talked about for quite a while now, but many engineers and planners do not see any urgency in understanding or developing IPv6 in their networks.

However, something worrying is about to happen. Read these articles by Jeff Doyle CCIE #1919 where he warns of the impending issues.

Jeff is the author of Routing TCP/IP, Volumes I and II and of OSPF and IS-IS: Choosing an IGP for Large-Scale Networks. He is a frequent speaker on IPv6, MPLS, and large-scale routing

First Article and comments (predict exhaustion 2010)

Second Article and comments (predict exhaustion 2009)

 
IPv6 - you better make sure you are up to speed - Video Demonstration of IPv6 and RIPng
By David Bombal 

In this video demonstration, I show you how to configure a network with IPv6 and then enable RIGng for routing between the networks.

This is the first article in a series covering IPv6. We start with the basics and continue into more complicated topics.

 

Visual Video Demonstration of IPv6 and RIPng

IPv6 - ip addressing and RIPng 

 

 

 
Tell us what you think!

We'd love to hear what you think of this issue!

Please send your comments, questions, and ideas for upcoming issues to us at:

         NewsletterSuggestions@ConfigureTerminal.com

Your feedback matters to us!

 
To contact us...

If you have any questions, email info@ConfigureTerminal.com
 
If you have received this mailing in error, or if you no longer wish to receive email from Network Experts Limited, please send a e-mail with the word "unsubscribe" in the title to unsubscribe@ConfigureTerminal.com You will be automatically excluded from any future mailings including our "ConfigureTerminal.com Networking Tips" Newsletter that shares tons of free Networking tips, tricks, and techniques.

Please remember to include the email address we have contacted you at, so that we can complete your request without delay .

Network Experts Limited
2 Minton Place
Victoria Road
Bicester
OX26 6QB

Copyright 2003-2007 by Network Experts Limited.

All information contained in this newsletter is subject to the terms and conditions posted on our website here

All rights reserved.

www.ConfigureTerminal.com




image


image
image