|
手动汇总特色:
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
,也就是我刚刚手动输入的子网掩码
.
|