Re: IPEXPERT VOLUME 1 - INITIAL CONFIGURATION ON GNS3 SETUP

From: -Hammer- <bhmccie_at_gmail.com>
Date: Tue, 11 Oct 2011 08:42:24 -0500

Try this:

I used this as a reference for the router configs and the .net file

http://blog.ipexpert.com/2011/02/28/gns3-and-physical-switches-breakout-switch/

You can write a script to create modified configs that will serve your
GNS3 setup. You will need to tune it to your specific settings but below
is what I used. My 3560s were all gig so I had to rename all their
ports. Also my serial ports didn't match up. Play around with it for
your environment. Nothing proprietary here.

SCRIPT:
ceh0900_at_8440p:~/Documents/Library$ cat SerialRename.sh
#!/bin/sh
#
#I called it with: ./SerialRename.sh ./IPExpert\ Routing\ and\
Switching\ Volume\ 1/
#

if [ -z "$1" ]; then
     echo "Please call this script quoting the path to the text files in
the LAB-* folders"
     echo "Example: ./this-script '/path/to/IPExpert Routing and
Switching Volume 1'"
     exit 0
fi

# We use the @ symbol so that our serial interface names don't look all
screwy.
#'s_at_0/1/0_at_2/2_at_g' == 's/0\/1\/0/2\/2/g'

     #First, go find the files and rename in bulk and then rename the
files to XXX_adjusted.txt
find "$1" -type f|grep '\.txt$'|grep 'LAB-'|while read line; do
     echo "Processing $line"
     sed -e 's_at_0/1/0_at_2/2_at_g' -e 's_at_0/2/0_at_2/0_at_gi' -e 's_at_0/0/0_at_2/0_at_gi'
"$line" > "${line}_adjusted.txt"

     #Then, there are some extra conditions/exceptions
     #If R4 then rename 2/0 to 2/2
     if [ $(echo "$line"|grep -c "R4\.txt") -gt 0 ]; then
         sed -i 's_at_2/0_at_2/2_at_gi' "${line}_adjusted.txt"
     fi

     #If R9 or R6 then rename 0/2/1 to 2/1
     if [ $(echo "$line"|grep -c "R9\.txt\|R6\.txt") -gt 0 ]; then
         sed -i 's_at_0/2/1_at_2/1_at_gi' "${line}_adjusted.txt"
     fi

     #If file name starts with Cat then rename FastEthernet to G
     if [ $(echo "$line"|grep -c "Cat") -gt 0 ]; then
         sed -i 's/FastEthernet/G/g' "${line}_adjusted.txt"
     fi

     #If file name IS Cat1 then rename G0/2 G0/13
     #Watch out for DOS vs UNIX file types. They prevented this from
working with EOL=g
     if [ $(echo "$line"|grep -c "Cat1\.txt") -gt 0 ]; then
         sed -i 's_at_G0/2\r_at_G0/13_at_g' "${line}_adjusted.txt"
     fi

done

------------------------------------------------------------------------------------------------------
08:39:37
ceh0900_at_8440p:~/Documents/Library$

-Hammer-

"I was a normal American nerd"
-Jack Herer

On 10/10/2011 12:19 PM, Marko Milivojevic wrote:
> On Mon, Oct 10, 2011 at 09:50, Mohammed Aftab Memon
> <aftabmemon12_at_gmail.com> wrote:
>
>> confirmed with IPexpert support. They do not have initial configuration for
>> GNS3.
>>
> The main reason for that being that we do offer the best rack rental
> in the CCIE training industry at ProctorLabs.com. All our labs are
> designed, written and tested for use with ProctorLabs. The main reason
> for this is ongoing support for our products, which are live and
> change from time to time, due to bugfixes or updated content. On a
> side note, we've seen interest for GNS3 decline over past year and a
> half or so. I wonder if something else has replaced it for self-study
> ;-)
>
> As far as GNS3 support goes, we have detailed instructions how to set
> up your study environment for GNS3 on our blog -
> http://blog.ipexpert.com. Just search for "GNS3". In the discussion
> thread on those blog posts, you will find scripts written by some of
> our students that you can use to convert our original initial
> configurations for use with GNS3.
>
> --
> Marko Milivojevic - CCIE #18427
> Senior Technical Instructor - IPexpert
>
> FREE CCIE training: http://bit.ly/vLecture
>
> Mailto: markom_at_ipexpert.com
> Telephone: +1.810.326.1444
> Web: http://www.ipexpert.com/
>
>
> Blogs and organic groups at http://www.ccie.net
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html

Blogs and organic groups at http://www.ccie.net
Received on Tue Oct 11 2011 - 08:42:24 ART

This archive was generated by hypermail 2.2.0 : Tue Nov 15 2011 - 13:10:29 ART