在windows里使用,对原配置文件作了简单修改:
##############################################################################################
#
# Internetwork Expert Routing & Switching topology Version 4.0 mappings for dynamips/dynagen
# by: Brian McGahan, CCIE #8593
# bmcgahan@internetworkexpert.com
#
# For more information:
# Dynamips:
# Dynagen:
# Hacki抯 Forum:
# Internetwork Expert's Forum:
#
##############################################################################################
##################################################
#
# Define global router parameters for instance 1
#
##################################################
autostart = False
[localhost:7200]
workingdir = F:\LAB\RS4
[[3640]]
image = F:\LAB\c3640-telco-124-13.bin
ram = 64
disk0 = 0
disk1 = 0
idlepc = 0x6100bf2c
mmap = True
# ghostios = true
###########################
#
# Define router instances
#
###########################
[[Router R1]]
model = 3640
console = 2001
autostart = False
slot0 = NM-1FE-TX
slot1 = NM-4T
F0/0 = SW1 F0/1
S1/0 = FRSW 1
cnfg = F:\IEWB_v4_for_Dynagen\rs4\R1.cfg
[[Router R2]]
model = 3640
console = 2002
autostart = False
slot0 = NM-1FE-TX
slot1 = NM-4T
F0/0 = SW2 F0/2
S1/0 = FRSW 2
cnfg = F:\IEWB_v4_for_Dynagen\rs4\R2.cfg
[[Router R3]]
model = 3640
console = 2003
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 F0/3
E0/1 = SW3 F0/3
cnfg = F:\IEWB_v4_for_Dynagen\rs4\R3.cfg
[[Router R4]]
model = 3640
console = 2004
autostart = False
slot0 = NM-4E
slot1 = NM-4T
E0/0 = SW2 F0/4
E0/1 = SW4 F0/4
S1/0 = FRSW 4
S1/1 = R5 S1/1
cnfg = F:\IEWB_v4_for_Dynagen\rs4\R4.cfg
[[Router R5]]
model = 3640
console = 2005
autostart = False
slot0 = NM-4E
slot1 = NM-4T
E0/0 = SW1 F0/5
E0/1 = SW3 F0/5
S1/0 = FRSW 5
cnfg = F:\IEWB_v4_for_Dynagen\rs4\R5.cfg
[[Router R6]]
model = 3640
console = 2006
autostart = False
slot0 = NM-4E
slot1 = NM-4T
E0/0 = SW2 F0/6
E0/1 = SW4 F0/6
S1/0 = FRSW 6
cnfg = F:\IEWB_v4_for_Dynagen\rs4\R6.cfg
[[Router SW1]]
model = 3640
console = 2007
autostart = False
slot0 = NM-16ESW
slot1 = NM-16ESW
F0/13 = SW2 F0/13
F0/14 = SW2 F0/14
F0/15 = SW2 F0/15
F1/0 = SW3 F0/13
F1/1 = SW3 F0/14
F1/2 = SW3 F0/15
F1/3 = SW4 F0/13
F1/4 = SW4 F0/14
F1/5 = SW4 F0/15
cnfg = F:\IEWB_v4_for_Dynagen\rs4\SW1.cfg
##################################################
#
# 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 = F:\LAB\RS4
[[3640]]
image = F:\LAB\c3640-telco-124-13.bin
ram = 64
disk0 = 0
disk1 = 0
idlepc = 0x6100bf2c
mmap = True
# ghostios = true
###########################
#
# Define router instances
#
###########################
[[Router SW2]]
model = 3640
console = 2008
autostart = False
slot0 = NM-16ESW
slot1 = NM-16ESW
F1/0 = SW3 F1/0
F1/1 = SW3 F1/1
F1/2 = SW3 F1/2
F1/3 = SW4 F1/0
F1/4 = SW4 F1/1
F1/5 = SW4 F1/2
F1/8 = BB2 E0/0
cnfg = F:\IEWB_v4_for_Dynagen\rs4\SW2.cfg
[[Router SW3]]
model = 3640
console = 2009
autostart = False
slot0 = NM-16ESW
slot1 = NM-16ESW
F1/3 = SW4 F1/3
F1/4 = SW4 F1/4
F1/5 = SW4 F1/5
F1/8 = BB3 E0/0
cnfg = F:\IEWB_v4_for_Dynagen\rs4\SW3.cfg
[[Router SW4]]
model = 3640
console = 2010
autostart = False
slot0 = NM-16ESW
slot1 = NM-16ESW
cnfg = F:\IEWB_v4_for_Dynagen\rs4\SW4.cfg
[[Router BB1]]
model = 3640
console = 2011
autostart = False
slot1 = NM-4T
S1/0 = BB3 S1/0
S1/1 = FRSW 21
cnfg = F:\IEWB_v4_for_Dynagen\rs4\BB1.cfg
[[Router BB2]]
model = 3640
console = 2012
autostart = False
slot0 = NM-4E
#E0/0 = SW2 F1/0
cnfg = F:\IEWB_v4_for_Dynagen\rs4\BB2.cfg
[[Router BB3]]
model = 3640
console = 2013
autostart = False
slot0 = NM-4E
slot1 = NM-4T
#E0/0 = SW3 F1/0
cnfg = F:\IEWB_v4_for_Dynagen\rs4\BB3.cfg
[[Router TermServ]]
model = 3640
console = 2000
autostart = True
E0/0 = NIO_gen_eth:\Device\NPF_{1D0AB987-6689-4B46-8AF5-27395AD05B0B} #LoopBack interface in Windows XP
cnfg = F:\IEWB_v4_for_Dynagen\rs4\TermServ.cfg
[[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
使用多个dynamips server 实例.使用时请复制一份dynamips-start.cmd批处理文件,并将端口号改成7201,内容如下:
@echo off
rem Launch a local copy of dynamips
set dynamips=%CD%\dynamips.exe
cd %TEMP%
start /belownormal /B /wait "Dynamips" "%dynamips%" -H 7201
pause
由于原.net文件中直接带的一些设备的配置,倒是方便,不过没法读,所以我用dynagen导出后,再加到了上面的配置里面,请和原配置文件比较一下就知道了。
阅读(1855) | 评论(0) | 转发(0) |