日志文章

2007年09月27日 22:05:57

7200simulator manual, to make routing easily

---------------------------------------------------------------
Installation manual

Firstly, install WinPcap_3_1.exe (You don’t need to install it if your computer has already had it. When there is new edition you can download it here http://www.winpcap.org/install/default.htm)

Secondly, install Dynamips_win_setup_0.2.5-RC1-0.4.2-1.exe (When there is new edition you can download it here http://dyna-gen.sourceforge.net/)
Thirdly, decompress dynamips-0.2.5-RC2-cygwin.zip (This is the latest edition, you can download new edition here in the future http://www.ipflow.utc.fr/blog/)
Fourthly, copy the depressed dynamips-wxp.exe to C:\Program Files\Dynamips (default installation directory). Delete dynamips.exe, rename dynamips-wxp.exe as dynamips.exe.
Fifthly, download the corresponding IOS edition (You can find some here http://www.files.lt)
Sixthly, change the *.bin of the IOS edition to *.rar. For example, change c7200-jk9o3s-mz.124-3.bin to c7200-jk9o3s-mz.124-3.rar, then you can get C7200-JK.BIN by depression. (As IOS loading is self-depression, depression speed would be much faster when you do it in advance )
Seventhly, copy the depressed C7200-JK.BIN to C:\Program Files\Dynamipsimages (You can also put it in other places, but you’d better put it in the default directory. You will know why when you know the software much better.)
After you finish all of these steps, you can find three shortcuts on your desktop as Dynagen Sample labs,Dynamips Server and Network device list.
You need to pay attention to all_config_options.txt in C:\Program Files\Dynamipssample_labs. Open it in word, or in IE, but don’t use notepad. It is an instruction about how to configure the simulator. Please make sure that you can read it.
Manual
Firstly, operate Dynamips Server.bat (The window will be minimized, don’t close it.)
Secondly, operate the examples in the dynagen Sample labs. I will make some explanations about simple2.net(It can be edited in tablet)

# Simple Ethernet Switch lab(# notes)
autostart = false(It will not read router simulation automatically, but virtual switch is already started.)
[localhost]

[[7200]]
image = PROGRA~1Dynamipsimagesc7200-jk9o3s-mz.124-7a.image(This is the complete route. Because in default it would be installed in this directory, so there is no drive. If you want to change the directory of the IOS. For example, you want to put IOS in C:7200, you can write in this way: image = C:7200C7200-JK.BIN)
# On Linux / Unix use forward slashes:
#image = /opt/7200-images/c7200-ik9o3s-mz.124-5a.image (This is a usage in the linux, here we refer to windows system.)
npe = npe-400 (You don’t need to change this one)
ram = 160 (this is set according to IOS edition. We use 96 for 12.3 edition IOS and 128 for 12.4 edition IOS.)

[[ROUTER R1]]
F1/0 = S1 1 (to define the connection about F1/0 and port 1 of switch S1)

[[router R2]]
F1/0 = S1 2 (to define the connection about F1/0 and port 2 of switch S1)

[[router R3]]
F1/0 = S1 3 (to define the connection about F1/0 and trunk port 3 of switch S1 ; i.e. this interface needs trunk. Please remember.)

[[ethsw S1]] (to define an unchangeable switch ethsw, S plus number represent the name of the switch)
1 = access 1 (port 1 is an access port, a membership of Vlan 1)
2 = access 20 (port 2 is an access port, a membership of Vlan 1)
3 = dot1q 1 (Port 3 is an trunk port (dot1q encapsulation) with naitive vlan 1)
4 = dot1q 1 NIO_gen_etheviceNPF_{B00A38DD-F10B-43B4-99F4-B4A078484487}
#4 = dot1q 1 NIO_gen_eth:eth0
Port 4 is trunk port (naitive vlan 1) that is connected to the host eth0 via the gen_eth NIO(The following is a detail explanation: you can find the corresponding number of the network card by operating Network device list.bat. Here is the Network device list on my computer:
DeviceNPF_{4B96B4D1-1F78-4A81-88B1-2091EA9E9224}: 3Com EtherLink PCI
Use as follows: F0/0 = NIO_gen_etheviceNPF_{...}

(To make router simulation F0/0 correspond to the 3Com EtherLink PCI network card on my computer, I write it this way:
DeviceNPF_{4B96B4D1-1F78-4A81-88B1-2091EA9E9224}). In this way the router simulation can communicate with real machines, so long as the FO/O IP address of the router is in the same network with NIC IP address.

Tags: dynamips   7200   simulator  

类别: dynamips |  评论(0) |  浏览(1154) |  收藏
发表评论