多点双向重分布后次优路径的解决方法多点双向重分布后次优路径的解决方法概念预习:什么是多点双向路由重发布?不同路由协议相互之间通过重发布相互传递各自的路由信息,承担重发布工作ASBR路由器数量多于一台.ASBR在每个路由协议内都能够收到相互间重发布通告的路由信息。一:实验拓扑:二:实验目的:双点:为了路由条目的冗余,Down掉任何一台ASBR路由器都不影响两个AS的通信;双向:不同AS的路由能够相互学习。三:实验描述:R1,R2,R3运行OSPF,并将1.1.1.1重分布进OSPF[redistributeconnectedsubnet]R2,R3,R4运行EIGRP,并将4.4.4.4重分布进EIGRP[redistributeconnectedsubnet]四:实验要求:R1能够学到EIGRP的路由,并且到4.4.4.4是负载均衡R4能够学到OSPF的路由,并且到1.1.1.1是负载均衡五:实验过程:1:基本接口的配置:R1(config)#ints0/1R1(config-if)#ipadd12.0.0.1255.255.255.0R1(config-if)#noshR1(config-if)#ints0/2R1(config-if)#ipadd13.0.0.1255.255.255.0R1(config-if)#noshR1(config-if)#intlo0R1(config-if)#ipadd1.1.1.1255.255.255.0R2(config)#ints0/1R2(config-if)#ipadd12.0.0.2255.255.255.0R2(config-if)#noshR2(config-if)#inte1/0R2(config-if)#ipadd10.0.234.2255.255.255.0R2(config-if)#noshR2(config-if)#intlo0R2(config-if)#ipadd2.2.2.2255.255.255.0R2(config-if)#^ZR3(config)#ints0/2R3(config-if)#ipadd13.0.0.3255.255.255.0R3(config-if)#noshR3(config-if)#inte1/0R3(config-if)#ipadd10.0.234.3255.255.255.0R3(config-if)#noshR3(config-if)#intlo0R3(config-if)#ipadd3.3.3.3255.255.255.0R4(config)#inte0/0R4(config-if)#ipadd10.0.234.4255.255.255.0R4(config-if)#noshR4(config-if)#intlo0R4(config-if)#ipadd4.4.4.4255.255.255.0R4(config-if)#nosh2:路由的配置:R1(config)#routeros1R1(config-router)#net12.0.0.00.0.0.255a0R1(config-router)#net13.0.0.00.0.0.255a0R1(config-router)#redistributeconnectedsubnetsR2(config)#routeros1R2(config-router)#net12.0.0.00.0.0.255a0R2(config-router)#net2.2.2.00.0.0.255a0R2(config-router)#exitR2(config)#routereigrp1R2(config-router)#net10.0.234.00.0.0.255R2(config-router)#noauR3(config)#routeros1R3(config-router)#net13.0.0.00.0.0.255a0R3(config-router)#net3.3.3.00.0.0.255a0R3(config-router)#exitR3(config)#routereigrp1R3(config-router)#net10.0.234.00.0.0.255R3(config-router)#noauR4(config)#routereigrp1R4(config-router)#net10.0.234.00.0.0.255R4(config-router)#redistributeconnectedR1#shoiproute1.0.0.0/24issubnetted,1subnetsC1.1.1.0isdirectlyconnected,Loopback02.0.0.0/32issubnetted,1subnetsO2.2.2.2[110/65]via12.0.0.2,00:01:58,Serial0/13.0.0.0/32issubnetted,1subnetsO3.3.3.3[110/65]via13.0.0.3,00:01:58,Serial0/212.0.0.0/24issubnetted,1subnetsC12.0.0.0isdirectlyconnected,Serial0/113.0.0.0/24issubnetted,1subnetsC13.0.0.0isdirectlyconnected,Serial0/2R4#shoiproute4.0.0.0/24issubnetted,1subnetsC4.4.4.0isdirectlyconnected,Loopback010.0.0.0/24issubnetted,1subnetsC10.0.234.0isdirectlyconnected,Ethernet0/0//发现R1和R4不能相互学习路由,下来我们在E2和R3上实现双向重分布。3:双向重分布的配置:R2(config)#routeros1R2(config-router)#redistributeeigrp1subnetsR2(config-router)#exitR2(config)#routereigrp1R2(config-router)#redistributeospf1metric100000125511500R3(config)#routeros1R3(config-router)#redistributeeigrp1subnetsR3(config-router)#routereigrp1R3(config-router)#redistributeospf1metric100000125511500R4#shoiprouteeigrp1.0.0.0/24issubnetted,1subnetsDEX1.1.1.0[170/281856]via10.0.234.3,00:04:57,Ethernet0/0[170/281856]via10.0.234.2,00:04:57,Ethernet0/02.0.0.0/24issubnetted,1subnetsD2.2.2.0[90/409600]via10.0.234.2,00:06:15,Ethernet0/03.0.0.0/24issubnetted,1subnetsD3.3.3.0[90/409600]via10.0.234.3,00:06:15,Ethernet0/012.0.0.0/24issubnetted,1subnetsDEX12.0.0.0[170/281856]via10.0.234.3,00:04:57,Ethernet0/0[170/281856]via10.0.234.2,00:04:57,Ethernet0/013.0.0.0/24issubnetted,1subnetsDEX13.0.0.0[170/281856]via10.0.234.3,00:04:57,Ethernet0/0[170/281856]via10.0.234.2,00:04:57,Ethernet0/0//发现R4上有到达R1的负载均衡的路由。R1#shoiproute1.0.0.0/24issubnetted,1subnetsC1.1.1.0isdirectlyconnected,Loopback02.0.0.0/8isvariablysubnetted,2subnets,2masksO2.2.2.2/32[110/65]via12.0.0.2,00:01:34,Serial0/1OE22.2.2.0/24[110/20]via13.0.0.3,00:01:34,Serial0/23.0.0.0/8isvariablysubnetted,2subnets,2masksO3.3.3.3/32[110/65]via13.0.0.3,00:01:34,Serial0/2OE23.3.3.0/24[110/20]via12.0.0.2,00:01:34,Serial0/14.0.0.0/24issubnetted,1subnetsOE24.4.4.0[110/20]via12.0.0.2,00:01:33,Serial0/110.0.0.0/24issubnetted,1subnetsOE210.0.234.0[110/20]via13.0.0.3,00:01:34,Serial0/2[110/20]via12.0.0.2,00:01:34,Serial0/112.0.0.0/24issubnetted,1subnetsC12.0.0.0isdirectlyconnected,Serial0/113.0.0.0/24issubnetted,1subnetsC13.0.0.0isdirectlyconnected,Serial0/2//发现R1上没有到4.4.4.0的负载均衡的路由,Why?我们查看一下两台ASBR路由器上的路由表:R3#shoiproute1.0.0.0/24issubnetted,1subnetsOE21.1.1.0[110/20]via13.0.0.1,00:02:47,Serial0/22.0.0.0/8isvariablysubnetted,2subnets,2masksO2.2.2.2/32[110/129]via13.0.0.1,00:02:47,Serial0/2DEX2.2.2.0/24[170/281856]via10.0.234.2,00:08:55,Ethernet1/03.0.0.0/24issubnetted,1subnetsC3.3.3.0isdirectlyconnected,Loopback04.0.0.0/24issubnetted,1subnetsOE24.4.4.0[110/20]via13.0.0.1,00:02:47,Serial0/210.0.0.0/24issubnetted,1subnetsC10.0.234.0isdirectlyconnected,Ethernet1/012.0.0.0/24issubnetted,1subnetsO12.0.0.0[110/128]via13.0.0.1,00:02:47,Serial0/213.0.0.0/24issubnetted,1subnetsC13.0.0.0isdirectlyconnected,Serial0/2发现R3上没有4.4.4.4的EIGRP路由,取而代之的是OSPF路由,按理来说应该通过EIGRP好,但现在选的是OSPF,原因是R3从EIGRP学到的4.4.4.0的路由是外部路由,管理距离为170,R3从R2(将EIGRP重分布过来的)OSPF学过来的到达4.4.4.0的路由管理距离为110,R3取管理距离小的放入它的路由表,从而导致R3将EIGRP重分布到OSPF时本地EIGRP表没有4.4.4.0的路由,因此R1上没有到达4.4.4.0的负载均衡的路由。解决方法:修改AD将R