Logo

Home

How to install Dynamips


Requirements | How To Install | Using Dynamips | Troubleshooting


Requirements:

1. Cisco IOS (e.g. c7200-ik9s-mz.122-15.T17.bin)

You must have a working IOS, it must have the binary extension .bin
If it has any other extension .img, .iso it will have to be extracted with the programme that created it.

You will need to beg steal or borrow the IOS – WITHOUT IT YOUR STUFFED!

2. WinPcap 3.1 http://www.winpcap.org/


3. Dynagen - Dynamips http://sourceforge.net/project/showfiles.php?group_id=160317

That is all you need.

Installation:

 

1. Install WinPcap 3.1

2. Install Dynagen – Dynamips -- Dynamips will install to C:\Program Files\Dynamips

3. When installed copy your IOS file to the C:\Program Files\Dynamips\images folder

4. Open the C:\Program Files\Dynamips folder

5. Create a shortcut on your desktop for the Dynagen

and Dynamips exe files

6.Inside the C:\Program Files\Dynamips is a sample labs folder

When you open this folder there is some sample lab configs in there.

7. Open Simple1

You will see a file called simple1.net

 

 

Open this file with notepad, you will need to edit the line:

IMPORTANT
You will need to change the line:
image = \Program Files\Dynamips\images\ c7200-ik9s-mz.122-15.T17.bin
to the name of your image if different.

Notepad is not the best editor to use with the net files I use A programme called UltraEdit which produces this output::

# Simple lab
[localhost]
[[7200]]
image = \Program Files\Dynamips\images\ c7200-ik9s-mz.122-15.T17.bin

# On Linux / Unix use forward slashes:
# image = /opt/7200-images/c7200-jk9o3s-mz.124-7a.image

npe = npe-400
ram = 160

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

[[router R2]]
# No need to specify an adapter here, it is taken care of
# by the interface specification under Router R1

This lab has 2 routers R1 & R2

R1 s1/0 interface is connected to R2's s1/0

This is a simple topology but it is good enough for you to get used to the simulator.

How To Use Dynamips

Double Click the Dynamips server icon which should be on your desktop

This should happen:

If so that means the server is working.

 

Next double click on the simple1.net file


This should then happen :

When you see this screen (below):

All is running:
In the box type: telnet /all (as shown)

Two telnet sessions will open

 

One will be for R1 and the other for R2
Router 1's S1/0 is connected to R2 S1/0

You can the do all the commands on each router as per real router..
But remember they are only connected to each other on the S1 interface no other .

Troubleshooting


Documentation and tutorials are found in the folder called docs

 

This has a good tutorial and will also tell you how to create an idlepc value which will stop Dynamips from running your cpu at 100%

The most common faults to prevent Dynamips from running are:

Not having a IOS in the right location or IOS is not a .bin extension.
Forgetting to edit the IOS type and location in the .net file

(Both will produce an unable to start R1 error 209 message).

Not starting the Dynamips Server.exe before trying to start the .net file.