十二、EIGRP的手動彙總

十二、EIGRP的手動彙總
實驗目的:1、學習EIGRP路由協議手動彙總的配置。
               2、學習EIGRP路由協議手動彙總的意義。
實驗拓撲
1、ip地址表:
R1              LO/0                 192.168.10.33/29
R1              LO/1                  192.168.10.41/29
R1              S2/0                  192.168.10.49/30
R2              S2/0                  192.168.10.50/30
R2              FO/0                  192.168.20.1/24
 
2、
R1的配置:
R1(config)#interface loopback 0
%LINK-5-CHANGED: Interface Loopback0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to up
R1(config-if)#ip address 192.168.10.33 255.255.255.248
R1(config-if)#exit
R1(config)#interface loopback 1
%LINK-5-CHANGED: Interface Loopback1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback1, changed state to upR1(config-if)#ip address 192.168.10.41 255.255.255.248
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#interface serial 2/0
R1(config-if)#ip address 192.168.10.49 255.255.255.252
R1(config-if)#clock rate 64000//DCE端設置時鐘頻率爲64000
R1(config-if)#no shutdown
%LINK-5-CHANGED: Interface Serial2/0, changed state to down
R1(config-if)#exit
R1(config)#route eigrp 10//啓用eigrp路由協議,自治號爲10
R1(config-router)#network 192.168.10.0//通告直連網絡
 
R2的配置:
R2(config)#interface loopback 0
%LINK-5-CHANGED: Interface Loopback0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to upR2(config-if)#ip address 192.168.20.1 255.255.255.0
R2(config-if)#exit
R2(config)#interface serial 2/0
R2(config-if)#ip address 192.168.10.50 255.255.255.252
R2(config-if)#no shutdown
%LINK-5-CHANGED: Interface Serial2/0, changed state to up
R2(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to up
R2(config-if)#exit
R2(config)#route eigrp 10//啓用eigrp路由協議,自治號爲10
R2(config-router)#network 192.168.10.0//通告直連網絡
R2(config-router)#network 192.168.20.0
 
驗證:R1和R2的路由表信息分別如下
R1#show ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
       i - IS-IS, 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
     192.168.10.0/24 is variably subnetted, 3 subnets, 2 masks
C       192.168.10.32/29 is directly connected, Loopback0
C       192.168.10.40/29 is directly connected, Loopback1
C       192.168.10.48/30 is directly connected, Serial2/0
D    192.168.20.0/24 [90/20640000] via 192.168.10.50, 00:00:09, Serial2/0
R2#show ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
       i - IS-IS, 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
     192.168.10.0/24 is variably subnetted, 4 subnets, 3 masks
D       192.168.10.0/24 is a summary, 00:01:02, Null0
D       192.168.10.32/29 [90/20640000] via 192.168.10.49, 00:04:10, Serial2/0
D       192.168.10.40/29 [90/20640000] via 192.168.10.49, 00:04:10, Serial2/0
C       192.168.10.48/30 is directly connected, Serial2/0
C    192.168.20.0/24 is directly connected, Loopback0
R1和R2路由表可見都學到了所有的路由信息,但R2上彙總了空接口,取消R2上彙總的空接口如下
-----------
R1(config)#route eigrp 10
R1(config-router)#no auto-summary
R2(config)#route eigrp 10
R2(config-router)#no auto-summary
-----------
 
R2(config)#interface serial 2/0
R2(config-if)#ip summary-address eigrp 10 192.168.10.32 255.255.255.240//eigrp的手動彙總
 
R2#show ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
       i - IS-IS, 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
     192.168.10.0/24 is variably subnetted, 3 subnets, 2 masks
D       192.168.10.32/28 [90/20640000] via 192.168.10.49, 00:00:15, Serial2/0
C       192.168.10.48/30 is directly connected, Serial2/0
C    192.168.20.0/24 is directly connected, Loopback0
結論:
1、可見eigrp路由協議手動彙總配置成功;
2、對比上面R2的輸出,兩個/29的子網被彙總了一個/28的子網通告出去,目的使得路由表的尺寸變小,從而節省了搜索路由表的時間。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章