IEWB-Dynamips-Sandbox

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

Contents

[edit] Overview

Sometimes it is nice to have a preconfigured lab for hostnames, passwords, and interface descriptions. This configuration will work very well with the IEWB volume 1 toplogy.

See also IEWB-Dynamips

[edit] Diagram

Image:CCIE_RS_Dynamips.png

[edit] Configurations

[edit] IOS Configurations

[edit] r1.txt

! Sandbox
! R1
!
hostname R1-Sandbox
!
enable password cisco
!
ip subnet-zero
no ip domain-lookup
!
interface Serial1/0
 description To BB1 S0/0 (DCE)
 no ip address
 no shutdown
!
interface Serial1/1
 description To R3 S1/2 (DCE)
 no ip address
 no shutdown
!
interface FastEthernet0/0
 description To SW1 Fa0/1
 no ip address
 no shutdown
!
ip classless
!
line con 0
 exec-timeout 0 0
 logging synchronous
 privilege level 15
line aux 0
 exec-timeout 0 0
 privilege level 15
line vty 0 4
 password cisco
 login
!
end
!

[edit] r2.txt

! Sandbox
! R1
!
hostname R2-Sandbox
!
enable password cisco
!
ip subnet-zero
no ip domain-lookup
!
interface Serial1/0
 no shutdown
 no ip address
 description To BB1 S0/1 (DCE)
!
interface Serial1/1
 no shutdown
 no ip address
 description To R3 S1/3 (DCE)
!
interface FastEthernet0/0
 no shutdown
 no ip address
 description To SW2 Fa0/2
!
ip classless
!
line con 0
 exec-timeout 0 0
 logging synchronous
 privilege level 15
line aux 0
 exec-timeout 0 0
 privilege level 15
line vty 0 4
 password cisco
 login
!
end
!

[edit] r3.txt

! Sandbox
! R3
!
hostname R3-Sandbox
!
enable password cisco
!
ip subnet-zero
no ip domain-lookup
!
interface Serial1/0
 no shutdown
 no ip address
 description To BB1 S0/2
!
interface Serial1/1
 no shutdown
 no ip address
 description To BB1 S0/3
!
interface Serial1/2
 no shut
 no ip address
 clockrate 64000
 description To R1 S1/1
!
interface Serial1/3
 no shutdown
 no ip address
 clockrate 64000
 description To R2 S1/1
!
interface FastEthernet2/0
 no shutdown
 no ip address
 description To SW1 Fa0/3
!
interface FastEthernet3/0
 no shutdown
 no ip address
 description To SW3 Fa0/3
!
ip classless
!
line con 0
 exec-timeout 0 0
 logging synchronous
 privilege level 15
line aux 0
 exec-timeout 0 0
 privilege level 15
line vty 0 4
 password cisco
 login
!
end
!

[edit] r4.txt

! Sandbox
! R4
!
hostname R4-Sandbox
!
enable password cisco
!
ip subnet-zero
no ip domain-lookup
!
interface Serial1/0
 no shutdown
 no ip address
 description To BB1 S1/0 (DCE)
!
interface Serial1/1
 no shutdown
 no ip address
 description To R5 S1/1 (DCE)
!
interface FastEthernet2/0
 no shutdown
 no ip address
 description To SW2 Fa0/4
!
interface FastEthernet3/0
 no shutdown
 no ip address
 description To SW4 Fa0/4
!
ip classless
!
line con 0
 exec-timeout 0 0
 logging synchronous
 privilege level 15
line aux 0
 exec-timeout 0 0
 privilege level 15
line vty 0 4
 password cisco
 login
!
end
!

[edit] r5.txt

! Sandbox
! R5
!
hostname R5-Sandbox
!
enable password cisco
!
ip subnet-zero
no ip domain-lookup
!
interface Serial1/0
 no shutdown
 no ip address
 description To BB1 S1/1 (DCE)
!
interface Serial1/1
 no shutdown
 no ip address
 clockrate 64000
 description To R4 S1/1 (DTE)
!
interface FastEthernet2/0
 no shutdown
 no ip address
 description To SW1 Fa0/5
!
interface FastEthernet3/0
 no shutdown
 no ip address
 description To SW3 Fa0/5
!
ip classless
!
line con 0
 exec-timeout 0 0
 logging synchronous
 privilege level 15
line aux 0
 exec-timeout 0 0
 privilege level 15
line vty 0 4
 password cisco
 login
!
end
!

[edit] r6.txt

! Sandbox
! R6
!
hostname R6-Sandbox
!
ip subnet-zero
no ip domain-lookup
!
interface Serial1/0
 no shutdown
 no ip address
 description To BB1 S1/2 (DCE)
!
interface FastEthernet2/0
 no shutdown
 no ip address
 description To SW2 Fa0/6
!
interface FastEthernet3/0
 no shutdown
 no ip address
 description To SW4 Fa0/6
!
ip classless
!
line con 0
 exec-timeout 0 0
 logging synchronous
 privilege level 15
line aux 0
 exec-timeout 0 0
 privilege level 15
line vty 0 4
 password cisco
 login
!
end
!

[edit] bb1.txt

! Sandbox
! BB1
!
hostname BB1-Sandbox
!
enable password cisco
!
ip subnet-zero
no ip domain-lookup
!
interface Serial0/0
 no shutdown
 no ip address
 clockrate 64000
 description To R1 S1/0 (DTE)
!
interface Serial0/1
 no shutdown
 no ip address
 clockrate 64000
 description To R2 S1/0 (DTE)
!
interface Serial0/2
 no shutdown
 no ip address
 clockrate 64000
 description To R3 S1/0 (DTE)
!
interface Serial0/3
 no shutdown
 no ip address
 clockrate 64000
 description to R3 S1/1 (DTE)
!
interface Serial1/0
 no shutdown
 no ip address
 clockrate 64000
 description To R4 S1/0 (DTE)
!
interface Serial1/1
 no shutdown
 no ip address
 clockrate 64000
 description To R5 S1/0 (DTE)
!
interface Serial1/2
 no shutdown
 no ip address
 clockrate 64000
 description To R6 S1/0 (DTE)
!
interface Serial2/1
 no shutdown
 no ip address
 clockrate 64000
 description To BB3 S1/0 (DTE)
!
ip classless
!
line con 0
 exec-timeout 0 0
 logging synchronous
 privilege level 15
line aux 0
 exec-timeout 0 0
 privilege level 15
line vty 0 4
 password cisco
 login
!
end
!

[edit] bb2.txt

! Sandbox
! BB2
!
hostname BB2-Sandbox
!
enable password cisco
!
ip subnet-zero
no ip domain-lookup
!
interface FastEthernet0/0
 no shutdown
 no ip address
 description To SW1 Fa1/14
!
ip classless
!
line con 0
 exec-timeout 0 0
 logging synchronous
 privilege level 15
line aux 0
 exec-timeout 0 0
 privilege level 15
line vty 0 4
 password cisco
 login
!
end
!

[edit] bb3.txt

! Sandbox
! BB3
!
hostname BB3-Sandbox
!
enable password cisco
ip subnet-zero
no ip domain-lookup
!
interface Serial1/0
 no shutdown
 no ip address
 description To BB1 S2/0
!

interface FastEthernet0/0
 no shutdown
 no ip address
 description To SW3 Fa1/14
!
ip classless
!
line con 0
 exec-timeout 0 0
 logging synchronous
 privilege level 15
line aux 0
 exec-timeout 0 0
 privilege level 15
line vty 0 4
 password cisco
 login
!
end
!

[edit] Dynagen .net configuration

############################################################################################
#
# Internetwork Expert Routing & Switching topology Version 4.0 mappings for dynamips/dynagen
#  by: Brian McGahan, CCIE #8593
#  bmcgahan@internetworkexpert.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/sandbox

[[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/sandbox/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/sandbox/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/sandbox/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/sandbox/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/sandbox/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/sandbox/r6.txt

 [[Router SW1]]
  model = 3640
  console = 2007
  autostart = false
  slot0 = NM-16ESW
  slot1 = NM-16ESW
  cnfg = /home/sartan/labs/internetworkexpert/sandbox/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/sandbox

[[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/sandbox/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/sandbox/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/sandbox/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/sandbox/bb1.txt

 [[Router BB2]]
  model = 3640
  console = 2012
  autostart = false
  slot0 = NM-1FE-TX
  f0/0 = SW2 f1/14
  cnfg = /home/sartan/labs/internetworkexpert/sandbox/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/sandbox/bb3.txt
Personal tools