由于有条件,自己想分布式的实验,在实现的过程中发现了点问题:单个电脑上的设备都能相互通信,就是分别在两台电脑上的设备不行。
拓朴很简单,因为只是想测试实现一下:R1在本机,R2,R3在另一台,相互之间用串口连接。图:
R1上的S1/0端口物理层UP,但是链路层却是DOWN的。R2,R3上的所有端口都是UP的。
Serial1/1 192.168.1.1 YES NVRAM up down
后来发现我们平时写的Localhost应该写成本机的IP地址,不然程序可能会把它理解成127.0.0.1,而和另外一台电脑不在一个网段了,这样就不能通信。
本实验拓朴如下:
autostart = false [172.16.21.70] workingdir = D:\Cisco\Output\Lab 1 port = 7200 udp = 10000 [[router R1]] image = D:\Cisco\Dynagen\IOS\c7200-is-mz.122-37.bin model = 7200 console = 3001 npe = npe-400 ram = 64 confreg = 0x2102 idlepc = 0x605c33fc mmap = true slot0 = PA-C7200-IO-FE slot1 = PA-4T s1/1 = R2 s1/0
[172.16.21.69] port = 7200 udp = 10000 workingdir = D:\Cisco\Output\Lab 1
[[router R2]] image = D:\Cisco\IOS\c7200-is-mz.122-37.bin model = 7200 console = 3002 npe = npe-400 ram = 64 confreg = 0x2102 idlepc = 0x605c33fc mmap = true slot0 = PA-C7200-IO-FE slot1 = PA-4T s1/1 = R3 S1/0
[[router R3]] image = D:\Cisco\IOS\c7200-is-mz.122-37.bin model = 7200 console = 3003 npe = npe-400 ram = 64 confreg = 0x2102 idlepc = 0x605c33fc mmap = true slot0 = PA-C7200-IO-FE slot1 = PA-4T |