Detailed Guide to the use of dynamips + dynagen

Summary

The principle of is to simulate hardware platform of Router, run software directly, and to achieve almost complete simulation of routers and switches effect while is to make it more convenient for you to use and the configuration more humane on the basis of . This paper is an instruction for to use in windows xp. In addition, its use and configuration in Linux and other platforms is basically the same. You can use this software on the basis of this paper to achieve simulation running of numbers of routers on single or more PCs and to realize their interconnection. This is helpful for you to study router figuration on network. This is the supplementary information about running numbers of routers on one or more PC (windows) and realizing their interconnection. The latest version can support switch module, but temporarily I don’t know how to use switch on it. Would someone please tell me if you can?

Hardware and software requirements

1. Operating system I use is windows xp sp2, and my computer is Lenovo Yang Tian Series, with 1G EMS memory.

2. You can download , and WinPcap in the enclosure.

3. As chris has said, BIN file cannot be offered, but if you have bought product, these are no problem.

Installation

The following section is one of my colleagues, Zhang Ye introduced for us:

support Linux,Windows XP(but not 2000; as to 2000的you can try DynamipsGUI)

1)  first install -0.8.3_dynamips-0.2.6-RC5_Win_XP_setup.exe。 has integrated WinPcap, so there is no need to install WinPcap.

2)  Decompress -0.2.6-RC5-cygwin.zip. Copy the decompressed files to C:\Program Files\.
you can find the files you need in this forum.

After installation, you can see the following by pressing START—ALL PROGRAMS— (you can also see it on the desktop)

1.JPG (11.27 KB)

2007-5-18 13:45

Later we’ll mainly use “ server”, but if you want to realize interconnectivity of the routers on many PCs you still need “network device list”. Therefore, I will first introduce their functions:

1.  “ server”: it needs startup every time you use it, but you only have to start up one time no matter how many routers or switches are running on a PC.

2. “network device list”: This is used mainly to show your network card information. When you want to designate a virtual router interfaces (e.g. R1 f0/0 we’ll introduce to you in the following) to a specific NIC, you use this tool to obtain network card information and then fill it into your configuration files.

Well, next we’ll learn how to configure and use this software

use

First, put your IOS in “C:\Program Files\\images”, then when you start the system it will read these IOS. Here you can change the IOS file to “.zip” file, and then decompress it. In this way when you start the Router later, it would be faster, because you advance the decompression operation.

After installation, there will be “.net” file configuration. This document designated models of various routers, switches and starting file IOS, and how to connect the interfaces of routers and switches and so on.

This software brings a “C:\Program Files\\sample_labs” directory with configured examples in it. Next we’ll tell you how to configure “.net” file through modification of “C:\Program Files\\sample_labs\simple1\simple1.net”. Here we’ll not list the system bringing“simple1.net”file. The following is the revised “simple1.net”.

# Simple lab

autostart = false

[localhost]

[[7200]]

image = \Program Files\\images\C7200.image

# 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

f0/0 = R2 f0/0

mmap = true

[[router R2]]

mmap = true

[[ROUTER R3]]

model = 2691

image = \Program Files\\images\c2691.bin

mmap = true

# No need to specify an adapter here, it is taken care of

# by the interface specification under Router R1

“#”note:

1.autostart = false: to define that when starting up ” Net, “file without running these virtual router defined in the document. We strongly recommend that you configure like this, or your machine could not stand when you suddenly start a lot of virtual router.

2.[[7200]] to define the default model of Router be 7200

3.The “image = \Program Files\\images\C7200.image” under [[7200]], to define the default start of Router uses this BIN file

4.[[ROUTER R1]] Next step is configuration of virtual router R1. Others similar are R2 and R3.

5.f0/0 = R2 f0/0: to define the connection of virtual router R1 f0/0 and virtual router R2 f0/0.

6.mmap = true:This is similar to virtual memory of PC, which means you can run virtual router by using virtual memory. I strongly recommend you to do like this too.

7.model = 2691: to define that the model of virtual router R3 be 2691. The model of the two virtual routers R1 and R2 mentioned above is 7200 in default.

8.The “image = \Program Files\\images\c2691.bin” under [[ROUTER R3]]: to define the BIN file started up by virtual router R3 is “image = \Program Files\\images\c2691.bin”, and the BIN file started by the former two virtual routers R1 and R2 is “c7200.bin” in default.

After the above configuration, we can run it for a try. Operation steps are as following:

1.Initiate “ server”. Click on “start—all programs– à Server”.

2.Double click “C:\Program Files\\sample_labs\simple1\simple1.net” we’ve just configured; you’ll see a DOS interface. To make it convenient, we’ll call it DOS1. Input “help” on DOS1 and you can see various commands of this software.

3.Input “list” on DOS1 and you can see every virtual router and their state. “Console” row is the corresponding port number of every virtual router CONSOLE. You can log into the virtual router R1 CONSOLE by using the command “telnet 127.0.0.1 2000″ with the help of SecureCRT or other TELNET tools.

4.Of course, as you configured “autostart = false” and no router is initiated, so it’s useless to log into CONSOLE. Use command “start R1”on DOS1 to initiate virtual router R1. Now you can log into router R1 CONSOLE and configure.

5.Please don’t be so excited that you configure router 1 at once. Let’s return to DOS1. Use command “idlepc get R1”or“idlepc show R1” on DOS1

As the maximum [xx] is [80] here, so we choose the“0×6077e9fc”on the same line. Later we’ll use it to configure idlepc. This idlepc is very useful, for this software default is to maximally use your PC system resources. With this idlepc configuration, this software occupying of your system resources would be under effective control. You can also get the idlepc values of R2 and R3 with these steps.

Here we’ll remind you: at beginning every port of virtual router is “administratively down”, so you need to input corresponding interface configuration mode and use “no shutdown” to make interface up.

dynamips-network

# Simple lab

autostart = false

[localhost]

[[7200]]

image = \Program Files\\images\C7200.image

# 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

f0/0 = R2 f0/0

mmap = true

idlepc = 0×6077e9fc

[[router R2]]

mmap = true

idlepc = 0×6077b778

[[ROUTER R3]]

model = 2691

image = \Program Files\\images\c2691.bin

mmap = true

f0/0 = NIO_gen_eth:\Device\NPF_{51179616-52D7_450B-BDCE-090D80AEB467}

idlepc = 0xffffffff8000ad14

# No need to specify an adapter here, it is taken care of

# by the interface specification under Router R1

Related Posts

If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.

Comments

No comments yet.

Leave a comment

(required)

(required)