关闭EIGRP路由自动汇总
- 格式:docx
- 大小:208.71 KB
- 文档页数:4
EIGRP 协议是一个内部网关协议,高级距离矢量协议,组播地址224.0.0.101、eigrp 是一个高级的距离矢量协议2、eigrp 具有高速的收敛特性3、支持路由汇总和路由聚合4、eigrp 支持触发式增量更新5、eigrp 可以支持多种网络层协议,可以开启多个eigrp 进程支持不同的3 层被动路由协议。
6、eigrp 发送报文以组播和单播形式发送组播地址224.0.0.107、eigrp 支持手工汇总8、eigrp 保证100%无环路9、eigrp 无论在广域网还是在局域网部署eigrp 配置都比较简单10、eigrp 支持非等价的负载均衡Eigrp 头部的字段用来描述这个 eigrp 报文是个什么报文在 hello 报文的载荷字段中,有一个 ack 位,在普通情况下为 0,当 ack 位被置为 1 的时候,说明此报文为 acknowledge 报文。
所有的 IGP 协议中 IP 包头的 TTL 字段都为 1:当端口大于 1.544mbit/s 的发送频率为 5s 一次,小于 1.544mbit/s的我 60s 一次,连续的 3 次 hello 时间都没有收到 hello 包就判定邻居挂掉了。
默认情况下 hello 报文以组播形式发送。
在不支持组播的二层环境中如帧中继环 境中,需要手动修改指定单播地址 neighbor 1.1.1.1 255.255.255.0eigrp 的报文能够被可靠的发送,所以 eigrp 定义了可靠的传输机制, 内部定义的 确认机制,但并非所有的 eigrp 报文都需要确认, update ,query ,和 reply 需要 回复 ack ,如果没有回复则重传,重传次数为 16 次。
在 hello 报文的载荷字段中,有一个 ack 位,在普通情况下为 0,当 ack 位被置为 1 的时候,说明此报文为 acknowledge 报文,当 ack 位被置 1 的时候只能以单播 形式发送。
创建高级交换型互联网实验报告时间:2011-4-27实验名称:Eigrp末节路由设置班级计算机通信2班32号姓名黄跃实验内容1、拓扑图:实验步骤:•1、配置R1、R2、R3的IP地址和名称•R0•Router>en•Router#config t•Router(config)#HO R0•R0(config)#in s0/0•R0(config-if)#clock rate 64000•R0(config-if)#ip add 10.1.1.1 255.255.255.252•R0(config-if)#no shu•R0(config-if)#in lo 1•R0(config-if)#ip add 11.11.11.11 255.255.255.255•R0(config-if)#in lo 2•R0(config-if)#ip add 172.16.9.1 255.255.255.0•R0(config-if)#in lo 3•R0(config-if)#ip add 172.16.10.1 255.255.255.0•R0(config-if)#in lo 4•R0(config-if)#ip add 172.16.11.1 255.255.255.0•R0(config-if)#in lo 5•R0(config-if)#ip add 172.16.12.1 255.255.255.0••R1Router>enRouter#config tRouter(config)#HO R1R1(config)#in s0/0R1(config-if)#ip add 10.1.1.2 255.255.255.252R1(config-if)#no shuR1(config-if)#in fa0/0R1(config-if)#ip add 10.1.1.9 255.255.255.252R1(config-if)#no shuR1(config-if)#in lo 1•R2(config-if)#ip add 22.22.22.22 255.255.255.255•R2Router>enRouter#config tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#HO R3R2(config)#in fa0/0R2(config-if)#ip add 10.1.1.10 255.255.255.252R2(config-if)#no shuR2(config-if)#in lo 1R2(config-if)#ip add 33.33.33.33 255.255.255.255•2、在R0、R1、R2上启用EIGRP协议•R0•R0(config-if)#router eigrp 90•R0(config-router)#no au•R0(config-router)#net 10.1.1.0 0.0.0.3•R0(config-router)#net 172.16.9.0 0.0.0.255•R0(config-router)#net 172.16.10.0 0.0.0.255•R0(config-router)#net 172.16.11.0 0.0.0.255•R0(config-router)#net 172.16.12.0 0.0.0.255•R0(config-router)#net 11.11.11.11 0.0.0.0••R1•R1(config-if)#router eigrp 90•R1(config-router)#no au•R1(config-router)#net 10.1.1.0 0.0.0.3•R1(config-router)#net 10.1.1.8 0.0.0.3•R1(config-router)#net 22.22.22.22 0.0.0.0••R2•R2(config-if)#router eigrp 90•R2(config-router)#no au•R2(config-router)#net 10.1.1.8 0.0.0.3•R2(config-router)#net 33.33.33.33 0.0.0.0••3、在R0上配置手动汇总(关闭自动汇总)•R0(config-router)#in s0/0•R0(config-if)#ip summary-address eigrp 90 172.16.8.0 255.255.248.0••4、R1上面shutdown s0/0端口,R2 debug ip eigrp 查看。
路由自动汇总的优点
1,减少路由更新的数量和大小,节省带宽资源
2,减少路由表体积,提高查表速度
3,隐藏详细的网络规划,安全。
路由自动汇总的缺点
1.自动汇总为有类路由
2.只有主类路由,没有具体路由
下面通过两个实验来查看
1.使用默认开启的自动汇总功能
我们可以看到,实际情况是24位网络号的网段被汇总成了8位网络号的主类网络。
2.关闭自动汇总功能
我们可以看到,24位网络号的10.10.10.1作为一个二级路由,放置在主类路由的下一级。
3.使用默认开启路由汇总
这里我们看到24位网络号的172.16.1.0这个网段被汇总为16位的主类网络,而且,当我在当前路由器ping 172.16.2.1时,出现一半能通信一半不能的情况。
这个时候,从R4发出去的信息一半发往左边的172.16.1.0/24的网段,一半发往172.16.2.0/24的网段。
4.关闭路由自动汇总
这个时候我们看到172.16.1.0和172.16.2.0两个网络都被具体的表示路由。
所以后续的ping命令也能产生正常效果。
关闭自动汇总就是VLSM可以生效,如果不关闭自动汇总,你宣告的网段会自动汇总成ABC 类的标准地址,比如你的路由连接着几个子网192.168.1.0/26,192.168.64/26,192.168.128/26,192.168.192/26,如果关闭了自动汇总,其他路由的路由表中就会有这四个分别存在的路由条目,如果没有关闭就只会存在192.168.1.0/24这一个汇总条目。
关闭自动汇总你就可以想宣告哪个段就宣告哪个段,比如用上面的例子,你只想宣告0和128这两个段,如果不关闭自动汇总那么除了0和128外,另外两个网段也会被宣告出去,因为统一汇总成了192.168.1.0/24了。
CIDR与VLSM相对应,CIDR是超网聚合,VLSM是子网划分,如192.168.1.0/24 192.168.10.0/24 192.168.17.0/24 192.168.25.0/24的CIDR可以是192.168.0.0/19,反过来192.168.0.0/19可以VLSM成上面的网段。
classless与classfull相对应,一个是协议数据包中不包含子网掩码,一个是协议数据包中包含子网掩码,比如RIP V1就不发送子网掩码,RIP V2就发送子网掩码,个人认为classfull中有A、B、C类IP地址的说法,比如116.1.1.1/24一定是B类,IOS不会去判断子网掩码是多少位,而classless中是没有A、B、C类IP地址的说法的,比如116.1.1.1/24,如果按IP地范围,它属于B类,但如果看掩码,它属于C类。
主类网络边界中主类指的是A、B、C类IP地址,边界指的是边界路由器,比如160.1.1.1/16与16.1.1.1/8这两IP地址分别配在路由器的两接口上,那这个路由器就是主类边界了,一般情况下都要手动关闭自动汇总,以防止因不连续子网而造成的路由不可达。
自动汇总其实就是自动CIDR,只是这自动完成的,还有手动汇总,不管自动汇总还是手动汇总,都是把子网合并成超网,达到减少路由表中路由条目的目的。
配置Ospf与Eigrp的路由再发布环境:三台路由器串口相连,接口配置如图要求:1.配置EIGRP和关闭自动路由汇总2.在R1上配置LOOP口的EIGRP手工路由汇总3.在R2和R3配置Ospf 接口验证4.在ASBR(R2)上做eigrp和ospf双向再发布5.在R3上将所有loopback 口再发布到ospf中,但loopback2不能被R2,R3学到,不允许使用network命令步骤一:配置三个路由器接口使其连通。
R1的配置R1(config)# interface Loopback0R1(config-if)#ip address 172.168.1.1 255.255.255.0R1(config)# interface Loopback1R1(config-if)#ip address 172.168.2.1 255.255.255.0R1(config)#interface Loopback2R1(config-if)#ip address 172.168.3.1 255.255.255.0R1(config)# interface s0R1(config-if)# ip address 10.1.1.1 255.255.255.0R1(config-if)#clock rate 64000R1(config-if)#no shutdownR2的配置R2(config)#interface s0R2(config-if)#ip address 20.1.1.1 255.255.255.0R2(config-if)#no shutdownR2(config)#interface s1R2(config-if)# ip address 10.1.1.1 255.255.255.0R2(config-if)#no shutdownR3的配置R3(config)# interface Loopback0R3(config-if)#ip address 192.168.1.1 255.255.255.0R3(config)# interface Loopback1R3(config-if)#ip address 192.168.2.1 255.255.255.0R3(config)#interface Loopback2R3(config-if)#ip address 192.168.3.1 255.255.255.0R3(config)# interface s1R3(config-if)# ip address 20.1.1.2 255.255.255.0R3(config-if)#clock rate 64000R3(config-if)#no shutdown步骤二:配置Eigrp ,OspfR1的配置R1(config)# router eigrp 100 →启用EIGRPR1(config-router)# network 10.1.1.0 0.0.0.255 →发布相应接口R1(config-router)#network 172.168.1.0 0.0.0.255R1(config-router)#network 172.168.2.0 0.0.0.255R1(config-router)#network 172.168.3.0 0.0.0.255R1(config-router)# no auto-summary →关闭自动汇总R2的配置R2(config)# router eigrp 100R2(config-router)# network 10.1.1.0 0.0.0.255R2(config-router)# no auto-summaryR2(config)# router ospf 10 →在R2上即启用EIGRP并且启用OSPFR2(config-router)# network 20.1.1.0 0.0.0.255 area 0R3的配置R3(config)# router ospf 10R3(config-router)# network 20.1.1.0 0.0.0.255 area 0步骤三:配置EIGRP手工路由汇总和Ospf接口验证R1的配置R1(config)# interface s0R1(config-if)# ip summary-address eigrp 100 172.168.0.0 255.255.252.0 →手工汇总R2的配置R2(config)# interface s0R2(config-if)# ip ospf authentication message-digest →启用接口验证R2(config-if)# ip ospf message-digest-key 1 md5 ciscoR3的配置R3(config)# interface s1R3(config-if)# ip ospf authentication message-digest →启用接口认证R3(config-if)# ip ospf message-digest-key 1 md5 cisco步骤四:在R2,R3上做路由再发布并控制loopback2不能被R1,R2学到R2的配置R2(config)# router eigrp 100R2(config-router)# redistribute ospf 10 metric 10000 100 255 1 1500→将ospf重分发进eigrp R2(config)# router ospf 10R2(config-router)# redistribute eigrp 100 subnets →将eigrp路由重分发到ospfR3的配置R3(config)# access-list 1 permit 192.168.1.0 0.0.0.255 →定义分发条件列表R3(config)# access-list 1 permit 192.168.2.0 0.0.0.255R3(config)# access-list 2 permit 192.168.3.0 0.0.0.255R3(config)# route-map o-e permit 10 →做映射列表允许相应条目R3 (config-route-map)# match ip address 1 →将列表加载R3(config)# route-map o-e deny 20 →拒绝相应条目的映射列表R3 (config-route-map)# match ip address 2 →将列表加载R3(config)# route-map o-e permit 25 →最后允许其它所有R3(config)# router ospf 10R3(config-router)# redistribute connected subnets route-map o-e步骤五:查看路由表R1#sh ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - 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 - ODRP - periodic downloaded static routeGateway of last resort is not set20.0.0.0/24 is subnetted, 1 subnetsD EX 20.1.1.0 [170/2195456] via 10.1.1.2, 00:03:50, Serial0 →外部路由条目172.168.0.0/16 is variably subnetted, 4 subnets, 2 masksD 172.168.0.0/22 is a summary, 00:03:56, Null0C 172.168.1.0/24 is directly connected, Loopback0C 172.168.2.0/24 is directly connected, Loopback1C 172.168.3.0/24 is directly connected, Loopback210.0.0.0/24 is subnetted, 1 subnetsC 10.1.1.0 is directly connected, Serial0D EX 192.168.1.0/24 [170/2195456] via 10.1.1.2, 00:01:53, Serial0D EX 192.168.2.0/24 [170/2195456] via 10.1.1.2, 00:01:53, Serial0R2#sh ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - 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 - ODRP - periodic downloaded static routeGateway of last resort is not set20.0.0.0/24 is subnetted, 1 subnetsC 20.1.1.0 is directly connected, Serial0172.168.0.0/22 is subnetted, 1 subnetsD 172.168.0.0 [90/2297856] via 10.1.1.1, 00:05:39, Serial110.0.0.0/24 is subnetted, 1 subnetsC 10.1.1.0 is directly connected, Serial1O E2 192.168.1.0/24 [110/20] via 20.1.1.2, 00:03:42, Serial0 →ospf外部路由条目类型2 O E2 192.168.2.0/24 [110/20] via 20.1.1.2, 00:03:42, Serial0R3#sh ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - 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 - ODRP - periodic downloaded static routeGateway of last resort is not set20.0.0.0/24 is subnetted, 1 subnetsC 20.1.1.0 is directly connected, Serial1172.168.0.0/22 is subnetted, 1 subnetsO E2 172.168.0.0 [110/20] via 20.1.1.1, 00:04:48, Serial110.0.0.0/24 is subnetted, 1 subnetsO E2 10.1.1.0 [110/20] via 20.1.1.1, 00:04:48, Serial1C 192.168.1.0/24 is directly connected, Loopback0C 192.168.2.0/24 is directly connected, Loopback1C 192.168.3.0/24 is directly connected, Loopback2步骤六:用ping命令测试连通性R1#ping 192.168.2.1!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 60/60/64 msR3#ping 172.168.1.1!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 60/60/60 ms 步骤七:查看配置R1#sh runhostname R1!interface Loopback0ip address 172.168.1.1 255.255.255.0!interface Loopback1ip address 172.168.2.1 255.255.255.0!interface Loopback2ip address 172.168.3.1 255.255.255.0!interface Serial0ip address 10.1.1.1 255.255.255.0ip summary-address eigrp 100 172.168.0.0 255.255.252.0 5 clockrate 64000!router eigrp 100network 10.1.1.0 0.0.0.255network 172.168.1.0 0.0.0.255network 172.168.2.0 0.0.0.255network 172.168.3.0 0.0.0.255no auto-summary!endR2#sh runhostname R2!interface Serial0ip address 20.1.1.1 255.255.255.0ip ospf authentication message-digestip ospf message-digest-key 1 md5 cisco!interface Serial1ip address 10.1.1.2 255.255.255.0!router eigrp 100redistribute ospf 10 metric 10000 100 255 1 1500network 10.1.1.0 0.0.0.255no auto-summary!router ospf 10redistribute eigrp 100 subnetsnetwork 20.1.1.0 0.0.0.255 area 0!endR3#sh runhostname R3!interface Loopback0ip address 192.168.1.1 255.255.255.0ip ospf network point-to-point!interface Loopback1ip address 192.168.2.1 255.255.255.0ip ospf network point-to-point!interface Loopback2ip address 192.168.3.1 255.255.255.0ip ospf network point-to-point 定义网络类型,否则为主机路由32位!interface Serial1ip address 20.1.1.2 255.255.255.0ip ospf authentication message-digestip ospf message-digest-key 1 md5 cisco clockrate 64000!router ospf 10redistribute connected subnets route-map o-e network 20.1.1.0 0.0.0.255 area 0!access-list 1 permit 192.168.1.0 0.0.0.255 access-list 1 permit 192.168.2.0 0.0.0.255 access-list 2 permit 192.168.3.0 0.0.0.255 route-map o-e permit 10match ip address 1!route-map o-e deny 20match ip address 2!route-map o-e permit 25!end。
EIGRP的介绍EIGRP是一种增强的距离矢量路由协议,同时含有距离矢量路由协议(如rip)和链路状态路由协议(如ospf)的特点。
适用于中、大型网络。
是一种cisco私有路由协议,不支持其他厂商设备。
EIGRP的特征有:增量更新;快速汇聚;支持多种网络层协议(IPV4、IPV6、IPX、AppleTalk);使用单播和多播(多播地址为:224.0.0.10);支持VLSM;支持自动汇总,以及支持在网络中任意位置进行手工汇总;支持等价负载均衡、非等价负载均衡;支持多种路由:内部路由、外部路由和汇总路由;精密的度量值:带宽、延迟、可靠性、负载、MTU(缺省时:带宽、负载); 100%无环的无类路由协议(依据DUAL算法中FC(即AD<最优路由的FD)),。
EIGEP邻居建立的条件:两路由器直连,且直连接口IP处于同一网段;两路由器AS号一致;接口若有认证,认证密钥要一致;metric值一致(K值一致);EIGRP工作原理:即:i、运行EIGRP的路由器通过交互hello包建立邻居关系ii、邻居之间通过交互update交换路由信息保存到拓扑数据库iii、从拓扑表中选择最优的路由提交给IP路由表当链路发生变化时,如去往一个目的IP的路由挂掉,则路由器将从拓扑表中查询是否有FS(可行继任者),若有,则提交给IP路由表变成S(继任者);若没有,则依据DUAL算法会向所有邻居路由器查询。
注:i.不符合FC可行性条件的路由为不可用路由,不写入拓扑表中ii.缺省时,拓扑表中去往同一个网络的FS最多只有4条,通过配置最多可有16条iii.将去往某个目标网络的度量值设置为-1时,表示不可达iiii.不同metric值的多条明细路由汇总后,汇总路由的metric值等于明细路由中最小的metric值ERGRP的实验:实验一:(EIGRP邻居建立过程)1)使用debug eigrp packet命令观察EIGRP邻居建立过程2)使用show ip eigrp neighbors [detail]查看EIGRP邻居实验结果:debug eigrp packetshow ip eigrp neighbors [detail]其中,Address:邻居路由器与本路由器直连接口ip;Interface:邻居路由器与本路由器直连接口Hold:保持间隔Uptime:运行时间SRTT:平均往返时间(可靠分组发送到接收ack确认之间的时间)STO:超时时间,重传队列中的分组重传给邻居之前所等待的时间,RTO=6*SRTT.不足200ms按200msQ cnt:等待重传的个数,正常=0Seq num:序列号实验二:(EIGRP自动汇总及手工汇总)实验结果:i.当自动汇总没关闭时,R1、R2的路由表信息为:R1:R2:注意:画红线处是一条指向null 0 的20.0.0.0网段的汇总路由,它是由于对端接口ip进行汇总,所以学习到这条汇总路由。
EIGRP协议:启用与关闭自动总功能EIGRP支持无类路由协议,在默认情况下,EIGRP开启自动汇总功能,在不连续子网的情况下与有类路由协议行为相似。
当你的网络中有不连续子网时,那么就要关闭自动汇总功能以支持无类路由协议等一下,也许你会问什么是连续子网和不连续子网?连续子网:主类网络号相同,子网掩码相同不连续子网=把连续子网隔开如下图,172.17.2.0/24,172.17.1.0/24网段被192.168.0.0/16网段隔开,成为不连续子网下面用这个图来详细说明启用与关闭汇总功能出现的情况。
1、如果被隔开网段所在的路由器开启了汇总功能auto-summary ,那么路由器会自动将路由条目汇总为主类网络发送出去。
例如,Router1配置了network 172.17.2.0 0.0.0.255,但是进行网络宣告时,发现送出端口f0/0的网段是192.168.1.0/24,与172.17.2.0/24不处于同一连续子网就把172.17.2.0/24总结为主类网络172.17.0.0/16.Router1的路由条目172.17.0.0/16 is variably subnetted, 2 subnets,2 masksD 172.17.0.0/16 is a summary, 00:06:47, Null0C 172.17.2.0/24 is directly connected, FastEthernet0/1C 192.168.1.0/24 is directly connected, FastEthernet0/0D 192.168.2.0/24 [90/30720] via 192.168.1.1, 00:07:06, FastEthernet0/0进行自动汇总时,Router1收到来着Router2宣告的网络号172.17.0.0/16(Router3已经将172.17.1.0/24进行自动总结),发现自己已经有了该网段,就忽略该宣告信息。
EIGRP手工汇总解析实验一.拓扑图二.实验目的及需求1.理解EIGRP中路由汇总的目的及优点。
2.清楚如何进行手工汇总。
3.R3划分子接口,R1,R2之间,R2,R3之间,R3,R4之间,分别用帧中继连接。
4.R1,R2,R3所有端口及R4的s0/1进EIGRP1005.在R4上只能看见一条关于10.0.0.0的路由。
6.在R3上要看到关于192.168.X.0路由明细条目。
三.配置R1: interface FastEthernet0/0ip address 192.168.12.1 255.255.255.0!interface Serial0/0ip address 10.0.13.1 255.255.255.0encapsulation frame-relay//改变封装类型为帧中继类型clock rate 2000000//时钟频率(默认2000000)frame-relay interface-dlci 103//建立点到点帧中继映射no frame-relay inverse-arp//关闭帧中继RP!router eigrp 100//建立EIGRP 100network 10.0.13.1 0.0.0.0//宣告网段network 192.168.12.1 0.0.0.0no auto-summary//关闭自动汇总r1#sho ip route//C 192.168.12.0/24 is directly connected, FastEthernet0/0D 172.0.0.0/16 [90/2681856] via 10.0.13.3, 00:01:54, Serial0/010.0.0.0/24 is subnetted, 2 subnetsC 10.0.13.0 is directly connected, Serial0/0D 10.0.23.0 [90/2681856] via 10.0.13.3, 00:07:22, Serial0/0R2:interface FastEthernet0/0ip address 192.168.12.2 255.255.255.0!interface Serial0/0ip address 10.0.23.2 255.255.255.0encapsulation frame-relayclock rate 2000000frame-relay interface-dlci 203no frame-relay inverse-arp!router eigrp 100network 10.0.23.2 0.0.0.0network 192.168.12.2 0.0.0.0no auto-summaryr2#sho ip routeC 192.168.12.0/24 is directly connected, FastEthernet0/0D 172.0.0.0/16 [90/2681856] via 10.0.23.3, 00:02:24, Serial0/010.0.0.0/24 is subnetted, 2 subnetsD 10.0.13.0 [90/2681856] via 10.0.23.3, 00:07:39, Serial0/0C 10.0.23.0 is directly connected, Serial0/0R3:interface Serial0/0.1 multipoint//建立并进入子接口S0/0.1ip address 10.0.13.3 255.255.255.0frame-relay interface-dlci 301!interface Serial0/0.2 multipoint//建立并进入子接口S0/0.2ip address 10.0.23.3 255.255.255.0frame-relay interface-dlci 302!interface Serial0/1ip address 172.0.0.3 255.255.255.0encapsulation frame-relayip summary-address eigrp 100 192.168.0.0 255.255.0.0 5//对EIGRP的192.168.0.0网段进行手工汇总clock rate 2000000frame-relay map ip 172.0.0.4 314 broadcastno frame-relay inverse-arp!router eigrp 100network 10.0.13.3 0.0.0.0network 10.0.23.3 0.0.0.0network 172.0.0.3 0.0.0.0no auto-summaryr3# sho ip routeD 192.168.12.0/24 [90/2195456] via 10.0.13.1, 00:02:35, Serial0/0.1172.0.0.0/24 is subnetted, 1 subnetsC 172.0.0.0 is directly connected, Serial0/110.0.0.0/24 is subnetted, 2 subnetsC 10.0.13.0 is directly connected, Serial0/0.1C 10.0.23.0 is directly connected, Serial0/0.2D 192.168.0.0/16 is a summary, 00:02:36, Null0R4: interface Serial0/1ip address 172.0.0.4 255.255.255.0encapsulation frame-relayclock rate 2000000frame-relay map ip 172.0.0.3 413 broadcastno frame-relay inverse-arp!router eigrp 100network 172.0.0.4 0.0.0.0auto-summaryr4#sho ip route172.0.0.0/24 is subnetted, 1 subnetsC 172.0.0.0 is directly connected, Serial0/110.0.0.0/24 is subnetted, 2 subnetsD 10.0.13.0 [90/2681856] via 172.0.0.3, 00:00:43, Serial0/1D 10.0.23.0 [90/2681856] via 172.0.0.3, 00:00:43, Serial0/1D 192.168.0.0/16 [90/2707456] via 172.0.0.3, 00:02:56, Serial0/1四.思考1.关于路由汇总,EIGRP和IGRP有什么区别?2.以上实验,试想如果在R1,R2上没有关闭自动汇总,也没有进行手动汇总,在R3的路由表中会出现什么情况?r3# sho ip routeD 192.168.12.0/24 [90/2195456] via 10.0.23.2, 00:00:03, Serial0/0.2[90/2195456] via 10.0.13.1, 00:00:03, Serial0/0.1 172.0.0.0/24 is subnetted, 1 subnetsC 172.0.0.0 is directly connected, Serial0/110.0.0.0/24 is subnetted, 2 subnetsC 10.0.13.0 is directly connected, Serial0/0.1C 10.0.23.0 is directly connected, Serial0/0.23.汇总后为什么R3上会产生一条指向NULL0的汇总路由。
7-03 EIGRP路由自动汇总姓名:张三日期:2010-9-7
实验名称:EIGRP路由自动汇总
试验目标:
◆了解EIGRP协议自动汇总功能。
◆在类的边界自动汇总。
◆在不连续的网络禁止自动汇总
实验环境:
任务:
◆在以上路由器上配置EIGRP协议。
◆在不连续的地址禁用路由汇总
步骤:
1.在网络中配置EIGRP协议
1.1在Router5、2、0、1上
Router(config)#route eigr 10
Router(config-router)#network 172.16.0.0
1.2在Router4、3上
Router(config)#route eigr 10
Router(config-router)#network 172.16.0.0
Router(config-router)#network 10.0.0.0
1.3在Router6上
Router(config)#route eigr 10
Router(config-router)#network 10.0.0.0
2.查看路由汇总结果
2.1在Router6上查看路由
Router#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
10.0.0.0/24 is subnetted, 2 subnets
C 10.0.0.0 is directly connected, Serial3/0
C 10.0.1.0 is directly connected, Serial2/0
D 172.16.0.0/16 [90/20514560] via 10.0.0.1, 00:14:03, Serial3/0
[90/20514560] via 10.0.1.2, 00:13:41, Serial2/0 Router#
路由器看到到172.16.0.0/16网段有两条可用路由。
这是错误的汇总。
2.2在Router6上测试到PC0的连接
Router#ping 172.16.10.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.10.2, timeout is 2 seconds:
..!.!
Success rate is 40 percent (2/5), round-trip min/avg/max = 13/14/15 ms
Router#ping 172.16.10.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.10.2, timeout is 2 seconds:
.!.!.
Success rate is 40 percent (2/5), round-trip min/avg/max = 14/16/19 ms
发现丢包。
这是因为错误的路由汇总造成的。
3.关闭EIGRP的自动汇总
3.1在所有的路由器上运行以下命令
Router(config)#router e 10
Router(config-router)#no auto-summary 关闭自动汇总Router(config-router)#
3.2在Router6上
Router#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
10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
D 10.0.0.0/8 [90/21024000] via 10.0.0.1, 00:01:20, Serial3/0
[90/21024000] via 10.0.1.2, 00:01:03, Serial2/0
C 10.0.0.0/24 is directly connected, Serial3/0
C 10.0.1.0/24 is directly connected, Serial2/0
172.16.0.0/16 is variably subnetted, 11 subnets, 2 masks
D 172.16.0.0/16 is a summary, 00:01:37, Null0
D 172.16.0.0/24 [90/22050560] via 10.0.1.2, 00:00:07, Serial2/0
D 172.16.1.0/24 [90/22048000] via 10.0.1.2, 00:00:28, Serial2/0
D 172.16.2.0/24 [90/21538560] via 10.0.1.2, 00:00:28, Serial2/0
D 172.16.3.0/24 [90/21536000] via 10.0.1.2, 00:00:45, Serial2/0
D 172.16.4.0/24 [90/21026560] via 10.0.1.2, 00:00:45, Serial2/0
D 172.16.5.0/24 [90/21024000] via 10.0.1.2, 00:01:03, Serial2/0
D 172.16.6.0/24 [90/20514560] via 10.0.1.2, 00:01:03, Serial2/0
D 172.16.8.0/24 [90/20514560] via 10.0.0.1, 00:01:20, Serial3/0
D 172.16.9.0/24 [90/21024000] via 10.0.0.1, 00:01:20, Serial3/0
D 172.16.10.0/24 [90/21026560] via 10.0.0.1, 00:01:20, Serial3/0
Router#ping 172.16.0.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.0.2, timeout is 2 seconds:
.!!!! 能够ping通172.16.0.0/24网段
Success rate is 80 percent (4/5), round-trip min/avg/max = 17/23/27 ms
Router#ping 172.16.10.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.10.2, timeout is 2 seconds:
.!!!! 能够ping通172.16.10.0/24网段
Success rate is 80 percent (4/5), round-trip min/avg/max = 14/16/20 ms
Router#
可以看到关闭自动汇总后,在IP的类的边界不会自动汇总。
Router6学到了到所有网段的路由信息。
总结。