Installation for dynagen on windows(a detailed description):
step 1:visit hxxp://www.dynagen.org/tutorial.htm for the official dynagen tutorial. following lines are copied from the tutorial..
Dynagen runs on any platform that supports Python, which is to say nearly any platform. I have also put together a Windows installer package that includes Dynamips and provides a compiled version of Dynagen, eliminating the need to install Python. It also provides Explorer “integration” so you can double-click on network files in order to run them.
First, install libpcap, or winpcap depending on your platform on the machine on which you intend to run Dynamips. This is used to provide bridging router interfaces to physical network cards. Windows users will need to install Winpcap 4.0 or later, which is current in beta.
Then, Windows users should install the Windows installer package. This provides everything you need to run Dynamips / Dynagen on local or remote machines.
You can download winpcap from hxxp://www.winpcap.org/install/default.htm
step 2:download dynagen from here: hxxp://sourceforge.net/project/showfiles.php?group_id=160317&package_id=192619
step 3:after installation look into the folder where it was installed.You will see a file named "dynamips-start.cmd".Start the file.This will open the server.Note : keep this window open when you run any of your .net files and do not close it till you are done!
step 4:run a sample lab.set the application file(.net file) to run with dynagen i.e
rightclick->open with->choose program->browse and select "dynagen.exe" from the folder in whch it was installed
Now the routers in the lab will be opened.
To run sdm:
step 1:create a microsoft loopback adapter as described at:
hxxp://www.microsoft.com/technet/prodtechnol/virtualserver/2005/proddocs/vs_operate_using_loopback.mspx?mfr=true
step 2:goto control panel->network connection...You shall see your loopback adapter created.Go ahead and enable it by right clicking on it.
step 3:open the file named "Network device list.cmd" from the installed directory of dynagen.
step 4:you will see your loopback appear it also its address will appear(like NIO...)
step 5:copy this address and paste it in your .net file and bind this address to an interface of the router that you want to run(either from sample lab file or your own).Note: the .net file can be opened using notepad also(other than dynagen) to edit the topology.The binding process is well described in the tutorial page under the "Communicating with Real Networks" section.
step 6:open the router console enter the following commands:
-username name privilege 15 secret password
-ip http server
-ip http authentication local
-ip http secure-server
-line con 0
-login local
-line vty 0 4
-privilege level 15
-login local
-transport input telnet ssh
-line vty 5 15
-privilege level 15
-login local
-transport input telnet ssh
step 7:Use the correct ip address at the interface bound to loopback adapter.Also,goto control panel->network connection->rightclick on loopback adapter->properties->
tcp/ip settings->set the correct default gateway and i address.
step 8:from router ping the loopback adapter(Note:this has to be done 1st) and ping the router from "run" .(it should work)
step 9 :start the sdm (popup blockers on web browser should be disabled
also note you will need to download the ios for the router and specify the path for the ios in the .net file(usage is again showed in the tutorial).
Imp Note:on some ios dynagen(that is..even some that are ios for cisco isr line of routers) will not enable the firewall,ips and nac options will not be enabled.you can use the "c3725-adventerprisek9-mz.124-17.bin".I have uploaded this at:
hxxp://www.[nofileshares].com/file/29707795/a2729199/c3725-adventerprisek9-mz124-17.html
For your convenience i have given a sample topology below..You can directly paste this stuff in a .NET file(but change the location of the ios file)...have a look!
###Toplogy begins###
[localhost]
[[3725]]
image = \Program Files\Dynamips\images\c3725-adventerprisek9-mz.124-17.bin
model = 3725
ghostios = True
sparsemem = True
mmap = True
autostart = False
ram = 128
idlepc = 0x60a6808c
[[Router R1]] #this is the router with name R1.Note:this is not the hostname..its the name dynagen uses to refer to this rtr
model = 3725 #model of the router specified based on ios
console = 3725 #use diffierent console port for each router
slot1 = NM-4T #slot 1 has 4 T1 ports.Look under "Hardware Currently Emulated" section in tutorial for possible usages
slot2 = NM-1FE-TX #slot 2 has 1 Fast ethernet port
s1/0 = R2 s1/0 #connecting serial 1/0 of R1 to serial 1/0 of Router R2
#f2/0 = SW1 1 #connecting f2/0 to 1st port in switch sw 1(this statement is commented,so,it will not execute!You can
enable it when you change the loopback info below as per listed in you network devices list.)
[[Router R2]]
model = 3725
console = 3727
slot1 = NM-4T
slot2 = NM-1FE-TX
s1/1 = R3 s1/1
[[Router R3]]
model = 3725
console = 3726
slot1 = NM-4T
slot2 = NM-1FE-TX
[[ethsw SW1]] #followin is the config for an ethernet switch named SW1
1=access 1 #1st port of the switch is access port in vlan 1
#2= access 1 NIO_gen_eth:\Device\NPF_{8D2CDA83-7BB8-4335-B8AE-311AD828AB07} #connecting the loopback.
###Topology Ends###
I have also uploaded a few video tutorials(you need to have a flash player for these.Try playing from your internet browser by directly entering the location of the file(after downloading the following videos) in your local hard drive:
1) How to install dynamips on Windows: hxxp://www.[nofileshares].com/file/29758696/aa3a3532/dynagen-all.html
2) Connecting to a Windows Loopback Interface: hxxp://www.[nofileshares].com/file/29758866/273c04f7/dynagen-loopback.html
3) How to Connect Dynamips to a physical network(Wan connectivity): hxxp://www.[nofileshares].com/file/29759048/441d7daf/dynagen-static-routing.html
Note: Posted Link on this Topic has been Authorized by the Moderators
This post has been edited by imvarun: 24 November 2007 - 07:17 AM


Help











