You might want to write a sed script which does this for each router config 
file

sed -i 's/spanning-tree mode pvst/!/' sw*.txt
sed -i 's/spanning-tree extend system-id/!/' sw*.txt
sed -i 's/vlan internal allocation policy ascending/!/' sw*.txt
sed -i 's/ip http server/!/' *.txt
sed -i 's/ip http secure-server/' *.txt
sed -i 's/interface GigabitEthernet0\/1/FastEthernet1\/0/' *.txt
sed -i 's/interface GigabitEthernet0\/2/!/' *.txt
sed -i ’s/interface Vlan1/!/’ *.txt
sed -i ’s/version 12/!/’ *.txt
sed -i ’s/call rsvp-sync/!/’ *.txt
sed -i ’s/mgcp/!/’ *.txt
sed -i ’s/gatekeeper/!/’ *.txt
sed -i ’s/memory-size 15/!/’ *.txt
sed -i ’s/scheduler allocate/!/’ *.txt
sed -i ’s/warm-reboot/!/’ *.txt
sed -i ’s/^ shutdown/ no shutdown/’ *.txt
sed -i 's/Serial0\/0\/0/Serial0\/0/' *.txt
sed -i 's/Serial0\/1\/0/Serial0\/1/' *.txt
sed -i 's/Serial0\/2\/0/Serial2\/0/' *.txt
sed -i 's/Serial0\/2\/1/Serial2\/1/' *.txt
sed -i 's/Ethernet0\/0/FastEthernet0\/0/' *.txt



On Thu, 28 Jan 2010 13:14:12 -0700
  Bryan Bartik <[email protected]> wrote:
: Sergio,
: 
: If you are using the normal startup configs you can just put them in those
: directories. You would probably want another sub-directory for each lab. 
You
: might want to adjust that path and also verify the interfaces match up,
: sometimes your Dynamips routers will have slightly different numbering,
: especially the "switch".
: 
: On Thu, Jan 28, 2010 at 9:35 AM, Sergio D. <[email protected]> wrote:
: 
:> Hey Guys,
:> First question for this list. I am starting to go through the workgroup
:> labs and I will be using Dynagen/Dynamips for a lot of these labs. I 
noticed
:> that there is a .net file we can download (item 74) and I have a two part
:> question in regards to this.
:> Does this .net file work for all the labs?
:> Are the startup configurations depending on the lab that I am doing? For
:> example I see the following in the configurations:
:>
:>         cnfg = C:\Documents and Settings\Administrator\My
:> Documents\R&S_configs\Cat4-startup.cfg
:>         cnfg = C:\Documents and Settings\Administrator\My
:> Documents\R&S_configs\R1-startup.cfg
:>         cnfg = C:\Documents and Settings\Administrator\My
:> Documents\R&S_configs\R2-startup.cfg
:>         cnfg = C:\Documents and Settings\Administrator\My
:> Documents\R&S_configs\R6-startup.cfg
:>         cnfg = C:\Documents and Settings\Administrator\My
:> Documents\R&S_configs\R7-startup.cfg
:>
:> Under each router/switch instance, but I dont' see any files named that 
in
:> the configs folder, so I assume that if I am doing LAB5 I use the initial
:> configurations found in the LAB5 folder?
:>
:> Thanks in advance,
:>
:>
:> --
:> Sergio Danelli
:> JNCIE #170
:>
:> _______________________________________________
:> For more information regarding industry leading CCIE Lab training, please
:> visit www.ipexpert.com
:>
:>
: 
: 
: --
: Bryan Bartik
: CCIE #23707 (R&S, SP), CCNP
: Sr. Support Engineer - IPexpert, Inc.
: URL: http://www.IPexpert.com

_______________________________________________
For more information regarding industry leading CCIE Lab training, please visit 
www.ipexpert.com

Reply via email to