Custom topology and configuration of CISCO simulator dynagen (1)

Source: Internet
Author: User

This article mainly introduces the custom topology of the Cisco simulator and the procedure for configuring it. What should we pay attention to when configuring it? The following article will give you a detailed answer.

Dynamips is made by a foreign friend called chris. If your foreign language is good, you can go to the author's BLOG to see the latest download. The author's BLOG is http://www.ipflow.utc.fr/blog /. The software is an open-source software. If you have a very good programmer, you can download the source code from the author's BLOG. If you modify the software to simulate Huawei devices, it is a good news for us to engage in the Internet.

Dynamips has different versions, but currently it is a simulation software for a vro. The switching part is to simulate inserting different ports on the vro.

We usually use a version from 0.2.5-RC1 to 0.2.7-RC1. The latest version is 0.2.7-RC1.

Version 0.2.5 only supports devices of the 3640, 3660, and 7200 models and can only simulate routers.

After 0.2.6-RC1, the author added support for the NM-16ESW Switching Module on the 3600 series, can support 3620, 3640, 3660, 7200 four kinds of equipment, at the same time solved some configuration, the CPU usage of the computer is 100%.

0.2.7-RC1 was developed by the author recently and many bugs have been fixed. This version adds 2600, Cisco 7200 NPE-G2, Cisco 7200 new Ethernet Port Adapters to the original supported devices.

The running method is to use the Dynagen program to call the. net file. Dynagen does not seem to have been written by chris, but by another person. The. net configuration file is logical and suitable for creating the topology. However, it consumes a lot of CPU and memory, and if a virtual device goes down, all enabled devices need to be restarted.

The above briefly describes the situation of the Dynamips simulator. Let's look at its configuration. Let's first look at its configuration file. Note: it must run in version 0.2.7-RC1.

Below we take a configuration file to see its configuration method.

The black font is the description.

**************************************** *************************************

Autostart = false

# Whether to enable automatic running. If this value is true, all devices will automatically start after you run the program. If there are many devices, it will be a disaster ), we recommend that you set this parameter to false.

[Localhost]

Port = 7200

Udp = 10000

# The above is the port number used to set all virtual devices. It should be defined as a starting port, which is automatically allocated later. I did not find the specific Port Number of the device, just a guess.

[[Router R1]

# The previous router defines the device type. As you can see, Dynamips can only simulate a router.

The following R1 is the device name you have defined. It must be different from other devices.

Image = D :\ cisco IOS rom \ IOS \ c3640-jk9o3s-mz.124-10a.bin

# This is the IOS file path downloaded from the Internet. It is best to write the absolute path.

Model = 3640

# This sentence defines your vro model. Different models and Virtual Devices of different models vary according to IOS. This is 3640.

Console = 2001

# This is the login interface defined. This value must be unique throughout the configuration. 2001 is actually port 2001. Do you see the [localhost] above? That is the address, which can also be replaced by 127.0.0.1. That is to say, if you use telnet to log on, the address is 127.0.0.1: 2001. I will write the usage of SecureCRT software.

Ram = 96

# Define how much memory the virtual device uses. If the value is too small, the virtual device cannot start. If your memory is large enough, you can expand the value.

Confreg = 0x2102

# Set the value of the configuration register directly to 2102. Many friends say that the configuration cannot be stored because the configuration register is set to 2142. In fact, it is not impossible to save the device, but if the configuration is set to 2142, the device will not read the configuration at startup.

Idlepc = 0x603e0068

# This value affects the program performance. It is best to try a few more.

Exec_area = 64

# It looks like a space for a command or program, but I never know what this setting is.

Mmap = true

# If your memory is large enough, you can set it to false to allow the program to run completely in the memory. If you only have MB of memory like me, we recommend that you set it to true. Note: If this parameter is set to true, you must set a certain amount of disk space in the disk where the program is located. We recommend that you reserve more than 1 GB of space.

Slot0 = NM-1FE-TX #36 Series 1-port Fast Ethernet module, which is required to connect to a vswitch.

Slot1 = NM-4T #36 Series 4-port serial port module.

Slot2 = NM-1FE-TX #36 Series 1-port Fast Ethernet module, which is used to connect other devices.

The above three lines show the modules or line cards used in the virtual device slots ). 3640 supports four modules and 3660 supports six modules. The types of supported modules are described later.

F0/0 = SW9 1 the local f0/0 connects to Port 1 of the device named SW9.

S1/1 = R2 s3/0 the local s1/1 connects to the s3/0 port of the device named R2.

S1/2 = FR1 1 s1/2 is connected to Port 1 of the device named FR1.

F2/0 = SW1 f1/15 the f2/0 of the local machine is connected to the f1/15 port of the device named SW1.

The above four lines show the topology connection, = the front is the local port, = The following is the name and port of the linked device. Format: Local Port = peer port. Once a connection is defined here, you do not need to set it on the peer device. Otherwise, an error will occur.

[[Router R2]

Same as above, this device is called "R2 ".

Image = D :\ cisco IOS rom \ IOS \ c7200-jk9o3s-mz.124-10a.bin

This device uses IOS 7200, 7200, And 3600 modules.

Model = 7200

The device is defined as 7200.

Console = 2002

This device is logged on through port 2002.

Npe-400 npe =

I still don't understand what to use to define the NPE type of 7200, but it is good to use this value.

Ram = 128

7200 of course, the memory is larger. I set 256 M, and someone is said to have set M.

Confreg = 0x2102

Idlepc = 0x6074ae38

Exec_area = 64

Mmap = true


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.