Dynagen的配置文件内容:
#Lab - autostart = False [localhost] [[]] ram = image = C:\Program Files (x86)\Dynamips\images\c2691-jk9s-mz.-.image [[Router r1]] model = console = s1/ = r2 s1/ f0/ = r2 f0/ F0/ = NIO_gen_eth:\Device\NPF_{F5FD1986-FC1E-41CE-AF58-F8B4D1333DFC} idlepc = 0x604bba50 [[Router r2]] model = console = idlepc = 0x603da79c
R1的配置:
r1#show start Using bytes ! version 12.3 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname r1 ! boot-start-marker boot-end-marker ! ! no aaa new-model ip subnet-zero ! ! ! no ip cef ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! no ip address shutdown duplex auto speed auto ! ip address 12.0.0.1 255.255.255.248 duplex auto speed auto ! ip address 21.0.0.1 255.255.255.248 serial restart-delay ! no ip address shutdown serial restart-delay ! no ip address shutdown serial restart-delay ! no ip address shutdown serial restart-delay ! ip http server no ip http secure-server ip classless ip route ip route ! ! ! ! ! ! ! ! ! ! ! ! line con line aux line vty login ! end
R2的配置:
r2#show start Using bytes ! version 12.3 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname r2 ! boot-start-marker boot-end-marker ! ! no aaa new-model ip subnet-zero ! ! ! ip cef ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! interface Loopback0 ip address 172.31.4.1 255.255.255.0 ! interface Loopback1 ip address 172.31.5.1 255.255.255.0 ! interface Loopback2 ip address 172.31.6.1 255.255.255.0 ! interface Loopback3 ip address 172.31.7.1 255.255.255.0 ! no ip address shutdown duplex auto speed auto ! ip address 12.0.0.2 255.255.255.248 duplex auto speed auto ! ip address 21.0.0.2 255.255.255.248 serial restart-delay ! no ip address shutdown serial restart-delay ! no ip address shutdown serial restart-delay ! no ip address shutdown serial restart-delay ! ip http server no ip http secure-server ip classless ! ! ! ! ! ! ! ! ! ! ! ! line con line aux line vty login ! end
截图: