您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 资本运营 > (实验)-多点双向重分布
实验配置:实验拓扑如上图,两个路由选择域,在R2,R3上做路由的双向重分布,使每个区域的路由器都可以达到共识.实验目的:解决在多点重分布时出现路径的不优问题.R2配置:!routerospf1router-id2.2.2.2log-adjacency-changesredistributeripmetric10000metric-type1subnetsnetwork192.1.12.00.0.0.255area0!routerripversion2redistributeospf1metric5network2.0.0.0RIPv2OSPFR1R2R4R3R5E0E0S1S1S1S0S0S0S0S0192.1.13.0192.2.24.0192.2.35.0192.2.45.0192.1.12.0LOOP0LOOP0LOOP0LOOP0network192.2.24.0noauto-summary!ipclasslessnoiphttpserver!!R3配置:!routerospf1router-id3.3.3.3log-adjacency-changesredistributeripmetric10000metric-type1subnetsnetwork192.1.13.00.0.0.255area0!routerripversion2redistributeospf1metric5network3.0.0.0network192.2.35.0noauto-summary!ipclasslessnoiphttpserver!!R2先双向重分布,然后R3再双向重分布.R3路由表:O192.1.12.0/24[110/128]via192.1.13.1,00:03:19,Serial11.0.0.0/24issubnetted,1subnetsO1.1.1.0[110/65]via192.1.13.1,00:03:19,Serial1C192.1.13.0/24isdirectlyconnected,Serial12.0.0.0/24issubnetted,1subnetsOE12.2.2.0[110/10128]via192.1.13.1,00:03:19,Serial13.0.0.0/24issubnetted,1subnetsC3.3.3.0isdirectlyconnected,Loopback0OE1192.2.45.0/24[110/10128]via192.1.13.1,00:03:19,Serial14.0.0.0/24issubnetted,1subnetsOE14.4.4.0[110/10128]via192.1.13.1,00:03:20,Serial15.0.0.0/24issubnetted,1subnetsOE15.5.5.0[110/10128]via192.1.13.1,00:03:20,Serial1OE1192.2.24.0/24[110/10128]via192.1.13.1,00:03:22,Serial1C192.2.35.0/24isdirectlyconnected,Serial0*红色路由不优,红色条目为以下RIPv2的路由,直接通过RIP就可以到达,现在反而通过OSPF学到从RIP重分布进来的这些条目.R2路由表:C192.1.12.0/24isdirectlyconnected,Serial01.0.0.0/24issubnetted,1subnetsO1.1.1.0[110/65]via192.1.12.1,00:00:04,Serial0O192.1.13.0/24[110/128]via192.1.12.1,00:00:04,Serial02.0.0.0/24issubnetted,1subnetsC2.2.2.0isdirectlyconnected,Loopback03.0.0.0/24issubnetted,1subnetsOE13.3.3.0[110/10128]via192.1.12.1,00:00:04,Serial0R192.2.45.0/24[120/1]via192.2.24.4,00:00:04,Serial14.0.0.0/24issubnetted,1subnetsR4.4.4.0[120/1]via192.2.24.4,00:00:05,Serial15.0.0.0/24issubnetted,1subnetsR5.5.5.0[120/2]via192.2.24.4,00:00:05,Serial1C192.2.24.0/24isdirectlyconnected,Serial1OE1192.2.35.0/24[110/10128]via192.1.12.1,00:00:06,Serial0*不优条目R1路由表:C192.1.12.0/24isdirectlyconnected,Serial01.0.0.0/24issubnetted,1subnetsC1.1.1.0isdirectlyconnected,Loopback0C192.1.13.0/24isdirectlyconnected,Serial12.0.0.0/24issubnetted,1subnetsOE12.2.2.0[110/10064]via192.1.12.2,00:00:03,Serial03.0.0.0/24issubnetted,1subnetsOE13.3.3.0[110/10064]via192.1.13.3,00:00:03,Serial1OE1192.2.45.0/24[110/10064]via192.1.12.2,00:00:03,Serial04.0.0.0/24issubnetted,1subnetsOE14.4.4.0[110/10064]via192.1.12.2,00:00:03,Serial05.0.0.0/24issubnetted,1subnetsOE15.5.5.0[110/10064]via192.1.12.2,00:00:04,Serial0OE1192.2.24.0/24[110/10064]via192.1.12.2,00:00:04,Serial0OE1192.2.35.0/24[110/10064]via192.1.13.3,00:00:14,Serial1*R1对于下边RIPv2的路由路径没有达到负载均衡的效果实验结论:R2先双向重分布,把R2通过RIP学到的路由信息带进OSPF域中,R1学到R2重分布进来的RIP路由信息(OE1),当R1把OE1路由传给R3时,此时R3本身也已有该些路由条目(R3通过RIP学到的路由信息),R3从R1收到(OE1)与自身(RIP)相同路由条目的更新信息时,因为通过OSPF学到的路由管理距离比RIP低,故采用OE1路由,所以导致RIPv2网段的路由绕OSPF走,出现路径不优的结果.解决办法:R2配置:!routerospf1router-id2.2.2.2log-adjacency-changesredistributeripmetric10000metric-type1subnetsnetwork192.1.12.00.0.0.255area0distance1250.0.0.0255.255.255.2551(1是调用下边的访问控制列表1)!routerripversion2redistributeospf1metric5network2.0.0.0network192.2.24.0noauto-summary!ipclasslessnoiphttpserver!access-list1permit192.2.0.00.0.255.255access-list1permit2.2.2.00.0.0.255access-list1permit3.3.3.00.0.0.255access-list1permit4.4.4.00.0.0.255access-list1permit5.5.5.00.0.0.255!R3配置:!routerospf1router-id3.3.3.3log-adjacency-changesredistributeripmetric10000metric-type1subnetsnetwork192.1.13.00.0.0.255area0distance1300.0.0.0255.255.255.2551!routerripversion2redistributeospf1metric5network3.0.0.0network192.2.35.0noauto-summary!ipclasslessnoiphttpserver!access-list1permit192.2.0.00.0.255.255access-list1permit2.2.2.00.0.0.255access-list1permit3.3.3.00.0.0.255access-list1permit4.4.4.00.0.0.255access-list1permit5.5.5.00.0.0.255!对重分布进OSPF的路由条目更改其管理距离调整后的R3路由表:O192.1.12.0/24[110/128]via192.1.13.1,00:05:05,Serial11.0.0.0/24issubnetted,1subnetsO1.1.1.0[110/65]via192.1.13.1,00:05:05,Serial1C192.1.13.0/24isdirectlyconnected,Serial12.0.0.0/24issubnetted,1subnetsR2.2.2.0[120/3]via192.2.35.5,00:00:11,Serial03.0.0.0/24issubnetted,1subnetsC3.3.3.0isdirectlyconnected,Loopback0R192.2.45.0/24[120/1]via192.2.35.5,00:00:11,Serial04.0.0.0/24issubnetted,1subnetsR4.4.4.0[120/2]via192.2.35.5,00:00:12,Serial05.0.0.0/24issubnetted,1subnetsR5.5.5.0[120/1]via192.2.35.5,00:00:12,Serial0R192.2.24.0/24[120/2]via192.2.35.5,00:00:13,Serial0C192.2.35.0/24isdirectlyconnected,Serial0调整后的R2路由表:C192.1.12.0/24isdirectlyconnected,Serial01.0.0.0/24issubnetted,1subnetsO1.1.1.0[110/65]via192.1.12.1,00:08:07,Serial0O192.1.13.0/24[110/128]via192.1.12.1,00:08:07,Serial02.0.0.0/24issubnetted,1subnetsC2.2.2.0isdirectlyconnected,Loopback03.0.0.0/24issubnetted,1subnetsR3.3.3.0[120/3]via192.2.24.4,00:00:11,Serial1R192.2.45.0/24[120/1]via192.2.24.4,00:00:11,Serial14.0.0.0/24issubnetted,1subnetsR4.4.4.0[120/1]via192.2.24.4,00:00:12,Serial15.0.0.0/24issubnetted,1subnetsR5.5.5.0[120/2]via192.2.24.4,00:00:12,Serial
本文标题:(实验)-多点双向重分布
链接地址:https://www.777doc.com/doc-3044229 .html