资源描述:
《双点双向重分布路由环路的产生》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、双点双向重分布路由环路的产生 左边运行OSPF协议,右边运行RIPV2协议,首先在R2上进行双向重分布,再在R3上进行路由重分布。基本配置省略。R2(config-router)#redistribute ripmetric10subnetsR2(config-router)#redistributeospf1metric4R3上进行相同配置;R2#shiprou 34.0.0.0/24issubnetted,1subnetsOE2 34.34.34.0[110/10]via12.12.12.1,01:45:24,Serial0/0 1.0.0.0/32iss
2、ubnetted,1subnetsO 1.1.1.1[110/65]via12.12.12.1,01:45:24,Serial0/0 5.0.0.0/32issubnetted,1subnetsR 5.5.5.5[120/2]via24.24.24.4,00:00:26,Serial0/1 24.0.0.0/24issubnetted,1subnetsC 24.24.24.0isdirectlyconnected,Serial0/1 12.0.0.0/24issubnetted,1subnetsC 12.12.12.0
3、isdirectlyconnected,Serial0/0 13.0.0.0/24issubnetted,1subnetsO 13.13.13.0[110/128]via12.12.12.1,01:45:26,Serial0/0 45.0.0.0/24issubnetted,1subnetsR 45.45.45.0[120/1]via24.24.24.4,00:00:01,Serial0/1 R3#shiprou 34.0.0.0/24issubnetted,1subnetsC 34.34.34.0isdirectlyconne
4、cted,Serial0/1 1.0.0.0/32issubnetted,1subnetsO 1.1.1.1[110/65]via13.13.13.1,01:46:10,Serial0/0 5.0.0.0/32issubnetted,1subnetsOE2 5.5.5.5[110/10]via13.13.13.1,01:46:10,Serial0/0 24.0.0.0/24issubnetted,1subnetsOE2 24.24.24.0[110/10]via13.13.13.1,01:46:10,Serial0/0 12.0.0.
5、0/24issubnetted,1subnetsO 12.12.12.0[110/128]via13.13.13.1,01:46:10,Serial0/0 13.0.0.0/24issubnetted,1subnetsC 13.13.13.0isdirectlyconnected,Serial0/0 45.0.0.0/24issubnetted,1subnetsOE2 45.45.45.0[110/10]via13.13.13.1,01:46:13,Serial0/0会看到,在R3上5.5.5.5这条路由条目的下一跳指向了13.13.13.
6、1,即指向了R1,其路由类型为OE2,也就是从OSPF内学到。当我们追踪到5.5.5.5的报文转发过程时,会发现绕了一圈,才到达5.5.5.5R3#traceroute5.5.5.5Typeescapesequencetoabort.Tracingtherouteto5.5.5.5 113.13.13.184msec36msec36msec 212.12.12.280msec44msec40msec 324.24.24.440msec72msec24msec 445.45.45.584msec* 64msec ---------------------------------
7、--------------------------------------分析:为什么会产生这个问题?AD值。首先在R2上进行双向重分布时,R2会把5.5.5.5这个路由条目传递到OSPF路由协议区域,此条目的优先级就是110,R1收到这个条目也会把它传递给R3;这样R3由R1得到一条5.5.5.5路由条目,又由RIP路由协议区域内得到一条路由条目,其优先级为120。比较二者优先级,R3丢弃后者,先把了由R1学习到的路由条目我们也可以看到1.1.1.1这条路由条目在两个边界路由器上的下一跳都没有问题,