|
手動彙總特色:
1.
減小路由條目。
2.
減小正常數據的延時,
3.
佔用內存和
CPU
資源的減小。
4.
減小帶寬的佔用。
拓撲以下:
![]()
實驗:將R1上LoopBack 0,1,2三個接口地址彙總成一條路由
步驟一:首先我在
R1與R2之間作好基本配置並啓用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#
步驟二:當咱們在
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
,也就是我剛剛手動輸入的子網掩碼
.
|