bob@lab:~/scripts$ cat ipx-config-fixups.txt
#######################################################
#####      THIS IS NOT AN EXECUTABLE SCRIPT       #####
#######################################################

# These commands should be run from the Volume-level direcotry structure on
IPX's initial configs.
# For example, the usual directory structure is:
#    VOL3/LAB-5/INITIAL
# So these commands are run from VOL3/ and will dig into the lab-specifc
sub-dirs


#Switch R2 to use FE interface rather than GE
sed 's/GigabitEthernet/FastEthernet/g' -i */*/R2.txt
sed 's/media-type/!/g' -i */*/R2.txt


#Remove leading '0/' from Serial identifiers as pre-ISR routers don't have
slot/card/port IDs
sed 's/Serial0\//Serial/g' -i */*/R2.txt
sed 's/Serial0\//Serial/g' -i */*/R4.txt
sed 's/Serial0\//Serial/g' -i */*/R5.txt
sed 's/Serial0\//Serial/g' -i */*/R6.txt
sed 's/Serial0\//Serial/g' -i */*/R7.txt
sed 's/Serial0\//Serial/g' -i */*/R8.txt
sed 's/Serial0\//Serial/g' -i */*/R9.txt


# This further remaps R4 Serial0/0 to Serial1/0 for use with a 7200 model
Dynamips router
sed 's/Serial0/Serial1/g' -i */*/R4.cfg


# Get rid of commands that cause problems with Dynamips
sed 's/memory-size iomem/!/g' -i */*/*
sed 's/warm-reboot/!/g' -i */*/*
sed 's/scheduler allocate/!/g' -i */*/*

# Remove any hard-coded LMI to avoid issue with Dynamips FR switch
sed 's/frame-relay lmi-type cisco/!/g' -i */*/*

# Force interfaces to 100/Full wherever possible to avoid duplex mismatch
CDP messages from real
# switch integration
sed 's/duplex auto/duplex full/g' -i */*/*
sed 's/half-duplex/full-duplex/g' -i */*/*
sed 's/speed auto/speed 100/g' -i */*/*


# This will rename .txt files to .cfg for Dynagen import
rename s/\.txt$/\.cfg/ */*/*.txt





On Tue, Jul 31, 2012 at 8:12 PM, John Olsen <[email protected]> wrote:

> Hi All,
>
> I seem to recall some reference to a script for converting the initial lab
> configurations to use with GNS3 with the IPX topology. The trouble is I
> can't remember where I saw this...can anyone point me to the right place? I
> guess otherwise I can do it all manually.
>
> regards
> John
> ______________________________**_________________
> For more information regarding industry leading CCIE Lab training, please
> visit www.ipexpert.com
>
> Are you a CCNP or CCIE and looking for a job? Check out
> www.PlatinumPlacement.com
>
> http://onlinestudylist.com/**mailman/listinfo/ccie_rs<http://onlinestudylist.com/mailman/listinfo/ccie_rs>
>
_______________________________________________
For more information regarding industry leading CCIE Lab training, please visit 
www.ipexpert.com

Are you a CCNP or CCIE and looking for a job? Check out 
www.PlatinumPlacement.com

http://onlinestudylist.com/mailman/listinfo/ccie_rs

Reply via email to