rip和ospf汇总

wKioL1Uxwtfy_IgOAAEgp1ALT4I879.jpg请(不知道结论是否正确,请指出错误)按上图配好相应的IP和协议并进行重分发。

rip的汇总

在R1上的e0/0接口进行汇总后

R2#cle ip rou *

R2#sh ip rou

Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP

       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

       E1 - OSPF external type 1, E2 - OSPF external type 2

       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2

       ia - IS-IS inter area, * - candidate default, U - per-user static route

       o - ODR, P - periodic downloaded static route


Gateway of last resort is not set


     23.0.0.0/24 is subnetted, 4 subnets

C       23.23.23.0 is directly connected, Ethernet0/1

O IA    23.23.24.0 [110/20] via 23.23.23.2, 00:00:02, Ethernet0/1

O IA    23.23.25.0 [110/20] via 23.23.23.2, 00:00:02, Ethernet0/1

O IA    23.23.26.0 [110/20] via 23.23.23.2, 00:00:02, Ethernet0/1

     12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks

C       12.12.12.0/24 is directly connected, Ethernet0/0

R       12.0.0.0/8 [120/1] via 12.12.12.1, 00:00:02, Ethernet0/0



在R2的e0/0接口设置汇总后

R2#cle ip rou *

R2#sh ip rou

Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP

       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

       E1 - OSPF external type 1, E2 - OSPF external type 2

       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2

       ia - IS-IS inter area, * - candidate default, U - per-user static route

       o - ODR, P - periodic downloaded static route


Gateway of last resort is not set


     23.0.0.0/24 is subnetted, 4 subnets

C       23.23.23.0 is directly connected, Ethernet0/1

O IA    23.23.24.0 [110/20] via 23.23.23.2, 00:00:03, Ethernet0/1

O IA    23.23.25.0 [110/20] via 23.23.23.2, 00:00:03, Ethernet0/1

O IA    23.23.26.0 [110/20] via 23.23.23.2, 00:00:03, Ethernet0/1

     12.0.0.0/24 is subnetted, 4 subnets

C       12.12.12.0 is directly connected, Ethernet0/0

R       12.12.13.0 [120/1] via 12.12.12.1, 00:00:03, Ethernet0/0

R       12.12.14.0 [120/1] via 12.12.12.1, 00:00:03, Ethernet0/0

R       12.12.15.0 [120/1] via 12.12.12.1, 00:00:04, Ethernet0/0

rip总结在rip边界设置的汇总路由条目不变。


ospf的汇总

在R3上汇总后的结果


R2#sh ip rou

Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP

       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

       E1 - OSPF external type 1, E2 - OSPF external type 2

       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2

       ia - IS-IS inter area, * - candidate default, U - per-user static route

       o - ODR, P - periodic downloaded static route


Gateway of last resort is not set


     23.0.0.0/8 is variably subnetted, 2 subnets, 2 masks

C       23.23.23.0/24 is directly connected, Ethernet0/1

O IA    23.0.0.0/8 [110/20] via 23.23.23.2, 00:00:20, Ethernet0/1

     12.0.0.0/24 is subnetted, 4 subnets

C       12.12.12.0 is directly connected, Ethernet0/0

R       12.12.13.0 [120/1] via 12.12.12.1, 00:00:14, Ethernet0/0

R       12.12.14.0 [120/1] via 12.12.12.1, 00:00:14, Ethernet0/0

R       12.12.15.0 [120/1] via 12.12.12.1, 00:00:14, Ethernet0/0

在R2上的汇总

R2#sh ip rou

Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP

       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

       E1 - OSPF external type 1, E2 - OSPF external type 2

       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2

       ia - IS-IS inter area, * - candidate default, U - per-user static route

       o - ODR, P - periodic downloaded static route


Gateway of last resort is not set


     23.0.0.0/24 is subnetted, 4 subnets

C       23.23.23.0 is directly connected, Ethernet0/1

O IA    23.23.24.0 [110/20] via 23.23.23.2, 00:06:02, Ethernet0/1

O IA    23.23.25.0 [110/20] via 23.23.23.2, 00:06:02, Ethernet0/1

O IA    23.23.26.0 [110/20] via 23.23.23.2, 00:06:02, Ethernet0/1

     12.0.0.0/24 is subnetted, 4 subnets

C       12.12.12.0 is directly connected, Ethernet0/0

R       12.12.13.0 [120/1] via 12.12.12.1, 00:00:02, Ethernet0/0

R       12.12.14.0 [120/1] via 12.12.12.1, 00:00:02, Ethernet0/0

R       12.12.15.0 [120/1] via 12.12.12.1, 00:00:04, Ethernet0/0

结论:在自治区域边界设置汇总路由条目不发生改变,在区域边界设置的汇总路由条目有所改变。

不知道结论是否正确,若错误请指出。谢谢(我是菜鸟)

你可能感兴趣的:(rip和ospf汇总)