| View previous topic :: View next topic |
| Author |
Message |
jumbo
Joined: 18 Sep 2006 Posts: 855 Location: slovakia
|
Posted: Thu Feb 22, 2007 3:42 pm Post subject: confDynagen 0.11.121107 with PEMUwrapper support |
|
|
Hi all,
Let me introduce confDynagen - configuration mode add-on for Dynagen. I hope Greg will once merge it into Dynagen. This is an experimental release of the add-on, it probably contains many bugs, which I did not catch so please report anything you find.
confDynagen main page: http://confdynagen.googlecode.com
Info:
Dynagen configuration mode allows you to dynamically change your lab, by editing the .net config �on the fly� - interactively. You can add/change/remove all lab/router options that are available in the .net files without restarting your lab. You can also add/change hypervisors without restarting your lab.
Here is a little example:
Dynagen management console for Dynamips
#--- we ran dynagen without any command line option to start from scratch. There is, of course, possibility to run dynagen as with .net file as an argument
=> conf localhost
Hypervisor on localhost:7200 created
#--- this command added the hypervisor running on localhost:7200 to the lab. No need to specify 7200 here as it is the default port. In case you would need another port type something like �localhost:7201�
=>(config-localhost:7200)help
Documented commands (type help <topic>):
========================================
2691 3640 3725 7200 help no router
3620 3660 3745 exit hist py workingdir
#--- everybody who works with Cisco routers knows what this means � we jumped into config mode � in this case a �hypervisor config mode�. Here is a list of commands available
=>(config-localhost:7200)7200
#--- first we need to set the default options for our future routers. This is configured under section 7200 (same as in the .net file). Minimum setting is the IOS image path.
=>(config-localhost:7200-7200)help
Documented commands (type help <topic>):
=======================================
cnfg disk0 exit help idlemax idlesleep midplane npe py slot
confreg disk1 ghostios hist idlepc image no nvram ram
#--- or we can set any other option, or unset it with �no� command similarly as in Cisco CLI
=>(config-localhost:7200-7200)image = C:\IOS\C7200-jk9s-mz.124-12.bin
C7200-jk9s-mz.124-12.bin found in user idlepc database
Setting idlepc value to 0x60654b68
#--- setting your image, also tries to find out the idlepc value in the idlepc database
=>(config-localhost:7200-7200)npe
npe = <npe type>
set NPE type. Choose "npe-100", "npe-150", "npe-175", "npe-200", "npe-225", "npe-300" or "npe-400"
=>(config-localhost:7200-7200)npe = npe-400
=>(config-localhost:7200-7200)exit
Exiting...
=>(config-localhost:7200)router R1
Router R1 created
#--- �router <router_name> [model <model>]� command creates a new router with specified model and name. All options set under �model default config� get applied onto the router. The default model is 7200, so we could use command �router R1� instead of �router R1 model 7200� (which will work too). Also this will take you directly into �router config mode�.
=>(config-localhost:7200-router R1)exit
Exiting...
=>(config-localhost:7200)router R2
Router R2 created
=>(config-localhost:7200-router R2)help
Documented commands (type help <topic>):
========================================
a confreg e f help idlepc midplane nvram py se
at disk0 et fa hist idlesleep no p ram slot
cnfg disk1 exit ghostios idlemax image npe po s
#--- under �router R2 router config mode� we can set specific options like (midplane, nvram size, disk0 size etc.) for this specific router. The �a�, �f�, �e� commands are for creating connections between routers.
=>(config-localhost:7200-router R2)f0/0 = R1 f0/0
#--- Here is an example of connection creation. The syntax is the same as in .net files. Syntax for disconnecting this connection would be the Cisco CLI form: �no f0/0 = R1 f0/0�. Every other option can be removed by using the �no� version of the command.
=>(config-localhost:7200-router R2)exit
Exiting...
=>(config-localhost:7200)exit
Exiting...
=> show run
autostart = False
[localhost:7200]
[[7200]]
npe = npe-400
image = C:\IOS\C7200-jk9s-mz.124-12.bin
idlepc = 0x60654b68
[[ROUTER R1]]
model = 7200
F0/0 = R2 F0/0
[[ROUTER R2]]
model = 7200
F0/0 = R1 F0/0
#--- show run command displays the running configuration of current lab in the .net file format
=> start /all
100-C7200 'R1' started
100-C7200 'R2' started
#--- we start our routers
=> conf localhost
#--- after the routers are started we can still go to config mode and add/change/remove stuff. The changes are reflected on the routers either immediately, or after router reload � depends on the type of option changed.
=>(config-localhost:7200)router R1
#--- if router R1 already exists (this is the case now) this is the way we can get into the �router config mode� to add/change/remove any router variable
=>(config-localhost:7200-router R1)f1/0 = R2 f2/0
#--- here we added a new connection �on the fly�. As you can see in the �show run� output above there is no adapter card in slot 1 in our 7206. This command will virtually insert the card (PA-FE-TX in this example) into slot1 and create the connection between both routers. This could be seen on the router as an OIR (online insertion removal) event:
%OIR-6-INSCARD: Card inserted in slot 1, interfaces administratively shut down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0, changed state to down
%ENTITY_ALARM-6-INFO: ASSERT INFO Fa1/0 Physical Port Administrative State Down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0, changed state to down
#---As you might know, only high-end routers like 720x support hot-insertion and removal of port adapters, so this is not supported on 36x0 or other low-end routers. However you can still create/delete connections between two 3660 routers, provided you have the network module ALREADY inserted since the router started.
=>(config-localhost:7200-router R1)exit
Exiting...
=>(config-localhost:7200)exit
Exiting...
=> show run
autostart = False
[localhost:7200]
[[7200]]
npe = npe-400
image = C:\IOS\C7200-jk9s-mz.124-12.bin
idlepc = 0x60654b68
[[ROUTER R1]]
model = 7200
F0/0 = R2 F0/0
slot1 = PA-FE-TX
F1/0 = R2 F2/0
[[ROUTER R2]]
model = 7200
F0/0 = R1 F0/0
slot2 = PA-FE-TX
F2/0 = R1 F1/0
#--- show run output reflects the change
=> copy run start
#---after finishing your work you can save it back into .net file. This will also save the NVRAM config into from the routers into the .net file under �configuration� option, similarly as you would do with �save /all� command
Last edited by jumbo on Fri Dec 14, 2007 7:59 pm; edited 10 times in total |
|
| Back to top |
|
 |
chris Site Admin
Joined: 17 Jul 2006 Posts: 468
|
Posted: Thu Feb 22, 2007 3:55 pm Post subject: |
|
|
| I've just tried it, really powerful! Great work! |
|
| Back to top |
|
 |
Marpione
Joined: 27 Jul 2006 Posts: 125 Location: Germany
|
Posted: Thu Feb 22, 2007 10:08 pm Post subject: |
|
|
| yes, thanks for this great tool. |
|
| Back to top |
|
 |
myown
Joined: 13 Sep 2006 Posts: 239 Location: Pakistan
|
Posted: Fri Feb 23, 2007 1:57 pm Post subject: |
|
|
it looks great.. have not tried yet.
Hope Greg will soon merge it with his code. And if some one want to make a routersim like front end, i hope with this patch it is clearly possible.
Thanks for great work............
Best Regards, |
|
| Back to top |
|
 |
dnszero
Joined: 13 Feb 2007 Posts: 35
|
Posted: Sat Feb 24, 2007 2:32 am Post subject: |
|
|
This looks super cool! _________________ Dave
---
"Thank God I'm not too early!" |
|
| Back to top |
|
 |
netics
Joined: 20 Jan 2007 Posts: 6
|
Posted: Sat Feb 24, 2007 8:16 am Post subject: |
|
|
Hi Jumbo
i havent tried this yet - but from the looks of it sounds super cool
Can i try this on windows XP directly - or do i need to have linux with Python support
Cheers and Great work
Things like these will surely leave Chris et al a lot more time for some real action _________________ Life Over IP- it Rocks |
|
| Back to top |
|
 |
greg Site Admin
Joined: 17 Jul 2006 Posts: 704 Location: USA
|
Posted: Sat Feb 24, 2007 2:36 pm Post subject: |
|
|
Jumbo,
Very interesting stuff! I don't know if I'd want to create a whole new lab this way, but there has been lots of times where I've forgotten to specify an interface in a lab, or I wanted to change an IOS version on a particular router. With this you could do that without reloading the whole lab. I'll work with you to get this integrated into Dynagen. Great contribution! |
|
| Back to top |
|
 |
jumbo
Joined: 18 Sep 2006 Posts: 855 Location: slovakia
|
Posted: Sun Feb 25, 2007 10:31 am Post subject: |
|
|
Thanks all,
as you might have noticed there is currently no support for dynamips frame,eth and atm switch in it, working on this, but more important is to make it bug free for cisco routers.
For windows users I did a windows version using py2exe:
http://www.lkbaba.sk/tmp/dynagen_win.zip
Merging this into dynagen will probably take longer than usuall, because of amount of code.....so .... stay tuned  |
|
| Back to top |
|
 |
netics
Joined: 20 Jan 2007 Posts: 6
|
Posted: Sun Feb 25, 2007 2:49 pm Post subject: |
|
|
Hi jumbo
-Great work
on windows - can i use an existing .net file from dynagen and make connections between routers already created.
thanks _________________ Life Over IP- it Rocks |
|
| Back to top |
|
 |
jumbo
Joined: 18 Sep 2006 Posts: 855 Location: slovakia
|
Posted: Mon Feb 26, 2007 7:31 am Post subject: |
|
|
netics>
Sure of course, you can run dynagen exactly the way you are used to, and then add/change/remove anything you want, virtual connections between routers too. |
|
| Back to top |
|
 |
jumbo
Joined: 18 Sep 2006 Posts: 855 Location: slovakia
|
Posted: Mon Feb 26, 2007 8:16 am Post subject: |
|
|
myown>
Can you explain what do you mean by term "routersim"? A GUI? Something like dynagui? |
|
| Back to top |
|
 |
chris Site Admin
Joined: 17 Jul 2006 Posts: 468
|
Posted: Mon Feb 26, 2007 8:47 am Post subject: |
|
|
Hi Jumbo,
I think MyOwn is talking about this software: http://www.routersim.com/ |
|
| Back to top |
|
 |
myown
Joined: 13 Sep 2006 Posts: 239 Location: Pakistan
|
Posted: Mon Feb 26, 2007 8:49 am Post subject: |
|
|
Actually it is just like the features you are giving out... but it is Graphical environment.. you can add routers and connections run time.... it is a simulator like boson, but much better than boson, and not an emulator like Dyanmips.
http://www.routersim.com/
http://www.routersim.com/CCNA5_Screenshots2.html
I truly believe that we are just on the verge to have some thing like that in up coming few months.
Thanks again for asking and providing some of highly required features.
Best Regards, |
|
| Back to top |
|
 |
jumbo
Joined: 18 Sep 2006 Posts: 855 Location: slovakia
|
|
| Back to top |
|
 |
myown
Joined: 13 Sep 2006 Posts: 239 Location: Pakistan
|
Posted: Mon Feb 26, 2007 3:59 pm Post subject: |
|
|
dont have netac account.. so can't tell what is that. _________________ Magic Bring Numbers or Numbers Bring Magic.....? |
|
| Back to top |
|
 |
|