IEWB-Dynamips

From Internetworkpro

Jump to: navigation, search
This page or section provides device configuration instructions
Please note that the information on this page has not been checked for accuracy and is not intended as a replacement to documentation. Please ensure you understand your desired objectives before attempting to apply any examples listed.
See more examples at Category:Configuration
This page contains configuration examples or information on dynamips
The examples on this page are intended for use with dynamips, the Cisco router emulator. This information is not intended for use on hardware routers, and is primarily used for troubleshooting, testing, and certification lab study.
Support of Dynamips is found on Hackis_Forum. For other dynamips pages see Category:Dynamips

I've got to say, after working around a while, this article is pretty useless :) Sorry, everyone. --Sartan 22:50, 27 March 2009 (CDT)

Contents

[edit] Overview

Working with the Internetworkexpert workbooks (Vols 2-3) can be difficult when using a dynamips lab and the initial configurations provided. Internetworkexpert offers ready-to-paste initial configurations from http://members.internetworkexpert.com/courses/iewb-rs-vol2/files/iewb-rs-vol2.v4.10.initialconfigs.zip however these initial configurations will not work with any dynamips configuration, since we can't put in the required modules in our virtual routers.

Included is a printable PNG diagram for easy reference, the dynagen .net file required for the topology, and a shell script (Unix only, sorry) to harvest the IEWB configurations and use them effectively - and automatically, for the IEWB labs.

The only configuration changes this script does is swap the hostname to make it easier to see what lab you are on, and replace serial and fastethernet interfaces to what is possible under dynamips.

If you so desire, basic configurations are also available for the routers at IEWB-Dynamips-Sandbox for a very scalable Volume 1 toplogy.

[edit] Printable diagram

Image:CCIE_RS_Dynamips.png

[edit] Usage

[edit] Preperation

[edit] Required files

Download the initial configs from internetworkexpert found at the URL http://members.internetworkexpert.com/courses/iewb-rs-vol2/files/iewb-rs-vol2.v4.10.initialconfigs.zip

Download and create the ielab.net and ielab.sh files to a folder of your choosing. I put my labs in ~/labs/<labname>, so my base folder is ~/labs/internetworkexpert

sartan@arcane:~/labs/internetworkexpert$ wget http://members.internetworkexpert.com/courses/iewb-rs-vol2/files/iewb-rs-vol2.v4.10.initialconfigs.zip
--15:24:02--  http://members.internetworkexpert.com/courses/iewb-rs-vol2/files/iewb-rs-vol2.v4.10.initialconfigs.zip
Resolving members.internetworkexpert.com... 68.190.179.77
Connecting to members.internetworkexpert.com|68.190.179.77|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3573173 (3.4M) [application/zip]
Saving to: `iewb-rs-vol2.v4.10.initialconfigs.zip'

100%[=======================================>] 3,573,173   90.4K/s   in 30s

15:24:33 (114 KB/s) - `iewb-rs-vol2.v4.10.initialconfigs.zip' saved [3573173/3573173]

Now that the file is downloaded, we want to [unzip] it.

sartan@arcane:~/labs/internetworkexpert$ unzip iewb-rs-vol2.v4.10.initialconfigs.zip
 <snip>
  inflating: iewb-rs-vol2-v4.10-initial-configs/RSRack26/lab8/sw1.txt
  inflating: iewb-rs-vol2-v4.10-initial-configs/RSRack26/lab8/r3.txt
  inflating: iewb-rs-vol2-v4.10-initial-configs/RSRack26/lab8/sw3.txt

sartan@arcane:~/labs/internetworkexpert$ ls
ielab.net                                   initial.configs
ielab.sh                                    internetwork.expert.topologies.zip
ie.routing.and.switching.topology.4.10.net  new
ie.service.provider.topology.1.02.net       sandbox
iewb-rs-vol2-v4.10-initial-configs          working
iewb-rs-vol2.v4.10.initialconfigs.zip

[edit] Editing for paths

Next, we want to edit ielab.sh to point to the expected paths. ielab.sh can be found at the bottom of this page.

iosdir="/opt/ios"
workingdir="/home/sartan/labs/internetworkexpert/working"
newdir="/home/sartan/labs/internetworkexpert/new"
configroot="/home/sartan/labs/internetworkexpert/iewb-rs-vol2-v4.10-initial-configs"
ios3640="c3640-ik9o3s-mz.124-21.extracted.bin"

My IOS folder is /opt/ios. I set up a working folder for dynamips to place its files into /home/sartan/labs/internetworkexpert/working. The new labs that the script creates are places in /home/sartan/labs/internetworkexpert/new. The configuration root variable specifies where the original IEWB initial configs come from.

We now need to update the paths included in the dynagen .net file.

For example,


autostart=false
[localhost:7200]

workingdir = /home/sartan/labs/internetworkexpert/working

[[3640]]
 image = /opt/ios/c3640-ik9o3s-mz.124-21.extracted.bin
 ram = 128
 disk0 = 0
 disk1 = 0
 mmap = true

 [[Router BB3]]
  model = 3640
  console = 2013
  autostart = false
  slot0 = NM-1FE-TX
  slot1 = NM-4T
  f0/0 = SW3 f1/14
  s1/0 = BB1 s2/1
  #s1/1
  #s1/2
  #s1/3
  cnfg = /home/sartan/labs/internetworkexpert/new/bb3.txt

Remember to update each hypervisor for the 3640 image, as there are two.

[edit] Running the script

Now, we run the IELab bash script to create the new .net files. The script takes two arguments - rack, and lab. In this case, we are building lab 3 from Rack 15.

sartan@arcane:~/labs/internetworkexpert$ ./ielab.sh 15 3
All checks passed! Dynagen will start an IEWB lab on configuration RSRack15\lab3
r1 config: /home/sartan/labs/internetworkexpert/iewb-rs-vol2-v4.10-initial-configs/RSRack15/lab3/r1.txt
r2 config: /home/sartan/labs/internetworkexpert/iewb-rs-vol2-v4.10-initial-configs/RSRack15/lab3/r2.txt
r3 config: /home/sartan/labs/internetworkexpert/iewb-rs-vol2-v4.10-initial-configs/RSRack15/lab3/r3.txt
r4 config: /home/sartan/labs/internetworkexpert/iewb-rs-vol2-v4.10-initial-configs/RSRack15/lab3/r4.txt
r5 config: /home/sartan/labs/internetworkexpert/iewb-rs-vol2-v4.10-initial-configs/RSRack15/lab3/r5.txt
r6 config: /home/sartan/labs/internetworkexpert/iewb-rs-vol2-v4.10-initial-configs/RSRack15/lab3/r6.txt
sw1 config: /home/sartan/labs/internetworkexpert/iewb-rs-vol2-v4.10-initial-configs/RSRack15/lab3/sw1.txt
sw2 config: /home/sartan/labs/internetworkexpert/iewb-rs-vol2-v4.10-initial-configs/RSRack15/lab3/sw2.txt
sw3 config: /home/sartan/labs/internetworkexpert/iewb-rs-vol2-v4.10-initial-configs/RSRack15/lab3/sw3.txt
sw4 config: /home/sartan/labs/internetworkexpert/iewb-rs-vol2-v4.10-initial-configs/RSRack15/lab3/sw4.txt

bb1 config: /home/sartan/labs/internetworkexpert/iewb-rs-vol2-v4.10-initial-configs/RSRack15/bb/bb1.txt
bb2 config: /home/sartan/labs/internetworkexpert/iewb-rs-vol2-v4.10-initial-configs/RSRack15/bb/bb2.txt
bb3 config: /home/sartan/labs/internetworkexpert/iewb-rs-vol2-v4.10-initial-configs/RSRack15/bb/bb3.txt

Deleting old nvram/flash/etc files for new lab usage
Creating new folder structure
Correcting .txt configurations
Routers 1-6
Fixing SW1-4
Fixing backbone routers BB1 is FRSW

The new config files are in new/

sartan@arcane:~/labs/internetworkexpert/$ ls new/
bb1.txt  bb2.txt  bb3.txt  r1.txt  r2.txt  r3.txt  r4.txt  r5.txt  r6.txt  sw1.txt  sw2.txt  sw3.txt  sw4.txt

We're ready to start!

sartan@arcane:~/labs/internetworkexpert$ dynagen ielab.net
Reading configuration file...

Network successfully loaded

Dynagen management console for Dynamips and Pemuwrapper 0.11.0
Copyright (c) 2005-2007 Greg Anuzelli, contributions Pavel Skovajsa

=> list
Name       Type       State      Server          Console
TermServ   3640       stopped    localhost:7201  2000
R1         3640       stopped    localhost:7200  2001
R2         3640       stopped    localhost:7200  2002
R3         3640       stopped    localhost:7200  2003
R4         3640       stopped    localhost:7200  2004
R5         3640       stopped    localhost:7200  2005
R6         3640       stopped    localhost:7200  2006
SW1        3640       stopped    localhost:7200  2007
SW2        3640       stopped    localhost:7201  2008
SW3        3640       stopped    localhost:7201  2009
SW4        3640       stopped    localhost:7201  2010
BB1        3640       stopped    localhost:7201  2011
BB2        3640       stopped    localhost:7201  2012
BB3        3640       stopped    localhost:7201  2013
=> start /all
100-VM 'R4' started
100-VM 'R5' started
100-VM 'R6' started
100-VM 'R1' started
100-VM 'R2' started
100-VM 'R3' started
100-VM 'BB2' started
100-VM 'TermServ' started
100-VM 'SW1' started
100-VM 'SW3' started
100-VM 'SW2' started
100-VM 'BB3' started
100-VM 'SW4' started
100-VM 'BB1' started
=> con R1
=> con R2
=> con R3
=> con R4
=> con R5
=> con R6
=> con R7
=> con SW1
=> con SW2
=> con SW3
=> con SW4
=> con BB1
=> con BB2
=> con BB3

We're all done! The lab is ready to go.

For example, the hostname of R2 is RSRack15R2, so we know it works:

Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
Connected to Dynamips VM "R2" (ID 1, type c3600) - Console port


*Mar  1 00:01:03.203: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to down
R5-RSRack15Lab3#
R5-RSRack15Lab3#sh cdp n
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
                  S - Switch, H - Host, I - IGMP, r - Repeater

Device ID        Local Intrfce     Holdtme    Capability  Platform  Port ID
SW2-RSRack15Lab3 Fas 0/0            137        R S I      3640      Fas 0/2
R3-RSRack15Lab3  Ser 1/1            131        R S I      3640      Ser 1/3
R5-RSRack15Lab3#

[edit] Shell script to create base configurations

ielab.sh

#!/bin/sh

# Shell script to replace Internetworkexpert 4.10 Dynamips initial config files
# to working order for a Dynamips lab.
# This only slightly changes the topology for interface naming.
# Requirements: Base configuration text files from internetworkexpert.
# http://members.internetworkexpert.com/courses/iewb-rs-vol2/files/iewb-rs-vol2.v4.10.initialconfigs.zip

iosdir="/opt/ios"
workingdir="/home/sartan/labs/internetworkexpert/working"
newdir="/home/sartan/labs/internetworkexpert/new"
configroot="/home/sartan/labs/internetworkexpert/iewb-rs-vol2-v4.10-initial-configs"
originalconfig="/home/sartan/labs/internetworkexpert/ie.routing.and.switching.topology.4.10.net"
ios3640="c3640-ik9o3s-mz.124-21.extracted.bin"

#DO NOT EDIT ANYTHING BELOW THIS LINE

rack="0"
lab="0"

function doerror {
 echo "Usage: `basename $0` <RACK> <LAB>"
 echo " <RACK> is an integer between 1-30"
 echo " <LAB> is an integer between 1-20"
 echo
 echo "Program Variables are located in the file `basename $0`"
 echo "-------------------------------------------------------"
 echo "\$iosdir IOS Directory: $iosdir"
 echo "\$ios3640 3640 image: $ios3640"
 echo "\$workingdir Dynamips working directory: $workingdir"
 echo "\$configroot Internetworkexpert configuration root: $configroot"
 echo "\$originalconfig Original configuration file $originalconfig"
 echo "\$newdir Original configuration file $newdir"
 echo "-------------------------------------------------------"
 echo
 echo "Error: $*"
 exit 1
}

#Check number of script arguments
if [ ! -n "$2" ]; then
 doerror "Not enough arguments"
fi

#Check if there are too many arguments
if [ -n "$3" ]; then
 doerror "Too many arguments"
fi

#Check if "Rack" is between 1 and 30 and "Lab" is between 1 and 20
if (( "$1" < 0 )) || (( "$2" < 0 )) || (( "$1" > 30 )) || (( "$2" > 20 )); then
 doerror "Rack or Lab is out of range"
fi

#Check if "Rack" is a number by comparing them with math functions
if [ $1 -eq $1 2> /dev/null ]; then
 rack="$1"
else
doerror "Rack is not an integer"
fi;

#Check if "Lab" is a number by comparing them with math functions
if [ $2 -eq $2 2> /dev/null ]; then
 lab="$2"
 echo "Do Nothing" >/dev/null
else
  doerror "Lab is not an integer"
fi;

#Check if IOS directory is valid
if [ ! -d $iosdir ]; then
 doerror "IOS directory is not valid"
fi

#Check if Dynamips working directory is valid
if [ ! -d $workingdir ]; then
 doerror "Working directory $workingdir is not valid"
fi

#Check if IOS 3640 image is valid and readable
if [ ! -r "$iosdir/$ios3640" ]; then
 doerror "IOS Filename $iosdir/$ios3640 does not exist"
fi

labfiles=""
#Check if lab files exist
for config in r1 r2 r3 r4 r5 r6 sw1 sw2 sw3 sw4
do
  labfiles="$labfiles$config config: $configroot/RSRack$rack/lab$lab/$config.txt\n"
  if [ ! -r "$configroot/RSRack$rack/lab$lab/$config.txt" ]; then
    doerror "Configuration file $configroot/RSRack$rack/lab$lab/$config.txt does not exist"
  fi
done

#Backbone routers are in a different location
for config in bb1 bb2 bb3
do
  bbfiles="$bbfiles$config config: $configroot/RSRack$rack/bb/$config.txt\n"
  if [ ! -r "$configroot/RSRack$rack/bb/$config.txt" ]; then
    doerror "Configuration file $configroot/RSRack$rack/$config.txt does not exist"
  fi
done

#All checks passed - Provide some diagnostic output
echo "All checks passed! Dynagen will start an IEWB lab on configuration RSRack$rack\lab$lab"
echo -e $labfiles
echo -e $bbfiles

echo "Deleting old nvram/flash/etc files for new lab usage"

echo Creating new folder structure
mkdir -p $newdir 2>/dev/null

echo "Correcting .txt configurations"
echo $"Routers 1-6"
sed "
s#Serial0#Serial1#g
s#^hostname .*R1#hostname R1-RSRack${rack}Lab${lab}#g
" $configroot/RSRack$rack/lab$lab/r1.txt >$newdir/r1.txt
sed "
s#Serial0#Serial1#g
s#^hostname .*R2#hostname R2-RSRack${rack}Lab${lab}#g
" $configroot/RSRack$rack/lab$lab/r2.txt >$newdir/r2.txt

sed "
s#Ethernet0/0#FastEthernet2/0#g
s#Ethernet0/1#FastEthernet3/0#g
s#^hostname .*R3#hostname R3-RSRack${rack}Lab${lab}#g
" $configroot/RSRack$rack/lab$lab/r3.txt >$newdir/r3.txt

sed "
s/Serial0/Serial1/g
s#Ethernet0/0#FastEthernet2/0#g
s#Ethernet0/1#FastEthernet3/0#g
s#^hostname .*R4#hostname R4-RSRack${rack}Lab${lab}#g
" $configroot/RSRack$rack/lab$lab/r4.txt >$newdir/r4.txt
sed "
s/Serial0/Serial1/g
s#Ethernet0/0#FastEthernet2/0#g
s#Ethernet0/1#FastEthernet3/0#g
s#^hostname .*R5#hostname R5-RSRack${rack}Lab${lab}#g
" $configroot/RSRack$rack/lab$lab/r5.txt >$newdir/r5.txt
sed "
s#Serial0#Serial1#g
s#FastEthernet0/0#FastEthernet2/0#g
s#FastEthernet0/1#FastEthernet3/0#g
s#^hostname .*R6#hostname R6-RSRack${rack}Lab${lab}#g
" $configroot/RSRack$rack/lab$lab/r6.txt >$newdir/r6.txt

echo Fixing SW1-4
sed "
s#FastEthernet0/16\(.\|\n\|\r\|\ \)#FastEthernet1/6\1#g
s#FastEthernet0/17\(.\|\n\|\r\|\ \)#FastEthernet1/7\1#g
s#FastEthernet0/18\(.\|\n\|\r\|\ \)#FastEthernet1/8\1#g
s#FastEthernet0/19\(.\|\n\|\r\|\ \)#FastEthernet1/9\1#g
s#FastEthernet0/20\(.\|\n\|\r\|\ \)#FastEthernet1/10\1#g
s#FastEthernet0/21\(.\|\n\|\r\|\ \)#FastEthernet1/11\1#g
s#FastEthernet0/22\(.\|\n\|\r\|\ \)#FastEthernet1/12\1#g
s#FastEthernet0/23\(.\|\n\|\r\|\ \)#FastEthernet1/13\1#g
s#FastEthernet0/24\(.\|\n\|\r\|\ \)#FastEthernet1/14\1#g
s#^hostname .*SW1#hostname SW1-RSRack${rack}Lab${lab}#g
" $configroot/RSRack$rack/lab$lab/sw1.txt >$newdir/sw1.txt

sed "
s#FastEthernet0/16\(.\|\n\|\r\|\ \)#FastEthernet1/6\1#g
s#FastEthernet0/17\(.\|\n\|\r\|\ \)#FastEthernet1/7\1#g
s#FastEthernet0/18\(.\|\n\|\r\|\ \)#FastEthernet1/8\1#g
s#FastEthernet0/19\(.\|\n\|\r\|\ \)#FastEthernet1/9\1#g
s#FastEthernet0/20\(.\|\n\|\r\|\ \)#FastEthernet1/10\1#g
s#FastEthernet0/21\(.\|\n\|\r\|\ \)#FastEthernet1/11\1#g
s#FastEthernet0/22\(.\|\n\|\r\|\ \)#FastEthernet1/12\1#g
s#FastEthernet0/23\(.\|\n\|\r\|\ \)#FastEthernet1/13\1#g
s#FastEthernet0/24\(.\|\n\|\r\|\ \)#FastEthernet1/14\1#g
s#^hostname .*SW2#hostname SW2-RSRack${rack}Lab${lab}#g
" $configroot/RSRack$rack/lab$lab/sw2.txt >$newdir/sw2.txt
sed "
s#FastEthernet0/16\(.\|\n\|\r\|\ \)#FastEthernet1/6\1#g
s#FastEthernet0/17\(.\|\n\|\r\|\ \)#FastEthernet1/7\1#g
s#FastEthernet0/18\(.\|\n\|\r\|\ \)#FastEthernet1/8\1#g
s#FastEthernet0/19\(.\|\n\|\r\|\ \)#FastEthernet1/9\1#g
s#FastEthernet0/20\(.\|\n\|\r\|\ \)#FastEthernet1/10\1#g
s#FastEthernet0/21\(.\|\n\|\r\|\ \)#FastEthernet1/11\1#g
s#FastEthernet0/22\(.\|\n\|\r\|\ \)#FastEthernet1/12\1#g
s#FastEthernet0/23\(.\|\n\|\r\|\ \)#FastEthernet1/13\1#g
s#FastEthernet0/24\(.\|\n\|\r\|\ \)#FastEthernet1/14\1#g
s#^hostname .*SW3#hostname SW3-RSRack${rack}Lab${lab}#g
" $configroot/RSRack$rack/lab$lab/sw3.txt >$newdir/sw3.txt
sed "
s#FastEthernet0/16\(.\|\n\|\r\|\ \)#FastEthernet1/6\1#g
s#FastEthernet0/17\(.\|\n\|\r\|\ \)#FastEthernet1/7\1#g
s#FastEthernet0/18\(.\|\n\|\r\|\ \)#FastEthernet1/8\1#g
s#FastEthernet0/19\(.\|\n\|\r\|\ \)#FastEthernet1/9\1#g
s#FastEthernet0/20\(.\|\n\|\r\|\ \)#FastEthernet1/10\1#g
s#FastEthernet0/21\(.\|\n\|\r\|\ \)#FastEthernet1/11\1#g
s#FastEthernet0/22\(.\|\n\|\r\|\ \)#FastEthernet1/12\1#g
s#FastEthernet0/23\(.\|\n\|\r\|\ \)#FastEthernet1/13\1#g
s#FastEthernet0/24\(.\|\n\|\r\|\ \)#FastEthernet1/14\1#g
s#^hostname .*SW4#hostname SW4-RSRack${rack}Lab${lab}#g
" $configroot/RSRack$rack/lab$lab/sw4.txt >$newdir/sw4.txt

echo Fixing backbone routers BB1 is FRSW
#Backbone routers
sed "
s#Serial0\(.\|\n\|\r\|\ \)#Serial0/0\1#g
s#Serial1\(.\|\n\|\r\|\ \)#Serial0/1\1#g
s#Serial2\(.\|\n\|\r\|\ \)#Serial0/2\1#g
s#Serial3\(.\|\n\|\r\|\ \)#Serial0/3\1#g
s#Serial4\(.\|\n\|\r\|\ \)#Serial1/0\1#g
s#Serial5\(.\|\n\|\r\|\ \)#Serial1/1\1#g
s#Serial6\(.\|\n\|\r\|\ \)#Serial1/2\1#g
s#Serial7\(.\|\n\|\r\|\ \)#Serial1/3\1#g
s#Serial8\(.\|\n\|\r\|\ \)#Serial2/0\1#g
s#Serial9\(.\|\n\|\r\|\ \)#Serial2/1\1#g
s#^hostname .*BB1#hostname BB1-RSRack${rack}Lab${lab}#g
" $configroot/RSRack$rack/bb/bb1.txt >$newdir/bb1.txt

sed "
s#Ethernet0\(.\|\n\|\r\|\ \)#FastEthernet0/0\1#g
s#^hostname .*BB2#hostname BB2-RSRack${rack}Lab${lab}#g
" $configroot/RSRack$rack/bb/bb2.txt >$newdir/bb2.txt
sed "
s#Ethernet0\(.\|\n\|\r\|\ \)#FastEthernet0/0\1#g
s#Serial0\(.\|\n\|\r\|\ \)#Serial1/0\1#g
s#^hostname .*BB3#hostname BB3-RSRack${rack}Lab${lab}#g
" $configroot/RSRack$rack/bb/bb3.txt >$newdir/bb3.txt

#dynagen $configroot/RSRack$rack-$lab.net

[edit] Dynagen .net file

ielab.net

#
# Internetwork Expert Routing & Switching topology Version 4.0 mappings for dynamips/dynagen
#  by: Brian McGahan, CCIE #8593
#  bmcgahan@internetworkexpert.com
#  Edited for Dynamips by JP Senior
#  jp.senior@gmail.com
#
# For more information:
#  Dynamips: http://www.ipflow.utc.fr/index.php/Cisco_7200_Simulator
#  Dynagen:  http://dyna-gen.sourceforge.net/
#  Hacki?s Forum: http://hacki.at/7200emu/index.php
#  Internetwork Expert's Forum: http://forum.internetworkexpert.com
#
##############################################################################################

##################################################
#
# Define global router parameters for instance 1
#
##################################################

autostart=false
[localhost:7200]

workingdir = /home/sartan/labs/internetworkexpert/working

[[3640]]
 image = /opt/ios/c3640-ik9o3s-mz.124-21.extracted.bin
 ram = 128
 disk0 = 0
 disk1 = 0
 mmap = true

 [[Router R1]]
  model = 3640
  console = 2001
  autostart = false
  slot0 = NM-1FE-TX
  slot1 = NM-4T
  f0/0 = SW1 f0/1
  s1/0 = BB1 s0/0
  s1/1 = R3 s1/2
  #s1/2
  #s1/3
  cnfg = /home/sartan/labs/internetworkexpert/new/r1.txt

 [[Router R2]]
  model = 3640
  console = 2002
  autostart = false
  slot0 = NM-1FE-TX
  slot1 = NM-4T
  f0/0 = SW2 f0/2
  s1/0 = BB1 s0/1
  s1/1 = R3 s1/3
  #s1/2
  #s1/3
  cnfg = /home/sartan/labs/internetworkexpert/new/r2.txt

 [[Router R3]]
  model = 3640
  console = 2003
  autostart = false
  slot2 = NM-1FE-TX
  slot3 = NM-1FE-TX
  slot1 = NM-4T
  f2/0 = SW1 f0/3
  f3/0 = SW3 f0/3
  #e0/2
  #e0/3
  s1/0 = BB1 s0/2
  s1/1 = BB1 s0/3
  s1/2 = R1 s1/1
  s1/3 = R2 s1/1
  cnfg = /home/sartan/labs/internetworkexpert/new/r3.txt

 [[Router R4]]
  model = 3640
  console = 2004
  autostart = false
  slot2 = NM-1FE-TX
  slot3 = NM-1FE-TX
  slot1 = NM-4T
  f2/0 = SW2 f0/4
  f3/0 = SW4 f0/4
  #e0/2
  #e0/3
  s1/0 = BB1 s1/0
  s1/1 = R5 s1/1
  #s1/2
  #s1/3
  cnfg = /home/sartan/labs/internetworkexpert/new/r4.txt

 [[Router R5]]
  model = 3640
  console = 2005
  autostart = false
  slot1 = NM-4T
  slot2 = NM-1FE-TX
  slot3 = NM-1FE-TX
  f2/0 = SW1 f0/5
  f3/0 = SW3 f0/5
  #e0/2
  #e0/3
  s1/0 = BB1 s1/1
  s1/1 = R4 s1/1
  #s1/2
  #s1/3
  cnfg = /home/sartan/labs/internetworkexpert/new/r5.txt

 [[Router R6]]
  model = 3640
  console = 2006
  autostart = false
  slot1 = NM-4T
  slot2 = NM-1FE-TX
  slot3 = NM-1FE-TX
  s1/0 = BB1 s1/2
  #s0/1
  #s0/2
  #s0/3
  f2/0 = SW2 f0/6
  f3/0 = SW4 f0/6
  cnfg = /home/sartan/labs/internetworkexpert/new/r6.txt

 [[Router SW1]]
  model = 3640
  console = 2007
  autostart = false
  slot0 = NM-16ESW
  slot1 = NM-16ESW
  cnfg = /home/sartan/labs/internetworkexpert/new/sw1.txt
  f0/1 = R1 Fa0/0
  #f0/2 =
  f0/3 = R3 f2/0
  #f0/4 =
  f0/5 = R5 f2/0
  #f0/6 =
  #f0/7 =
  #f0/8 =
  #f0/9 =
  #f0/10 =
  #f0/11 =
  #f0/12 =
  f0/13 = SW2 f0/13
  f0/14 = SW2 f0/14
  f0/15 = SW2 f0/15
  f1/6 = SW3 F0/13
  f1/7 = SW3 F0/14
  f1/8 = SW3 F0/15
  f1/9 = SW4 F0/13
  f1/10  = SW4 f0/14
  f1/11 = SW4 f0/15
  #f1/12
  #f1/13
  #f1/14
  #f1/15


[localhost:7201]

workingdir = /home/sartan/labs/internetworkexpert/working

[[3640]]
 image = /opt/ios/c3640-ik9o3s-mz.124-21.extracted.bin
 ram = 128
 disk0 = 0
 disk1 = 0
 mmap = true
##################################################
#
# Define global router parameters for instance 2
#
##################################################
 [[Router SW2]]
  model = 3640
  console = 2008
  autostart = false
  slot0 = NM-16ESW
  slot1 = NM-16ESW
  cnfg = /home/sartan/labs/internetworkexpert/new/sw2.txt
  #f0/0
  #f0/1
  f0/2 = R2 f0/0
  #f0/3
  f0/4 = R4 f2/0
  #f0/5
  f0/6 = R6 f2/0
  #f0/7
  #f0/8
  #f0/9
  #f0/10
  #f0/11
  #f0/12
  f0/13 = SW1 f0/13
  f0/14 = SW1 f0/14
  f0/15 = SW1 f0/15
  f1/6 = SW3 f1/6
  f1/7 = SW3 f1/7
  f1/8 = SW3 f1/8
  f1/9 = SW4 f1/6
  f1/10 = SW4 f1/7
  f1/11 = SW4 f1/8
  #f1/12
  #f1/13
  f1/14 = BB2 f0/0
  #f1/15


 [[Router SW3]]
  model = 3640
  console = 2009
  autostart = false
  slot0 = NM-16ESW
  slot1 = NM-16ESW
  cnfg = /home/sartan/labs/internetworkexpert/new/sw3.txt
  #f0/0
  #f0/1
  #f0/2
  f0/3 = R3 f3/0
  #f0/4
  f0/5 = R5 f3/0
  #f0/6
  #f0/7
  #f0/8
  #f0/9
  #f0/10
  #f0/11
  #f0/12
  f0/13 = SW1 f1/6
  f0/14 = SW1 f1/7
  f0/15 = SW1 f1/8
  f1/6 = SW2 f1/6
  f1/7 = SW2 f1/7
  f1/8 = SW2 f1/8
  f1/9 = SW4 f1/9
  f1/10 = SW4 f1/10
  f1/11 = SW4 f1/11
  #f1/12
  #f1/13
  f1/14 = BB3 f0/0
  #f1/15



 [[Router SW4]]
  model = 3640
  console = 2010
  autostart = false
  slot0 = NM-16ESW
  slot1 = NM-16ESW
  cnfg = /home/sartan/labs/internetworkexpert/new/sw4.txt
  #f0/0
  #f0/1
  #f0/2
  #f0/3
  f0/4 = R4 f3/0
  #f0/5
  f0/6 = R6 f3/0
  #f0/7
  #f0/8
  #f0/9
  #f0/10
  #f0/11
  #f0/12
  f0/13 = SW1 f1/9
  f0/14 = SW1 f1/10
  f0/15 = SW1 f1/11
  f1/6 = SW2 f1/9
  f1/7 = SW2 f1/10
  f1/8 = SW2 f1/11
  f1/9 = SW3 f1/9
  f1/10 = SW3 f1/10
  f1/11 = SW3 f1/11
  #f1/12
  #f1/13
  #f1/14
  #f1/15


 [[Router BB1]]
  model = 3640
  console = 2011
  autostart = false
  slot0 = NM-4T
  slot1 = NM-4T
  slot2 = NM-4T
  s0/0 = R1 s1/0
  s0/1 = R2 s1/0
  s0/2 = R3 s1/0
  s0/3 = R3 s1/1
  s1/0 = R4 s1/0
  s1/1 = R5 s1/0
  s1/2 = R6 s1/0
  #s1/3 = None
  #s2/0 = None
  s2/1 = BB3 s1/0
  cnfg = /home/sartan/labs/internetworkexpert/new/bb1.txt

 [[Router BB2]]
  model = 3640
  console = 2012
  autostart = false
  slot0 = NM-1FE-TX
  f0/0 = SW2 f1/14
  cnfg = /home/sartan/labs/internetworkexpert/new/bb2.txt

 [[Router BB3]]
  model = 3640
  console = 2013
  autostart = false
  slot0 = NM-1FE-TX
  slot1 = NM-4T
  f0/0 = SW3 f1/14
  s1/0 = BB1 s2/1
  #s1/1
  #s1/2
  #s1/3
  cnfg = /home/sartan/labs/internetworkexpert/new/bb3.txt

end

Personal tools