- 论坛徽章:
- 0
|
模拟器为boson netsim 6\r\n三层交换机SW1、SW2;路由器R1、R2;PC1、PC2、PC3、PC4。\r\n基本拓扑结构简图如下:\r\n\r\n\r\n\r\n(PC3,PC4)------SW2--------R1-------------R2----------------SW1-------(PC1,PC2)\r\n\r\n\r\nPC1在SW1的vlan2中,vlan2的ip为192.168.2.1 255.255.255.0\r\nPC2在SW1的vlan3中,vlan3的ip为192.168.1.1 255.255.255.0\r\nSW1的vlan1的ip为192.168.10.2 255.255.255.0,它与R2的f0/0(192.168.10.1)相连\r\n\r\nR2的f1/0(10.10.10.2)与R1的f1/0(10.10.10.1)相连\r\n\r\nPC3在SW2的vlan2中,vlan2的ip为192.168.3.1 255.255.255.0\r\nPC4在SW2的vlan3中,vlan3的ip为192.168.4.1 255.255.255.0\r\nSW2的vlan1的ip为192.168.9.2 255.255.255.0,它与R1的f0/0(192.168.9.1)相连\r\n\r\n在SW2中ip routing并在R1中设置了回指路由后,可实现PC3、PC4ping(telnet)SW2和R1\r\n在SW1中ip routing并在R2中设置了回指路由后,可实现PC1、PC2ping(telnet)SW1和R2\r\n\r\n在SW1、SW2、R1、R2中分别添加了相应的静态路由\r\nSW1的静态路由如下:\r\nip route 10.10.10.0 255.255.255.0 192.168.10.1\r\nip route 192.168.3.0 255.255.255.0 192.168.10.1\r\nip route 192.168.4.0 255.255.255.0 192.168.10.1\r\nip route 192.168.9.0 255.255.255.0 192.168.10.1\r\nSW2的静态路由如下:\r\nip route 10.10.10.0 255.255.255.0 192.168.9.1\r\nip route 192.168.1.0 255.255.255.0 192.168.9.1\r\nip route 192.168.2.0 255.255.255.0 192.168.9.1\r\nip route 192.168.10.0 255.255.255.0 192.168.9.1\r\nR1的静态路由如下:\r\nip route 192.168.1.0 255.255.255.0 10.10.10.2\r\nip route 192.168.2.0 255.255.255.0 10.10.10.2\r\nip route 192.168.3.0 255.255.255.0 192.168.9.2\r\nip route 192.168.4.0 255.255.255.0 192.168.9.2\r\nip route 192.168.10.0 255.255.255.0 10.10.10.2\r\nR2的静态路由如下:\r\nip route 192.168.1.0 255.255.255.0 192.168.10.2\r\nip route 192.168.2.0 255.255.255.0 192.168.10.2\r\nip route 192.168.3.0 255.255.255.0 10.10.10.1\r\nip route 192.168.4.0 255.255.255.0 10.10.10.1\r\nip route 192.168.9.0 255.255.255.0 10.10.10.1\r\n\r\n在模拟器上测试时,发生如下问题:在R1上可以ping通R2、SW1、SW2、PC1~PC4,在R2上可以ping通R1、SW1、SW2、PC1~PC4!而且最不可理解的是PC3、PC4可以ping通R1,但是ping不通R2,同样地,PC1、PC2可以ping通R2,但是ping不通R1!!\r\n请教各位大侠,该如何解决这个问题?还请详加指教!!谢谢!! |
|