Dynamips w/ real switches

From Internetworkpro

Jump to: navigation, search
Configuration.png 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
Blank.png 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

The basic concept is this:

Each router goes to a port on a dynamips switch.

 [[Router R1]]
  F0/0 = SW1 1

Then, the switch sends that traffic to the eth1 port of the PC

 [[ETHSW SW1]]
 1 = access 101
 15 = dot1q 1 NIO_gen_eth:eth1

Lastly, I have the eth1 port physically plugged into an HP switch that takes the dot1q
trunk and splits it up into 14 separate access ports to be plugged into the Cisco switches.


If you want to be really cool, then setup screen as Using_GNU_Screen_w/_dynamips/dynagen and tell them you came up with the idea yourself.

Here's the full config I used for my ccie lab. Note, it's internetworkexpert.com's config + my additions.


###############################################################################
#
# Internetwork Expert Routing & Switching topology 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/
#  Hackis Forum: http://hacki.at/7200emu/index.php
#  Internetwork Expert's Forum: http://forum.internetworkexpert.com
#
#  EDITED BY WYATT SULLIVAN FOR THE EXPRESS PURPOSES OF ADDING 2 CISCO SWITCHES
#  INSTEAD OF USING DYNAMIPS SWITCH MODULES
#
###############################################################################





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

autostart=false
[localhost:7200]

workingdir = /home/cisco/Desktop/internetworkexpert/working

[[3640]]
 #
 # Specify 3640 IOS image on Windows here:
 #image = C:\Program Files\Dynamips\images\c3640-jk9o3s-mz.123-14.T7.extracted.bin
 #
 # Specify 3640 IOS image on Linux here:
image = /ios/c3640-jk9o3s-mz.123-14.T7.extracted.bin
 #
 ram = 128
 disk0 = 0
 disk1 = 0
 # Choose an idlepc value from the below
  idlepc = 0x60530870
 # idlepc = 0x60530890
 # idlepc = 0x60530a58
 # idlepc = 0x60530abc
 # idlepc = 0x605310c4
 # idlepc = 0x605e92e8
 # idlepc = 0x605e9364
 # idlepc = 0x60531394
 # idlepc = 0x605313d0
 # idlepc = 0x605313ec
 mmap = true
 ghostios = true

###########################
#
# Define router instances
#
###########################

 [[Router R1]]
  model = 3640
  autostart = false
  slot0 = NM-1FE-TX
  slot1 = NM-4T
  F0/0 = SW1 1
  S1/0 = FRSW 1
  cnfg = /home/cisco/Desktop/internetworkexpert/initial.configs/R1.initial.config.txt

 [[Router R2]]
  model = 3640
  autostart = false
  slot0 = NM-1FE-TX
  slot1 = NM-4T
  F0/0 = SW1 2
  S1/0 = FRSW 2
  cnfg = /home/cisco/Desktop/internetworkexpert/initial.configs/R2.initial.config.txt

 [[Router R3]]
  model = 3640
  autostart = false
  slot0 = NM-4E
  slot1 = NM-4T
  S1/0 = FRSW 3
  S1/1 = FRSW 13
  S1/2 = R1 S1/1
  S1/3 = R2 S1/1
  E0/0 = SW1 3
  E0/1 = SW1 9
  cnfg = /home/cisco/Desktop/internetworkexpert/initial.configs/R3.initial.config.txt

 [[Router R4]]
  model = 3640
  autostart = false
  slot0 = NM-4E
  slot1 = NM-4T
  E0/0 = SW1 4
  E0/1 = SW1 10
  S1/0 = FRSW 4
  S1/1 = R5 S1/1
  cnfg = /home/cisco/Desktop/internetworkexpert/initial.configs/R4.initial.config.txt

 [[Router R5]]
  model = 3640
  autostart = false
  slot0 = NM-4E
  slot1 = NM-4T
  E0/0 = SW1 5
  E0/1 = SW1 11
  S1/0 = FRSW 5
  cnfg = /home/cisco/Desktop/internetworkexpert/initial.configs/R5.initial.config.txt

 [[Router R6]]
  model = 3640
  autostart = false
  slot0 = NM-4E
  slot1 = NM-4T
  E0/0 = SW1 6
  E0/1 = SW1 12
  S1/0 = FRSW 6
  cnfg = /home/cisco/Desktop/internetworkexpert/initial.configs/R6.initial.config.txt

 [[ETHSW SW1]]
 1 = access 101
 2 = access 102
 3 = access 103
 4 = access 104
 5 = access 105
 6 = access 106
 7 = access 201
 8 = access 202
 9 = access 203
 10 = access 204
 11 = access 205
 12 = access 206
 13 = access 224
 14 = access 124
 15 = dot1q 1 NIO_gen_eth:eth1


##################################################
#
# Define global router parameters for instance 2
#
##################################################

[localhost:7201] # Talk to the 2nd dynamips process on port 7201
 udp = 11000     # Change the base udp port to 11000 (the default is 10000)

 workingdir = /home/cisco/Desktop/internetworkexpert/working

 [[3640]]
 #
 # Specify 3640 IOS image on Windows here:
 #image = C:\Program Files\Dynamips\images\c3640-jk9o3s-mz.123-14.T7.extracted.bin
 #
 # Specify 3640 IOS image on Linux here:
image = /ios/c3640-jk9o3s-mz.123-14.T7.extracted.bin
 #
 ram = 128
 disk0 = 0
 disk1 = 0
 # Choose an idlepc value from the below
  idlepc = 0x60530870
 # idlepc = 0x60530890
 # idlepc = 0x60530a58
 # idlepc = 0x60530abc
 # idlepc = 0x605310c4
 # idlepc = 0x605e92e8
 # idlepc = 0x605e9364
 # idlepc = 0x60531394
 # idlepc = 0x605313d0
 # idlepc = 0x605313ec
 mmap = true
 ghostios = true


###########################
#
# Define router instances
#
###########################


 [[Router BB1]]
  model = 3640
  console = 2008
  autostart = false
  slot1 = NM-4T
  S1/0 = BB3 S1/0
  S1/1 = FRSW 21
  cnfg = /home/cisco/Desktop/internetworkexpert/initial.configs/BB1.initial.config.txt

 [[Router BB2]]
  model = 3640
  console = 2009
  autostart = false
  slot0 = NM-4E
  E0/0 = SW1 13
  cnfg = /home/cisco/Desktop/internetworkexpert/initial.configs/BB2.initial.config.txt

 [[Router BB3]]
  model = 3640
  console = 2010
  autostart = false
  slot0 = NM-4E
  slot1 = NM-4T
  E0/0 = SW1 14
  cnfg = /home/cisco/Desktop/internetworkexpert/initial.configs/BB3.initial.config.txt

 [[FRSW FRSW]]

  # R1 to FRSW
  1:102 = 2:201
  1:103 = 3:301
  1:113 = 13:311
  1:104 = 4:401
  1:105 = 5:501

  # R2 to FRSW
  2:203 = 3:302
  2:213 = 13:312
  2:204 = 4:402
  2:205 = 5:502

  # R3 to FRSW
  3:304 = 4:403
  3:305 = 5:503
  13:314 = 4:413
  13:315 = 5:513

  # R4 to FRSW
  4:405 = 5:504

  # R6 to FRSW
  6:51 = 21:51
  6:100 = 21:100
  6:101 = 21:101
  6:201 = 21:201
  6:301 = 21:301
  6:401 = 21:401

--Loceur 13:53, 19 July 2007 (CDT)

Personal tools
Namespaces
Variants
Actions
Navigation
Categories
Toolbox