Sunday, April 15, 2012

CCIE Security vLab: Dynamips Server Preparation



·         It is assumed that Dynamips has been installed correctly. Use the following Script to create the Dynamips Instances:

SCRIPT NAME: START_DYNAMIPS
vi START_DYNAMIPS
./dynamips -H 7200 &
./dynamips -H 7201 &
./dynamips -H 7202 &
./dynamips -H 7203 &
The above commands will search for “dynamips” binary in the current directory and start 4 instances of dynamips listening over 7200 to 7203 ports respectively. If dynamips is installed in another directory then current then use that directory, usually its: /usr/local/bin/dynamips

The dynagen topology file (.NET) should look like:
 
autostart = False
ghostios = True
mmap = false
#################################################################################
[centos:7200]
 udp = 10000

 workingdir = /usr/ccie/Working

 [[3725]]
  image = /usr/ccie/base/c3725-adventerprisek9-mz.124-15.T.bin
  ram = 192
  idlepc = 0x60bf9098
  mmap = false
  disk0 = 32
#################################################################################
[[Router R1]]
  model = 3725
  console = 2001
  f0/0 = SW1 f1/1
  s1/0 = FRSW 0

 [[Router R2]]
  model = 3725
  console = 2002
  f0/0 = SW1 f1/2
  s1/0 = FRSW 1

 [[Router R3]]
  model = 3725
  console = 2003
  f0/0 = SW1 f1/3
  f0/1 = SW2 f1/3
  s1/0 = FRSW 2
  s1/1 = FRSW 3
  s1/2 = R1 s1/1
  s1/3 = R2 s1/1
#################################################################################
[centos:7201]
 udp = 11000
 workingdir = /usr/ccie/Working

 [[3725]]
  image = /usr/ccie/base/c3725-adventerprisek9-mz.124-15.T.ext.BIN
  ram = 192
  idlepc = 0x60bf9098
  mmap = false
   disk0 = 32
#################################################################################
 [[Router R4]]
  model = 3725
  console = 2004
  f0/0 = SW1 f1/4
  f0/1 = SW2 f1/4
  s1/0 = FRSW 4
  s1/1 = R5 s1/1

 [[Router R5]]
  model = 3725
  console = 2005
  f0/0 = SW1 f1/5
  f0/1 = SW2 f1/5
  s1/0 = FRSW 5

 [[Router R6]]
  model = 3725
  console = 2006
  f0/0 = SW1 f1/6
  f0/1 = SW2 f1/6
  s1/0 = FRSW 6
#################################################################################
[centos:7202]
 udp = 12000
 workingdir = /usr/ccie/Working

 [[3725]]
  image = /usr/ccie/base/c3725-adventerprisek9-mz.124-15.T.ext.BIN
  ram = 192
  idlepc = 0x60bf9098
  mmap = false
  disk0 = 32
##################################################################################
 [[Router SW1]]
  model = 3725
  console = 2007
  slot1 = NM-16ESW
  f1/0 = SW2 f1/0

  # qemu-vlan9, IPS ma0/0
  f1/10 = NIO_udp:20009:127.0.0.1:30009

  # VMNet8, Windows XP
  f1/11 = NIO_gen_eth:eth1

  # qemu-vlan1, ASA1 e0/1, Mgmt
  f1/12 = NIO_udp:20001:127.0.0.1:30001

  # qemu-vlan2, ASA1 e0/1
  f1/13 = NIO_udp:20002:127.0.0.1:30002

  # qemu-vlan3, ASA1 e0/2
  f1/14 = NIO_udp:20003:127.0.0.1:30008

  # qemu-vlan4, ASA1 e0/3, mgmt
  f1/15 = NIO_udp:20004:127.0.0.1:30006

 [[Router SW2]]
  model = 3725
  console = 2008
  slot1 = NM-16ESW

  # qemu-vlan10, IPS g0/0
  f1/10 = NIO_udp:20010:127.0.0.1:30010

  # VMNET1, Cisco ACS Server
  f1/11 = NIO_gen_eth:eth0

  # qemu-vlan5, ASA2 e0/0
  f1/12 = NIO_udp:20005:127.0.0.1:30005

  # qemu-vlan6, ASA2 e0/1
  f1/13 = NIO_udp:20006:127.0.0.1:30006

  # qemu-vlan7, ASA2 e0/2
  f1/14 = NIO_udp:20007:127.0.0.1:30007
 
  # qemu-vlan8, ASA2 e0/3, mgmt
  f1/15 = NIO_udp:20008:127.0.0.1:30008

#################################################################################
[centos:7203]
 udp = 13000
 workingdir = /usr/ccie/Working

 [[3725]]
  image = /usr/ccie/base/c3725-adventerprisek9-mz.124-15.T.ext.BIN
  ram = 192
  idlepc = 0x60bf9098
  mmap = false
   disk0 = 32
#################################################################################
 [[Router BB1]]
  model = 3725
  console = 2012
  s1/0 = FRSW 7
  s1/1 = BB3 s1/1

 [[Router BB2]]
  model = 3725
  console = 2013
  f0/0 = SW2 f1/7

 [[Router BB3]]
  model = 3725
  console = 2014
  f0/0 = SW1 f1/7
#################################################################################
 [[FRSW FRSW]]

  0:102 = 1:201
  0:103 = 2:301
  0:113 = 3:311
  0:104 = 4:401
  0:105 = 5:501
  1:203 = 2:302
  1:213 = 3:312
  1:204 = 4:402
  1:205 = 5:502
  2:304 = 4:403
  2:305 = 5:503
  3:314 = 4:413
  3:315 = 5:513
  4:405 = 5:504
  6:51 = 7:51
  6:100 = 7:100
  6:101 = 7:101
  6:201 = 7:201
  6:301 = 7:301
  6:401 = 7:401
#################################################################################
 

No comments: