CCNA实验二十二 EIGRP路由协议
环境:Windows XP 、Packet Tarcert 5.3. 目的:了解EIGRP路由协议,掌握如何配置EIGRP协议 说明:EIGRP(增强网关内部路由线路协议)是Cisco公司的私有协议。它是在IGRP协议基础上的改进型协议,结合了链路状态和距离矢量型路由选择协议,EIGRP维护三张表拓扑表和邻居表、路由表。采用弥散修正算法(DUAL)来实现快速收敛,可以不发送定期的路由更新信息,而且更新信息只在网络拓扑发生改变时发送,更新信息中只包含变化部分的网络信息,这样以减少路由更新时带宽的占用,支持多种网络协议。它使用组播地址224.0.0.10每间隔5秒发送hello数据包,通过hello数据包形成邻居关系,它的路由更新信息不发送整张路由表。它支持手动路由汇总和自动路由汇总,它支持多达6条的冗余路径(等价负载均衡和非等价负载均衡),使用开销值来选择最佳路由(继任路由)和备份路由(可行的继任路由)。EIGRP的管理距离是90,最大跳数是255。EIGRP复合度量公式:度量=256 x +[ K5 / (可靠性 +K4)]默认时:K1=K3=1,K2=K4=k5=0.因此默认时的度量公式刻缩减为:度量=(带宽 x 延迟)x 256带宽=[ 10000000 / (以KB为单位的BW) ] x 256延迟=[ 以微秒数表示的延迟] x 256 步骤: 拓扑如下: 配置R1:Router>enRouter#conf tRouter(config)#host R1R1(config)#int loopback 0R1(config-if)#ip add 192.168.1.1 255.255.255.0R1(config-if)#exitR1(config)#int loopback 1R1(config-if)#ip add 192.168.2.1 255.255.255.0R1(config-if)#exitR1(config)#int loopback 2R1(config-if)#ip add 192.168.3.1 255.255.255.0R1(config-if)#exitR1(config)#int fa0/0R1(config-if)#ip add 172.16.13.1 255.255.255.0R1(config-if)#no shR1(config-if)#exitR1(config)#int fa0/1R1(config-if)#ip add 172.16.12.1 255.255.255.0R1(config-if)#no shR1(config-if)#exitR1(config)#router eigrp 200//启动EIGRP路由协议进程,自治号为200
R1(config-router)#network 192.168.1.1 0.0.0.0 //把网络192.168.1.0加入到路由进程中,并宣告出去R1(config-router)#network 192.168.2.1 0.0.0.0R1(config-router)#network 192.168.3.1 0.0.0.0R1(config-router)#network 172.16.13.1 0.0.0.0R1(config-router)#network 172.16.12.1 0.0.0.0R1(config-router)#exit 配置R2Router>enRouter#conf tRouter(config)#host R2R2(config)#int fa0/1R2(config-if)#ip add 172.16.12.2 255.255.255.0R2(config-if)#no shR2(config-if)#exitR2(config)#int fa0/0R2(config-if)#ip add 172.16.23.1 255.255.255.0R2(config-if)#no shR2(config-if)#exitR2(config)#router eigrp 200R2(config-router)#network 172.16.12.2 0.0.0.0R2(config-router)#network 172.16.23.1 0.0.0.0R2(config-router)#exit 配置R3Router>enRouter#conf tRouter(config)#host R3R3(config)#int fa0/0R3(config-if)#ip add 172.16.13.2 255.255.255.0R3(config-if)#no shR3(config-if)#exitR3(config)#int fa0/1R3(config-if)#ip add 172.16.23.2 255.255.255.0R3(config-if)#no shR3(config-if)#exitR3(config)#router eigrp 200R3(config-router)#network 172.16.13.2 0.0.0.0R3(config-router)#network 172.16.23.2 0.0.0.0R3(config-router)#exit 查看当前三台路由的路由表:
关闭三台路由的自动汇总,并采用手工汇总R1的上的路由:R1>enR1#conf tR1(config)#router eigrp 200 //进入EIGRP路由进程R1(config-router)#no auto-summary //关闭路由自动汇总R1(config-router)#exitR1(config)#int fa0/0 //进入接口fa0/0R1(config-if)#ip summary eigrp 200 192.168.0.0 255.255.252.0 //在fa0/0接口下给eigrp进程宣告一条汇总路由192.168.0.0/24R1(config-if)#exitR1(config)#int fa0/1R1(config-if)#ip summary eigrp 200 192.168.0.0 255.255.252.0R1(config-if)#exit R2#conf tR2(config)#router eigrp 200R2(config-router)#no auto-summaryR2(config-router)#exitR2(config)# R3(config)#router eigrp 200R3(config-router)#no auto-summaryR3(config-router)#exit 再次查看三台路由表的变化:
实验结束
路过,支持一下啦 帮你顶下哈!! 死亡教会人一切,如同考试之后公布的结果——虽然恍然大悟,但为时晚矣~! 所有刻骨铭心的爱都灵魂游离于床上的瞬间! 为中华而努力读书!一包中华好多钱啊~~~ 月经不仅仅是女人的痛苦,也是男人的痛苦。
页:
[1]