拓扑图 net文件: autostart = false [localhost] port = 7200 udp = 10000 workingdir = /home/cj/dynamips/tmp [[router R1]] image = /opt/dynamips/ios/unzip-c7200-is-mz.122-37.bin model = 7200 console = 3001 npe = npe-400 ram = 64 confreg = 0X2142 idlepc = 0x6067d29c exec_area = 64 mmap = false slot0 = PA-C7200-IO-FE slot1 = PA-4T slot2 = PA-4T f0/0 = SW1 1 s1/1 = R2 s1/0 s1/2 = R4 s1/1 [[router R2]] image = /opt/dynamips/ios/unzip-c7200-is-mz.122-37.bin model = 7200 console = 3002 npe = npe-400 ram = 64 confreg = 0X2142 idlepc = 0x6067d29c exec_area = 64 mmap = false slot0 = PA-C7200-IO-FE slot1 = PA-4T slot2 = PA-4T f0/0 = SW1 2 s1/1 = R3 S1/0 s1/2 = R4 s1/2 [[router R3]] image = /opt/dynamips/ios/unzip-c7200-is-mz.122-37.bin model = 7200 console = 3003 npe = npe-400 ram = 64 confreg = 0X2142 idlepc = 0x6067d29c exec_area = 64 mmap = false slot0 = PA-C7200-IO-FE slot1 = PA-4T slot2 = PA-4T f0/0 = SW1 3 s1/2 = R4 s1/3 [[router R4]] image = /opt/dynamips/ios/unzip-c7200-is-mz.122-37.bin model = 7200 console = 3004 npe = npe-400 ram = 64 confreg = 0X2142 idlepc = 0x6067d29c exec_area = 64 mmap = false slot0 = PA-C7200-IO-FE slot1 = PA-4T f0/0 = SW1 4 [[ethsw SW1]] 1 = dot1q 1 2 = dot1q 1 3 = dot1q 1 4 = dot1q 1 R1: en conf t hostname r1 no ip domain-lookup line console 0 exec-timeout 0 0 int loopback 0 ip add 11.1.1.1 255.255.255.0 int s1/1 ip add 12.1.1.1 255.255.255.0 no shut int fa0/0 ip add 13.1.1.1 255.255.255.0 no shut R2: en conf t hostname r2 no ip domain-lookup line console 0 exec-timeout 0 0 int loopback 0 ip add 22.1.1.2 255.255.255.0 int s1/0 ip add 12.1.1.2 255.255.255.0 no shut int s1/1 ip add 23.1.1.2 255.255.255.0 no shut R3: en conf t hostname r3 no ip domain-lookup line console 0 exec-timeout 0 0 int loopback 0 ip add 33.1.1.3 255.255.255.0 int s1/0 ip add 23.1.1.3 255.255.255.0 no shut int fa0/0 ip add 13.1.1.3 255.255.255.0 no shut