BSCI—1:配置EIGRP的手動彙總

 BSCI—1:配置EIGRP的手動彙總


 
 
手動彙總特點:

1.減少路由條目。

2.減少正常數據的延時,

3.佔用內存和CPU資源的減少。

4.減少帶寬的佔用。

 

拓撲如下:

 

 

 
實驗:將R1上LoopBack 0,1,2三個接口地址彙總成一條路由
 
 
 
 
步驟一:首先我在R1R2之間做好基本配置並啓用EIGRP發佈網段

 

R1

 

Router>

Router>en

Router#conf t

Router(config)#hostname R1

R1(config)#interface f0/0

R1(config-if)#ip address 192.168.1.1 255.255.255.0

R1(config-if)#no sh

R1(config)#interface loopback 0

R1(config-if)#ip address 172.16.1.1 255.255.255.0

R1(config-if)#int lo1

R1(config-if)#ip address 172.16.2.1 255.255.255.0

R1(config-if)#int lo2

R1(config-if)#ip address 172.16.3.1 255.255.255.0

R1(config-if)#exit

R1(config)#router eigrp 1

R1(config-router)#no auto-summary

R1(config-router)#network 192.168.1.0 0.0.0.255

R1(config-router)#network 172.16.1.0 0.0.0.255

R1(config-router)#network 172.16.2.0 0.0.0.255

R1(config-router)#network 172.16.3.0 0.0.0.255

R1(config-router)#end

R1#

 

 

 

 

 

R2

 

Router>

Router>en

Router#conf t

Router(config)#hostname R2

R2(config)#interface f0/0

R2(config-if)#ip address 192.168.1.2 255.255.255.0

R2(config-if)#no sh

R2(config-if)#exit

R2(config)#router eigrp 1

R2(config-router)#network 192.168.1.0 0.0.0.255

R2(config-router)#end

R2#

 

查看路由表:

 

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

 

     172.16.0.0/24 is subnetted, 3 subnets

D       172.16.1.0 [90/156160] via 192.168.1.1, 00:00:17, FastEthernet0/0

D       172.16.2.0 [90/156160] via 192.168.1.1, 00:00:17, FastEthernet0/0

D       172.16.3.0 [90/156160] via 192.168.1.1, 00:00:17, FastEthernet0/0

C    192.168.1.0/24 is directly connected, FastEthernet0/0

R2#

 

注:在R2上面我們可以很清楚的看見從R1上面學到的3條明細路由.

 

 

 

 

 

 
步驟二:當我們在R1接口下做手工總彙總之後的變化.

 

 

R1

 

R1(config-if)#ip summary-address eigrp 1 172.16.0.0 255.255.252.0

//這個時候我把之前3個不同網段的條目彙總爲掩碼爲:255.255.252.0的網段

R1(config-if)#end

R1#

 

 
注:現在我們來看下R2的變化.

 

 

 

 

 

 

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

 

     172.16.0.0/22 is subnetted, 1 subnets

D       172.16.0.0 [90/156160] via 192.168.1.1, 00:01:52, FastEthernet0/0

C    192.168.1.0/24 is directly connected, FastEthernet0/0

R2#

 

注:以之前相比可以看到現在學過來的是在R1上彙總之後的路由,它的掩碼長度爲/22,也就是我剛剛手動輸入的子網掩碼.

 

 

總結:

 

這樣做在針對連續在子網,有很大的改善,通過減少路由表的條目來節約我們的硬件資源以及網絡帶寬.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章