关闭EIGRP路由自动汇总
EIGRP路由协议知识点集合

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 的时候只能以单播 形式发送。
-Eigrp末节路由设置

创建高级交换型互联网实验报告时间: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 查看。
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命令也能产生正常效果。
EIGRP-增强型内部网关路由协议

②关闭自动汇总功能(默认是开启的)、
EIGRP视图:no auto-summary
③宣告直连网段:
EIGRP视图:network 直联网段 [反掩码--可有可无]
注:如果不携带反掩码,则使用地址分类中的默认反掩码。
注:不携带反掩码则按照自然分类的掩码长度进行配置
④查看命令:
--show ip protocol 查看协议信息
--继任者(S):到达远端网络最佳路由;
--可行继任者(FS):比继任者差,认为是备份路径, 其条件是:FS_AD < (小于) S_FD
6、EIGRP不等价负载:必须满足的条件,
--首先必须是可行继任者:FS_(的)AD < (小于) S的FD ,通过设置带宽来影响;
--设置V值(variance):FS FD <= (小于等于) (S_FD) * (乘以) V [EIGRP视图] variance xx (数值)
注:V值默认为1,即等价负载。
7、RTP---可靠传输协议
①源路由器组播发送update报文给所有邻居;
②邻居收到update报文后会回复Ack消息;如果某个邻居没有回复;
③源路由器会单播再次发送update给没有回复Ack的邻居;如果邻居始终没有回复Ack,则源路由器会持续发送16次后认为该邻居down。
--show ip eigrp neighbor 查看邻居信息
--show ip route [eigrp] 查看路由表[通过EIGRP学习的路由]
--show ip eigrp topology 查看拓扑表(存放所有通过EIGRP学习的路由)
8、弥散更新算法:
--保存所有路由信息(存放拓扑表);
RIP路由汇总

关闭自动汇总就是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重发布

配置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的介绍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进行汇总,所以学习到这条汇总路由。
cisco 私有路由协议 Eigrp 详解

特别值得一提的是:
七、EIGRP 建立邻接关系 1. 区别邻接和邻居:邻居指的是物理直连并且在同一个子网内的路由器。邻接指的是 在邻居的基础之上通过 hello 分组建立的关系。 2. 建立邻接的条件:(1)K 值一样(查看 K 值:show ip protocol) (2)属于同一 子网 (3)同一个自治系统 K 值修改:在 eigrp 进程下: R2(config-router)#metric weights 0 1 1 1 1 1;0 表示 TOS,5 个 1 分别对应 K1-K5 如果直连不在同一个子网:将会出现下面的 Error 消息:
查询:通常是组播,也有可能是单播,需要确认,被可靠传输。 应答:用于对查询进行应答,单播可靠发送。 ACK:对更新、查询、应答进行确认,单播发送(只能为单播)。
五、EIGRP 计时器 1. 保持计时器(Hold time):默认为 Hello 时间的 3 倍,但是修改 Hello 时间后,保 持时间不会自动*3,而是需要手动修改。超过这时间段将重置临接关系。接口模式 下修改计时器值:ip hello-interval eigrp / ip hold-time eigrp. 2. RTO 定时器:指重传数据包之前需要等待的时间(连续单播),即在 RTO 到期时还没 收到 ACK,那么该数据包将被重传 16 次或者直到保持计时器到期。 3. 组播流计时器:(查看方式为 show ip interface eigrp)确定了在组播转换到单播
重传需要等待的时间。 4. 主动计时器:指在该时间内没有收到查询应答那么就陷入 SIA 状态,并重置临接关
系。在发送查询时启动计时;全局模式下修改主动计时器值,默认为 3 分钟 timer active… 六、EIGRP 度量 EIGRP metric 计算公式:
EIGRP协议:启用与关闭自动总功能

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手工汇总

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的汇总路由。
EIGRP路由协议汇总

EIGRP路由协议汇总⼀、基本概念:1.EIGRP为增强的内部⽹关路由协议,是cisco的专有协议。
2.EIGRP的⼀般管理距离为90(interior eigrp),汇总的管理距离为5(summary eigrp),从外部分发进来的为170(exterior eigrp);协议号为ip 88。
3.EIGRP是⼀个Advanced distance vector;能够Rapid convergence;是100% loop-free classless routing;是唯⼀⼀个⽀持⾮等价负载均衡的路由协议(默认4条最⼤16条);以组播(224.0.0.10)或单播进⾏更新。
4.缺省使⽤总带宽的50%,可⽤“bandwidth-percent eigrp”更改百分⽐。
5.EIGRP是⾮周期性更新,只有在拓扑有变化时才对变化的东西进⾏增量更新。
并且只针对变化影响到的路由器进⾏更新。
6.运⾏EIGIP的接⼝必须从他的直连的邻居处获得更新。
7.由于EIGRP是⼀个为Adverance distance vector,具有distance vector的边界⾃动汇总的特性所以在配置时要“no auto”8.EIGRP的三个存储单元:邻居数据库(存放邻居及状态);topology table(相当与ospf的数据库,存放状态信息);routinf table9.EIGRP的5种包:hello:建⽴邻接关系,keeplive(组播)query:向邻居查找路由信息(组播)reply:对邻居的query查找进⾏回应(单播)update:以增量的⽅式发送路由更新(组播或单播)ack:对可靠包的确认(单播)★其中query,reply,update为可靠包(即必须得到ACK回应);hell包和ack包为不可靠包。
⼆、EIGRP采⽤的metric:1.EIGRP采⽤以下组合值作为metric进⾏路由选择(5个):bandwidth,delay,reliable ,load,mtu2.metric的算法:Metric = [K1 x BW + ((K2 x BW) / (256 –load)) + K3 x delay]By default: K1 = 1, K2 = 0, K3 = 1, K4 = 0, K5 = 0metric=[delay+107/BW]*256“dely,mtu等”都可在sh int 。
实验3: EIGRP路由汇总

5.3.2 实验3:EIGRP路由汇总1.实验目的通过本实验可以掌握:①路由汇总的目的;②EIGRP自动汇总;③EIGRP手工汇总;④指向null0路由的含义。
2.实验拓扑本实验拓扑结构图如图5-3所示。
图5-3 EIGRP路由汇总3.实验步骤本实验只给出路由器R4的配置,路由器R1、R2和R3的配置同5.2节实验1完全相同。
默认时EIGRP的自动汇总是开启的,自动汇总只对本地产生的EIGRP路由汇总,可以通过”no auto-summary”命令关闭自动汇总,然后进行手工汇总,R4的配置如下:R4(config)#router eigrp 1R4(config-router)#no auto-summaryR4(config-router)#network 4.4.4.0 255.255.255.0R4(config-router)#network 192.168.34.0R4(config)#interface s0/0/0R4#(config-if)#ip summary-address eigrp 1 4.4.0.0 255.255.252.0//配置EIGRP手工路由汇总4.实验调试①在R4 s0/0/0执行汇总之前,在R3上查看路由表:R4#show 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 setD 192.168.12.0/24 [90/21024000]via 192.168.23.2,00;23;31,Serial0/0/11.0.0.0/24 is subnetted,1 subnetsD 1.0.0.0[90/21152000]via 192.168.23.2,00;00;18,Serial0/0/14.0.0.0/24 is subnetted,4 subnetsD 4.0.0.0[90/20640000]via 192.168.34.3,00;01;02,Serial0/0/0D 4.0.0.0[90/20640000]via 192.168.34.3,00;01;02,Serial0/0/0D 4.0.0.0[90/20640000]via 192.168.34.3,00;01;02,Serial0/0/0D 4.0.0.0[90/20640000]via 192.168.34.3,00;01;02,Serial0/0/0以上输出表明路由器R3的路由表中有4条明细路由。
EIGRP实验

D10.0.0ቤተ መጻሕፍቲ ባይዱ0/8 [90/2297856] via 172.16.1.1, 00:10:10, Serial1/0
D 192.168.0.0/24 [90/2297856] via 172.16.1.6, 00:08:14, Serial1/1
R1(config-router)#exit
R1(config)#
随后在R2上观察路由表的变化,如下显示:
R2#show ip route eigrp
172.16.0.0/16 is variably subnetted, 3 subnets, 2 masks
D 172.16.0.0/16 is a summary, 00:07:26, Null0
Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 4/43/92 ms
R2#
6、路由器R2作为企业的出口路由器,由于其配置了静态路由,因此其可以直接访问外部,但是内部的R1和R5路由器由于缺少路由,因此无法访问外网。下面显示了R1路由器的路由表和其向外部发起ping的访问结果:
R2#
7、我们注意到在R2路由器上有一条指向s1/0口的10.0.0.0/8的汇总路由,这是EIGRP路由协议自动汇总的特性体现。可以使用no auto-summary命令关闭。如下:
R1(config)
EIGRP实验

EIGRP基本配置实验1.实验拓扑:2.实验需求:按照上述拓扑图配置,全网运行EIGRP路由协议,要求R4环回口4.4.4.4/24能够ping通R1 环回口1.1.1.1/24。
3.实验步骤:(1)R4、R2、R1上配置基本IP地址,能够满足直连链路互通。
R4(config)#interface loopback 0R4(config-if)#ip address 4.4.4.4 255.255.255.0R4(config-if)#no shutdownR4(config)#interface serial 1R4(config-if)#ip address 24.0.0.4 255.255.255.0R4(config-if)#no shutdownR2(config)#interface serial 1R2(config-if)#ip address 24.0.0.2 255.255.255.0R2(config-if)#no shutdownR2(config-if)#clock rate 64000R2(config)#interface serial 0R2(config-if)#ip address 12.0.0.2 255.255.255.0R2(config-if)#no shutdownR2(config-if)#clock rate 64000R1(config)#int loopback 0R1(config-if)#ip address 1.1.1.1 255.255.255.0R1(config)#int serial 0R1(config-if)#ip address 12.0.0.1 255.255.255.0R1(config-if)#no shutdown(2)在R4 、R2、R1上运行EIGRP路由协议,并且发布直连网段。
R4(config)#router eigrp 100 //启用EIGRP路由协议,AS号为100对于EIGRP AS号的解释:AS称为自治系统,对于EIGRP,在EIGRP上启用是必须跟AS号,如果AS号不同,路由器会认为两台路由器运行在不同的AS上,所以不能形成邻居关系。
EIGRP 的一些知识要点的归纳

不稳定的环境中:如果确认包没有确认,16次以后自动复位,重新建立邻居关系EIGRP 的邻居发现:1.发送多播包224.0.0.102. B然后发送Update包3. A确认Ack4. A然后在发送Update包,交换路由信息5.然后B确认6. 进入稳定收敛状态检查EIGRP 的连接:RouterA#debug eigrp packetsRouterA#debug ip eigrpEigrp Metric=bandwidth+delayEIGRP 离散的更新算法:选择Successor 和Feasible Successor1.选择无环路花费低的Successor,同时选择FS.2.如果没有FS ,路由表会向邻居查询,然后重新计算Successor3. 成为FS的条件AD<FD(当前运行的)EIGRP 选择Successor:1. 从EIGRP 的Topology 表选择最好的Susscessor2. 然后放到Route 表里面路由3.成为FS的条件AD<FD(当前运行的)配置EIGRP 的协议:1. Router(config)#router Eigrp ASRouter(config-Router)#network network-number [widecard-mask]Router(config)#Passive interface配置默认路由1. Router(config-router)#ip route 默认静态路由检查EIGRP 协议:1. RouterA#show ip protocolsEigrp 最大的跳数为100跳Eigrp 在网络边界能做自动汇总,可以关闭,最大等价负载均衡为6条,默认是4条如果是通过在发布的情况下,EIGRP 的AD 为170.EIGRP 的可选配置:1. EIGRP 的路由汇总EIGRP 汇总的目的减少路由表的大小减少了Update包的数量查询边界2.自动EIGRP 汇总(基于类的网络上)可以对不连续子网有问题,进行汇总可以关掉自动汇总3.手动汇总:关闭自动汇总:Router(config)#no auto-summary可以在任意的路由器的端口上进行配置汇总的路由指向NULL0,如果进来路由在汇总路由不匹配,直接丢给NULL0端口,如果汇总路由里的具体路由全部丢失,汇总路由才会丢失。
IGRP和EIGRP

Interior Gateway Routing Protocol(IGRP)1.Cisco专有的距离矢量协议(什么是专有?专有的意思就是说网络中要运行IGRP协议,所用的路由器必须是Cisco的路由器.)当你配置IGRP的时候,你必须以AS号作为配置参数,所有的routers必须使用相同的AS号来共享路由表信息.2. AD 100Metric(度量)采用了以下几个参数:带宽延迟可靠性负载最大传输单元(MTU)默认使用了带宽和延迟做为它的度量.虽然IGRP没有使用跳数做为它的度量,但IGRP也有最大跳数,值为255,默认时为100 因此解决RIP最大15跳的限制,使的IGRP更加适合于大型网络.3.IGRP和RIP的比较:IGRP RIPAD 100 120Metric 5参数跳数更新时间 90S 30S是否有类有 V1有V2无是否支持大型网络支持不支持DV or Link-state DV DV最大跳 255,默认100 15更新地址 255.255.255.255 V1 255.255.255.255 V2 224.0.0.9是否支持VLSM 否否是否支持不连续子网否 RIPV1不V2支持4.防止路由选择环路的机制:.水平分割.破坏逆转更新保持定时器.触发更新5.默认定时器值IGRP Timers(1)路由更新计时:默认90秒(2)路由无效计时:默认270秒(3)保持计时器:默认280秒(3倍更新时间+10秒)(4)路由刷新时间: 默认630秒6.IGRP默认也是支持4条等价负载均衡,最大支持6条,但是IGRP还可以支持非等价负载均衡。
(什么是非等价均衡?就是去目的网络的度量不同,IGRP可以在度量不同的路径上转发数据包,RIP则不能)7.配置IGRP路由STEP1:启动IGRP进程Router(config)#router igrp AS号注意:如果要让路由器之间共享路由信息,那么每个路由器上的AS号必须相同STEP2:宣告网络Router(config-router)#network xx.xx.xx.xx (IGRP也是主类宣告)实验拓扑:8.验证调试命令Show ip routeShow ip protocolsclear ip route *debug ip igrp events 收发的路由数量以及路由的类型(内部外部还是系统路由,这些概念在NP中讲)debug ip igrp transaction 收发的路由条目,包括网络地址和度量9.被动接口的配置Router(config)#router igrp AS号Router(config-router)#passive-interface xxIGRP被动接口也是只收不发的EIGRP Features and Operation1.Cisco专有的混合型协议,是无类别路由协议,EIGRP是1种无分类(classless),增强的距离向量路由协议,和IGRP类似,EIGRP也使用AS,但是和IGRP不同的是,EIGRP在它的路由更新信息中要包含子网掩码的信息.这样,在我们设计的网络的时候,就允许我们使用VLSM和summarization.EIGRP有时候也算是混合型路由协议,因为它同时具有了距离向量路和链路状态的一些特征:比如它不像OSPF那样发送链路状态包而发送传统的距离向量更新;EIGRP也有链路状态协议的特征比如它在相邻router启动的时候同步路由表,然后只在拓扑结构发生变化的时候发送一些更新.这样就使得EIGRP能够很好的在1个大型网络中工作2.AD 90 (内部EIGRP路由)内部路由就是属于同一AS内的路由AD 170 (外部EIGRP路由)外部EIGRP路由就是重分布进来的路由,这些路由代表源自其他AS的路由Metric(度量)采用的参数和IGRP 相同,但是度量值是IGRP的256倍.3.EIGRP的四大功能部件:协议相关模块PDM可靠传输协议(RTP) 管理EIGRP路由器间的消息通信邻居的发现和恢复弥散更新算法(DUAL)Protocol-Dependent ModuleEIGRP的1大特点是它可以支持几种网络层协议:IP,IPX和AppleTalk等.能像EIGRP那样支持数种网络层协议的还有Intermediate System-to-Intermediate System(IS-IS)协议,但是这个协议只支持IP和Connectionless Network Service(CLNS).EIGRP通过PDMs来支持不同的网络层协议.每个EIGRP的PDM保持1个单独的路由信息表来装载某种协议(比如IP)的路由信息.也就是有IP/EIGRP表,IPX/EIGRP的表和AppleTalk/EIGRP表Reliable Transport Protocol(RTP)EIGRP使用一种叫做RTP的私有协议,来管理使用了EIGRP的router之间的通信,如RTP的名字,可靠(reliable)即为这个协议的关键.RTP负责EIGRP数据包到所有邻居的有保证和按顺序的传输.它支持多目组播或单点传送数据包的混合传输.出于对效率的考虑只有某些E IGRP数据包被保证可靠传输.RTP确保在相邻router间正在进行的通信能够被维持.因此,它为邻居维护了一张重传表.该表指示还没有被邻居确认的数据包.未确认的可靠数据包最多可以被重传1 6次或直到保持时间超时,以它们当中时间更长的那个为限.EIGRP所使用的多目组播地址是224.0.0.10Diffusing Update Algorithm(DUAL)EIGRP使用DUAL来选择和保持到远端的最佳路径.它能使router判决某邻居通告的一个路径是否处于循环状态,并允许router找到替代路径而无须等待来自其他router的更新.这样做有助于加快网络的汇聚.这个算法顾及以下几点:(1.)备份的路由线路(2.)支持VLSM(3.)动态路由恢复(4.)没有发现线路的话发送查询寻找新路线4.建邻居的必要条件:收到Hello包 (EIGRP使用Hello包来发现和维持邻居关系,Hello发送地址是组播224.0.0.10)AS号相同相同的K值(K值是计算度量时和参数组合使用的系数)链路状态协议趋向于使用Hello信息来建立邻居关系,它不会像距离向量那样周期性的发送路由更新.为了保持邻居关系,运行了EIGRP的router必须持续从邻居那里收到Hellos 如果不在1个AS内,router之间是不会共享路由信息的,也不会建立邻居关系.这样做的优点是在大型网络中可以减少特定某个AS内路由信息的传播当EIGRP发现新邻居的时候,就开始通告整个路由表给别的router,当所有的router都知道新成员的加入,学习到新的路径以后,从那开始,路由表中有变动的部分才会传播给别的router.当router接收到邻居的更新以后,把它们保存在本地数据库表里5.EIGRP的三张表:邻居表:存放有关已建立的邻居的信息拓扑表:保存从每个邻居那里收到的路由通告,其中就有备份路由,即可行后继路由表:存放着当前转发数据包的路由条目6.基本概念:可行距离(FD):到达每一个目的地的最小度量将作为该目的网络的可行距离。
eigrp路由汇总

EIGRP路由汇总实验报告实验题目:EIGRP路由汇总实验实验目的:了解ERGRP不同汇总的特点实验内容:1、ERGRP使用自动汇2、ERGRP不使用自动汇总3、ERGRP使用手动汇总实验环境:CISCO3640 路由3台实验拓扑图:实验步骤:一、进行路由的基本配置1、对westasman路由进行基本配置Router>enaRouter#conf tRouter(config)#hostname wanstanmanwanstanman(config)#int lo 9wanstanman(config-if)#ip add 172.16.8.1 255.255.255.0 wanstanman(config-if)#int lo 0wanstanman(config-if)#ip add 172.16.9.1 255.255.255.0 wanstanman(config-if)#int lo 1wanstanman(config-if)#ip add 172.16.10.1 255.255.255.0 wanstanman(config-if)#int lo 2wanstanman(config-if)#ip add 172.16.11.1 255.255.255.0 wanstanman(config-if)#int lo 3wanstanman(config-if)#ip add 172.16.12.1 255.255.255.0 wanstanman(config-if)#int lo 4wanstanman(config-if)#ip add 172.16.13.1 255.255.255.0 wanstanman(config-if)#int lo 5wanstanman(config-if)#ip add 172.16.14.1 255.255.255.0 wanstanman(config-if)#int lo 6wanstanman(config-if)#ip add 172.16.15.1 255.255.255.0 wanstanman(config-if)#endwanstanman#conf twanstanman(config)#int se0/0wanstanman(config-if)#ip add 192.168.64.2 255.255.255.252 wanstanman(config-if)#no shutwanstanman(config-if)#clock r 64000wanstanman(config)#int s0/1wanstanman(config-if)#ip add 192.168.64.6 255.255.255.252 wanstanman(config-if)#no shutwanstanman(config-if)#clock r 64000wanstanman(config-if)#endwanstanman#show runinterface Loopback0ip address 172.16.9.1 255.255.255.0!interface Loopback1ip address 172.16.10.1 255.255.255.0!interface Loopback2ip address 172.16.11.1 255.255.255.0!interface Loopback3ip address 172.16.12.1 255.255.255.0!interface Loopback4ip address 172.16.13.1 255.255.255.0!interface Loopback5ip address 172.16.14.1 255.255.255.0!interface Loopback6ip address 172.16.15.1 255.255.255.0!interface Loopback9ip address 172.16.8.1 255.255.255.0!interface Serial0/0ip address 192.168.64.2 255.255.255.252serial restart-delay 0clockrate 64000!interface Serial0/1ip address 192.168.64.6 255.255.255.252serial restart-delay 0clockrate 640002、对sanjose1路由进行基本配置Router>enaRouter#conf tsanjose1(config)#int s0/0sanjose1(config-if)#ip add 192.168.64.1 255.255.255.0sanjose1(config-if)#no shutsanjose1(config-if)#exitsanjose1(config)#int fa1/0sanjose1(config-if)#ip add 172.16.1.1 255.255.255.0sanjose1(config-if)#no shutsanjose1(config-if)#endsanjose1#show runinterface Serial0/0ip address 192.168.64.1 255.255.255.0interface FastEthernet1/0ip address 172.16.1.1 255.255.255.0sanjose1#ping 192.168.64.2Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.64.2, timeout is 2 seconds: !!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 8/16/24 ms sanjose1#3、对sanjose2路由进行基本配置Router>enaRouter#conf tsanjose2(config)#int se0/0sanjose2(config-if)#ip add 192.168.64.5 255.255.255.252sanjose2(config-if)#no shutsanjose2(config-if)#exitsanjose2(config)#int fa1/0sanjose2(config-if)#ip add 172.16.1.2 255.255.255.0sanjose2(config-if)#no shutsanjose2(config-if)#endsanjose2#show run!interface Serial0/0ip address 192.168.64.5 255.255.255.252interface FastEthernet1/0ip address 172.16.1.2 255.255.255.0sanjose2#ping 172.16.1.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 172.16.1.1, timeout is 2 seconds: .!!!!Success rate is 80 percent (4/5), round-trip min/avg/max = 12/33/48 ms sanjose2#ping 192.168.64.6Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.64.6, timeout is 2 seconds: !!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 4/22/40 ms sanjose2#(通过基本配置使各路由达到了实验平台的要求)二、使用自动汇总查看实验结果1、对westasman路由进行配置wanstanman#conf twanstanman(config)#router eigrp 100wanstanman(config-router)#network 192.168.64.0wanstanman(config-router)#network 172.168.0.0wanstanman(config-router)#auto-summarywanstanman(config-router)#endwanstanman#show ip route172.16.0.0/16 is variably subnetted, 9 subnets, 2 masksC 172.16.12.0/24 is directly connected, Loopback3C 172.16.13.0/24 is directly connected, Loopback4C 172.16.14.0/24 is directly connected, Loopback5C 172.16.15.0/24 is directly connected, Loopback6C 172.16.8.0/24 is directly connected, Loopback9C 172.16.9.0/24 is directly connected, Loopback0C 172.16.10.0/24 is directly connected, Loopback1C 172.16.11.0/24 is directly connected, Loopback2D 172.16.0.0/16 [90/2172416] via 192.168.64.1, 00:00:54, Serial0/0[90/2172416] via 192.168.64.5, 00:00:54, Serial0/1 192.168.64.0/30 is subnetted, 2 subnetsC 192.168.64.0 is directly connected, Serial0/0C 192.168.64.4 is directly connected, Serial0/1wanstanman#2、对sanjose1路由进行配置sanjose1#conf tsanjose1(config)#router eigrp 100sanjose1(config-router)#network 192.168.64.0sanjose1(config-router)#network 172.16.0.0sanjose1(config-router)#auto-summarysanjose1(config-router)#endsanjose1#show ip route172.16.0.0/16 is variably subnetted, 2 subnets, 2 masksD 172.16.0.0/16 is a summary, 00:06:32, Null0C 172.16.1.0/24 is directly connected, FastEthernet1/0192.168.64.0/24 is variably subnetted, 2 subnets, 2 masksC 192.168.64.0/24 is directly connected, Serial0/0D 192.168.64.4/30 [90/2681856] via 192.168.64.2, 00:06:37, Serial0/0 sanjose1#3、对sanjose2路由进行配置sanjose2#conf tsanjose2(config)#router eigrp 100sanjose2(config-router)#network 192.168.64.0sanjose2(config-router)#network 172.16.0.0sanjose2(config-router)#autosanjose2(config-router)#auto-summarysanjose2(config-router)#endsanjose2#show ip routesanjose2#172.16.0.0/16 is variably subnetted, 2 subnets, 2 masksD 172.16.0.0/16 is a summary, 00:00:16, Null0C 172.16.1.0/24 is directly connected, FastEthernet1/0192.168.64.0/24 is variably subnetted, 3 subnets, 2 masksD 192.168.64.0/24 is a summary, 00:00:11, Null0D 192.168.64.0/30 [90/2681856] via 192.168.64.6, 00:00:22, Serial0/0C 192.168.64.4/30 is directly connected, Serial0/0(使用路由汇总可使路由表中的路由条目减少,但是会造成很多IP地址不必要的浪费)二、不使用自动汇总查看实验结果1、对westasman路由进行配置wanstanman#conf twanstanman(config)#router eigrp 100wanstanman(config-router)#network 172.16.0.0wanstanman(config-router)#network 192.168.64.0wanstanman(config-router)#no auto-summarywanstanman(config-router)#endwanstanman#show ip routeGateway of last resort is not set172.16.0.0/24 is subnetted, 9 subnetsC 172.16.12.0 is directly connected, Loopback3C 172.16.13.0 is directly connected, Loopback4C 172.16.14.0 is directly connected, Loopback5C 172.16.15.0 is directly connected, Loopback6C 172.16.8.0 is directly connected, Loopback9C 172.16.9.0 is directly connected, Loopback0C 172.16.10.0 is directly connected, Loopback1C 172.16.11.0 is directly connected, Loopback2D 172.16.1.0 [90/2172416] via 192.168.64.5, 00:00:51, Serial0/1[90/2172416] via 192.168.64.1, 00:00:51, Serial0/0 192.168.64.0/24 is variably subnetted, 3 subnets, 2 masksD 192.168.64.0/24 [90/2684416] via 192.168.64.5, 00:07:21, Serial0/1C 192.168.64.0/30 is directly connected, Serial0/0C 192.168.64.4/30 is directly connected, Serial0/1wanstanman#2、对sanjose1路由进行配置sanjose1#conf tsanjose1(config)#router eigrp 100sanjose1(config-router)#network 192.168.64.0sanjose1(config-router)#network 172.16.0.0sanjose1(config-router)#no auto-summarysanjose1(config-router)#endsanjose1#show ip rout172.16.0.0/24 is subnetted, 9 subnetsD 172.16.12.0 [90/2300416] via 172.16.1.2, 00:02:28, FastEthernet1/0D 172.16.13.0 [90/2300416] via 172.16.1.2, 00:02:28, FastEthernet1/0D 172.16.14.0 [90/2300416] via 172.16.1.2, 00:02:28, FastEthernet1/0D 172.16.15.0 [90/2300416] via 172.16.1.2, 00:02:28, FastEthernet1/0D 172.16.8.0 [90/2300416] via 172.16.1.2, 00:02:28, FastEthernet1/0D 172.16.9.0 [90/2300416] via 172.16.1.2, 00:02:28, FastEthernet1/0D 172.16.10.0 [90/2300416] via 172.16.1.2, 00:02:28, FastEthernet1/0D 172.16.11.0 [90/2300416] via 172.16.1.2, 00:02:28, FastEthernet1/0C 172.16.1.0 is directly connected, FastEthernet1/0192.168.64.0/24 is variably subnetted, 3 subnets, 2 masksD 192.168.64.0/30 [90/2684416] via 172.16.1.2, 00:07:04, FastEthernet1/0 C 192.168.64.0/24 is directly connected, Serial0/0D 192.168.64.4/30 [90/2172416] via 172.16.1.2, 00:09:59, FastEthernet1/03、对sanjose2进行配置sanjose2#conf tsanjose2(config)#router eigrp 100sanjose2(config-router)#network 192.168.64.0sanjose2(config-router)#network 172.16.0.0sanjose2(config-router)#no auto-summarysanjose2(config-router)#endsanjose2#show ip routGateway of last resort is not set172.16.0.0/24 is subnetted, 9 subnetsD 172.16.12.0 [90/2297856] via 192.168.64.6, 00:02:36, Serial0/0D 172.16.13.0 [90/2297856] via 192.168.64.6, 00:02:36, Serial0/0D 172.16.14.0 [90/2297856] via 192.168.64.6, 00:02:36, Serial0/0D 172.16.15.0 [90/2297856] via 192.168.64.6, 00:02:36, Serial0/0D 172.16.8.0 [90/2297856] via 192.168.64.6, 00:02:36, Serial0/0D 172.16.9.0 [90/2297856] via 192.168.64.6, 00:02:36, Serial0/0D 172.16.10.0 [90/2297856] via 192.168.64.6, 00:02:36, Serial0/0D 172.16.11.0 [90/2297856] via 192.168.64.6, 00:02:36, Serial0/0C 172.16.1.0 is directly connected, FastEthernet1/0192.168.64.0/24 is variably subnetted, 3 subnets, 2 masksD 192.168.64.0/30 [90/2681856] via 192.168.64.6, 00:07:13, Serial0/0D 192.168.64.0/24 [90/2172416] via 172.16.1.1, 00:07:14, FastEthernet1/0C 192.168.64.4/30 is directly connected, Serial0/0sanjose2#(如果不使用路由汇总我们可以发现每个路由器学到的路由表太过于繁琐)三、使用手动汇总并查看实验结果1、对westasman进行配置wanstanman#conf twanstanman(config)#int s0/0wanstanman(config-if)#ip summary-address eigrp 100 172.16.8.0 255.255.255.248 wanstanman(config-if)#exitwanstanman(config)#int se0/1wanstanman(config-if)#ip summary-address eigrp 100 172.16.8.0 255.255.248.0 wanstanman(config-if)#end2、查看sanjose1的路由表sanjose1#show ip rout172.16.0.0/16 is variably subnetted, 2 subnets, 2 masksD 172.16.8.0/21 [90/2300416] via 172.16.1.2, 00:01:55, FastEthernet1/0C 172.16.1.0/24 is directly connected, FastEthernet1/0192.168.64.0/24 is variably subnetted, 3 subnets, 2 masksD 192.168.64.0/30 [90/2684416] via 172.16.1.2, 00:01:30, FastEthernet1/0C 192.168.64.0/24 is directly connected, Serial0/0D 192.168.64.4/30 [90/2172416] via 172.16.1.2, 00:24:24, FastEthernet1/0 sanjose1#3、查看sanjose1的路由表sanjose2#show ip routeGateway of last resort is not set172.16.0.0/16 is variably subnetted, 2 subnets, 2 masksD 172.16.8.0/21 [90/2297856] via 192.168.64.6, 00:02:15, Serial0/0C 172.16.1.0/24 is directly connected, FastEthernet1/0192.168.64.0/24 is variably subnetted, 3 subnets, 2 masksD 192.168.64.0/30 [90/2681856] via 192.168.64.6, 00:01:51, Serial0/0D 192.168.64.0/24 [90/2172416] via 172.16.1.1, 00:24:46, FastEthernet1/0 C 192.168.64.4/30 is directly connected, Serial0/0sanjose2#(使用手动的路由汇总,不仅可以使路由的条目减少,而且还可以达到地址最合理的使用)总结:通过上面的实验可以使我得出,在不同的环境下应该使用不同的EIGRP路由汇总功能,这样可以节约路由器的资源。
cisco路由器EIGRP自动汇总和手工汇总详解

cisco路由器EIGRP自动汇总和手工汇总详解推荐文章大一新生入党申请书范文汇总热度:上半年工作总结(7篇)上半年工作总结汇总热度:建党95周年征文汇总18篇热度:建党95周年演讲稿汇总10篇热度:“两学一做”学习教育活动的详解热度:电脑使用很普遍,不少用户对于路由器不少很了解,小编为大家介绍路由器相关文章,欢迎大家阅读。
使用人工汇总的特点如下:1.可以基于接口的配置汇总2.当在接口做了人工汇总以后,路由器将创建一条指向null0口的路由,这样做是为了防止路由循环3.当汇总之前的路由down掉以后,汇总路由将自动从路由表里被删除4.汇总路由的度取决于特定路由中度最小的来做为自己的度自动汇总能不能汇总学来的路由?在三台路由器上用EIGRP全部宣告出去后,在R3上查看路由表出现的明细的路由条目,有R1的4个loopback口的子网地址。
D: 1.1.0.0/22路由手工汇总能不能汇总学来的路由?R1:R1(config)#router eigrp 90:R1(config-router)#network 1.1.1.0R1(config-router)#network 1.2.1.0R1(config-router)#network 1.3.1.0R1(config-router)#network 1.4.1.0R1(config-router)#network 12.0.0.0R1(config-router)#no auto-summary//在EIGRP进程下关闭自动汇总R2:R2(config)#router eigrp 90R2(config-router)#network 12.0.0.0R2(config-router)#network 23.0.0.0R2(config-router)#no auto-summary //关闭自动汇总再进入R2的s2/3街接口下,做手工汇总,将R1的4个loopback 口地址汇总成1.1.0.0/22的网络.(在出接口做比较明显)R2(config)#int s2/3:R2(config-if)#ip summary-address eigrp 90 1.1.0.0 255.255.252.0R3:R3(config)#router eigrp 90R3(config-router)#network 3.3.3.0R3(config-router)#network 23.0.0.0设置好后,再R3上查看路由表会出现一条:D:1.1.0.0/22路由自动汇总能不能学习汇总路由?还是在R3上查看路由表会出现R1的:D: 1.0.0.0/8 一条路由。
3.3.9 项目案例 用EIGRP实现企业网络互联

项目实训用EIGRP实现企业网络互联实训目的通过本项目实训可以掌握:1.EIGRP特征和基本术语2.在路由器上启动EIGRP路由进程3.激活参与EIGRP路由协议的接口4.EIGRP度量值的计算5.可行距离(FD)、通告距离(RD)以及可行性条件(FC)的含义6.邻居表、拓扑表和路由表的含义7.被动接口的含义和配置8.EIGRP路由自动汇总的条件和手工路由汇总配置9.EIGRP验证配置10.EIGRP非等价负载均衡配置11.查看和调试EIGRP路由协议相关信息实训拓扑项目实训网络拓扑如图3-10所示。
图3-10配置EIGRP实现企业网络互联实训要求为了确保资源共享、办公自动化和节省人力成本,公司D申请2条专线将北京总部和武汉家分公司网络连接起来。
张同学正在该公司实习,为了提高实际工作的准确性和工作效率,项目经理安排他在实验室环境下完成测试,为设备上线运行奠定坚实的基础。
小张用1台路由器模拟ISP的网络,总部通过静态默认路由实现到ISP的连接。
总部和分公司的内部网络通过边界路由器实现VLAN间路由,总部和分公司运行EIGRP路由协议实现网络互联,他需要完成的任务如下:1.北京和武汉两地交换机上配置VLAN、Trunk以及完成VLAN端口划分等。
2.配置路由器接口的IP地址以及子接口封装和IP地址。
3.测试以上所有直连链路的连通性。
4.在北京和武汉路由器上配置EIGRP,关闭自动路由汇总。
5.在北京到武汉的链路上配置EIGRP非等价负载均衡,从而有效利用所有链路带宽。
提示:必要时修改接口带宽和延迟。
6.为了减少向局域网发送不必要的EIGRP路由更新,将两地路由器适当接口配置为被动接口。
7.在北京总部到武汉分公司的链路上,配置EIGRP MD5验证,提高网络安全性。
8.在北京总部路由器上,将串行接口发送Hello包周期改为20秒,维持时间改为60秒。
9.修改两地串行链路接口上可供EIGRP使用的带宽百分比为40%。
EIGRP协议学习笔记

EIGRP介绍:EIGRP是思科私有协议,它属于增强型内部网关路由协议(高级矢量协议),它有时也被描述成一个具有链路状态协议行为特性的距离矢量协议。
无类/IGP/混合/路由协议,支持VLMS(子网) / CIDR (支持超网) 支持认证(MD5加密),EIGRP协议使用了一个称为扩散计算(diffusing computations)的方法----在多台路由器之间通过一个并行的方式执行路由的计算从而在保持无环路的拓扑时可以随时获取较快的收敛,部分更新/增量更新。
支持多个网络层协议组件(PDM)-------------(IP,IPv6,IPX等)不同网络层协议生成的EIGRP表是不一样的依赖PDM子模块实现的。
以组播地址发送更新(组播地址224.0.0.10)也支持单播。
支持接口的手工汇总,支持等价负载均衡和非等价负载均衡。
EIGRP的管距:内部90 外部170 手工汇总5三张表:邻居表:所有的邻居拓扑表:所有的路由条目路由表:运行算法,选出最优路由条目EIGRP协议包含以下4个部件1,依赖于协议的模块2,可靠传输协议(RTP)3,邻居发现和恢复模块4,扩散更新算法(DUAL)依赖于协议的模块:EIGRP协议实现了IP协议,IPX协议和AppleTalk协议的模块,它可以担负起某一特定协议的路由选择任务,例如,IPX EIGRP 模块可以负责在IPX网络上与其他IPX EIGRP进程进行路由信息交换的任务,并且把这些信息传给DUAL。
另外,IPX模块也接收和发送SAP信息可靠传输协议(RTP):用来管理EIGRP报文的发送和接收,可靠的发送是指发送是有保障的而且报文是有序的发送。
有保障的发送是依赖cisco公司私有的算法来实现的,这个私有的算法称为“可靠组播(reliable multicast)它使用保留的D类地址224.0.0.10。
每个接收可靠组播报文的邻居都会发送一个单播的确认报文。
有序的发送是通过在每个报文中包含两个序列号来实现的。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
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学到了到所有网段的路由信息。
总结。