Spring中的aware接口详情
364
2022-09-26
ospf与rip双点双向重分发实验-实现负载均衡(ospf和rip路由重分发)
接下来是重发布,首先将AD值小的ospf重发布到AD值大的RIP中去====================================ospf-rip
-------------------1enconf trouter ripredistribute ospf 1 metric 2endwr------------------3enconf trouter ripred ospf 1 met 2endwr
====================================其次将rip重发布到ospf中去=====================================rip-ospf
---------------------1enconf trouter ospf 1red rip subnendwr
---------------------3R3#show ip routeCodes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static route, H - NHRP, l - LISPa - application route
replicated route, % - next hop override
Gateway of last resort is not set
2.0.0.0/24 is subnetted, 1 subnets
O 2.2.2.0 [110/65] via 192.168.23.2, 00:19:37, Serial1/14.0.0.0/24 is subnetted, 1 subnetsO E2 4.4.4.0 [110/20] via 192.168.23.2, 00:06:34, Serial1/1O 192.168.12.0/24 [110/128] via 192.168.23.2, 00:19:37, Serial1/1O E2 192.168.14.0/24 [110/20] via 192.168.23.2, 00:06:34, Serial1/1192.168.23.0/24 is variably subnetted, 2 subnets, 2 masksC 192.168.23.0/24 is directly connected, Serial1/1L 192.168.23.3/32 is directly connected, Serial1/1192.168.34.0/24 is variably subnetted, 2 subnets, 2 masksC 192.168.34.0/24 is directly connected, Serial1/0L 192.168.34.3/32 is directly connected, Serial1/0
====1上进行重发布,发现3上路由表出现了次优路径的情况,去忘4.4.4.0网段然后3上修改AD值++++++
enconf tacc 4 per 4.4.4.0router rip dista 100 192.168.34.4 0.0.0.0 4end
+++++R3#R3#show ip routeCodes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static route, H - NHRP, l - LISPa - application route
replicated route, % - next hop override
Gateway of last resort is not set
2.0.0.0/24 is subnetted, 1 subnets
O 2.2.2.0 [110/65] via 192.168.23.2, 00:21:53, Serial1/14.0.0.0/24 is subnetted, 1 subnetsR 4.4.4.0 [100/1] via 192.168.34.4, 00:00:19, Serial1/0O 192.168.12.0/24 [110/128] via 192.168.23.2, 00:21:53, Serial1/1O E2 192.168.14.0/24 [110/20] via 192.168.23.2, 00:08:50, Serial1/1192.168.23.0/24 is variably subnetted, 2 subnets, 2 masksC 192.168.23.0/24 is directly connected, Serial1/1L 192.168.23.3/32 is directly connected, Serial1/1192.168.34.0/24 is variably subnetted, 2 subnets, 2 masksC 192.168.34.0/24 is directly connected, Serial1/0L 192.168.34.3/32 is directly connected, Serial1/0R3#R3#再次查看路由表,发现次优路径问题在上已经修正但因为是双点双向重发布,所以3上也需要配置重发布-+-+-+-+-+-+-++--enconf trouter ospf 1red rip subnendwr
配置完成后,查看R1的路由表R1#show ip routeCodes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static route, H - NHRP, l - LISPa - application route
replicated route, % - next hop override
Gateway of last resort is not set
2.0.0.0/24 is subnetted, 1 subnets
O 2.2.2.0 [110/65] via 192.168.12.2, 00:27:10, Serial1/04.0.0.0/24 is subnetted, 1 subnetsO E2 4.4.4.0 [110/20] via 192.168.12.2, 00:00:18, Serial1/0192.168.12.0/24 is variably subnetted, 2 subnets, 2 masksC 192.168.12.0/24 is directly connected, Serial1/0L 192.168.12.1/32 is directly connected, Serial1/0192.168.14.0/24 is variably subnetted, 2 subnets, 2 masksC 192.168.14.0/24 is directly connected, Serial1/1L 192.168.14.1/32 is directly connected, Serial1/1O 192.168.23.0/24 [110/128] via 192.168.12.2, 00:27:34, Serial1/0O E2 192.168.34.0/24 [110/20] via 192.168.12.2, 00:00:18, Serial1/0R1# R1#R1#
我们发现1上也出现了关于4.4.4.0网段的次优路径问题
此时我们将1的来自4.4.4.0的路由的AD值修改-------1enconf tacc 4 per 4.4.4.0router rip dista 100 192.168.14.4 0.0.0.0 4end
此时我们再次查看1的路由表 R1#show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static route, H - NHRP, l - LISPa - application route
replicated route, % - next hop override
Gateway of last resort is not set
2.0.0.0/24 is subnetted, 1 subnets
O 2.2.2.0 [110/65] via 192.168.12.2, 00:32:27, Serial1/04.0.0.0/24 is subnetted, 1 subnetsR 4.4.4.0 [100/1] via 192.168.14.4, 00:00:02, Serial1/1192.168.12.0/24 is variably subnetted, 2 subnets, 2 masksC 192.168.12.0/24 is directly connected, Serial1/0L 192.168.12.1/32 is directly connected, Serial1/0192.168.14.0/24 is variably subnetted, 2 subnets, 2 masksC 192.168.14.0/24 is directly connected, Serial1/1L 192.168.14.1/32 is directly connected, Serial1/1O 192.168.23.0/24 [110/128] via 192.168.12.2, 00:32:51, Serial1/0O E2 192.168.34.0/24 [110/20] via 192.168.12.2, 00:05:35, Serial1/0R1#R1#R1#
发现次优路径问题也修正完成然后查看网络中其他设备的路由表
R2#show ip routeCodes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static route, H - NHRP, l - LISPa - application route
replicated route, % - next hop override
Gateway of last resort is not set
2.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 2.2.2.0/24 is directly connected, Loopback0L 2.2.2.2/32 is directly connected, Loopback04.0.0.0/24 is subnetted, 1 subnetsO E2 4.4.4.0 [110/20] via 192.168.23.3, 00:05:52, Serial1/1[110/20] via 192.168.12.1, 00:00:19, Serial1/0192.168.12.0/24 is variably subnetted, 2 subnets, 2 masksC 192.168.12.0/24 is directly connected, Serial1/0L 192.168.12.2/32 is directly connected, Serial1/0O E2 192.168.14.0/24 [110/20] via 192.168.12.1, 00:18:17, Serial1/0192.168.23.0/24 is variably subnetted, 2 subnets, 2 masksC 192.168.23.0/24 is directly connected, Serial1/1L 192.168.23.2/32 is directly connected, Serial1/1O E2 192.168.34.0/24 [110/20] via 192.168.23.3, 00:05:52, Serial1/1R2#R2#R2#R2#
R3#show ip routeCodes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static route, H - NHRP, l - LISPa - application route
replicated route, % - next hop override
Gateway of last resort is not set
2.0.0.0/24 is subnetted, 1 subnets
O 2.2.2.0 [110/65] via 192.168.23.2, 00:31:12, Serial1/14.0.0.0/24 is subnetted, 1 subnetsR 4.4.4.0 [100/1] via 192.168.34.4, 00:00:01, Serial1/0O 192.168.12.0/24 [110/128] via 192.168.23.2, 00:31:12, Serial1/1O E2 192.168.14.0/24 [110/20] via 192.168.23.2, 00:18:09, Serial1/1192.168.23.0/24 is variably subnetted, 2 subnets, 2 masksC 192.168.23.0/24 is directly connected, Serial1/1L 192.168.23.3/32 is directly connected, Serial1/1192.168.34.0/24 is variably subnetted, 2 subnets, 2 masksC 192.168.34.0/24 is directly connected, Serial1/0L 192.168.34.3/32 is directly connected, Serial1/0R3#R3#R3#R3#R3#
R4#show ip routeCodes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static route, H - NHRP, l - LISPa - application route
replicated route, % - next hop override
Gateway of last resort is not set
2.0.0.0/24 is subnetted, 1 subnets
R 2.2.2.0 [120/2] via 192.168.34.3, 00:00:16, Serial1/0[120/2] via 192.168.14.1, 00:00:18, Serial1/14.0.0.0/8 is variably subnetted, 2 subnets, 2 masksC 4.4.4.0/24 is directly connected, Loopback0L 4.4.4.4/32 is directly connected, Loopback0R 192.168.12.0/24 [120/2] via 192.168.34.3, 00:00:16, Serial1/0[120/2] via 192.168.14.1, 00:00:18, Serial1/1192.168.14.0/24 is variably subnetted, 2 subnets, 2 masksC 192.168.14.0/24 is directly connected, Serial1/1L 192.168.14.4/32 is directly connected, Serial1/1R 192.168.23.0/24 [120/2] via 192.168.34.3, 00:00:16, Serial1/0[120/2] via 192.168.14.1, 00:00:18, Serial1/1192.168.34.0/24 is variably subnetted, 2 subnets, 2 masksC 192.168.34.0/24 is directly connected, Serial1/0L 192.168.34.4/32 is directly connected, Serial1/0R4#R4#R4#R4#
2与4之间的链路实现了负载均衡
感谢观看,希望指出问题,我对这块也只是初学者
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~