RIP,IGRP,EIGRP都是动态路由配置常用的协议,rip的配置前面已经说过了,今天写一下IGRP以及EIGRP的基本配置方法。
IGRP( 内部网关路由协议)是Cisco公司独自开发的路由协议,由于它的健壮性令许多网络公司用IGRP代替RIP。IGRP的最大跳数为255,远远大于RIP的15。
而EIGRP(增强型内部网关路由协议)是IGRP的增强型协议,并且支持无类域间路由选择(CIDR),比IGRP有更快的收敛时间、更强的可扩展性以及更高级的路由处理办法。
仍然使用用RIP协议实现路由表的动态配置 中的网络图来进行IGRP的实例配置:
命令格式如下:
router igrp autonomous-system
例如router1:
router igrp 10
network 192.168.40.0
network 192.168.10.0
然后按照此方法把 router2、router3都配置了就行了(注意把这几个router的autonomous-system值设一致)。
EIGRP的配置方法基本一样,就不详细说了,大家依葫芦画瓢......
下面是利用EIGRP路由协议配置路由,如图:
首先配置Router2
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int e0
Router(config-if)#ip add 194.1.1.1 255.255.255.0
Router(config-if)#no shut
%LINK-3-UPDOWN: Interface Ethernet0, changed state to up
Router(config-if)#int s0
Router(config-if)#ip add 192.1.1.2 255.255.255.0
Router(config-if)#clock rate 64000
Router(config-if)#no shut
%LINK-3-UPDOWN: Interface Serial0, changed state to up
%LINK-3-UPDOWN: Interface Serial0, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to down
Router(config-if)#end
Router#writ m
Building configuration...
[OK]
完成EIGRP配置
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#router eigrp 64
Router(config-router)#network 192.1.1.0
Router(config-router)#network 194.1.1.0
Router(config-router)#end
Router#wri m
Building configuration...
[OK]
配置Router3
Router>
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int e0
Router(config-if)#ip add 194.1.1.2 255.255.255.0
Router(config-if)#no shut
%LINK-3-UPDOWN: Interface Ethernet0, changed state to up
Router(config-if)#int s0
Router(config-if)#ip add 193.1.1.2 255.255.255.0
Router(config-if)#clock rate 64000
Router(config-if)#no shut
%LINK-3-UPDOWN: Interface Serial0, changed state to up
%LINK-3-UPDOWN: Interface Serial0, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to down
Router(config-if)#end
Router#writ m
Building configuration...
[OK]
完成EIGRP配置
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#router eigrp 64
Router(config-router)#network 193.1.1.0
Router(config-router)#network 194.1.1.0
Router(config-router)#end
Router#wri m
Building configuration...
[OK]
配置Router1
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int s0
Router(config-if)#ip add 192.1.1.1 255.255.255.0
Router(config-if)#clock rate 64000
Router(config-if)#no shut
%LINK-3-UPDOWN: Interface Serial0, changed state to up
Router(config-if)#int s1
Router(config-if)#ip add 193.1.1.1 255.255.255.0
Router(config-if)#clock rate 64000
Router(config-if)#no shut
%LINK-3-UPDOWN: Interface Serial1, changed state to up
Router(config-if)#end
Router#wri m
Building configuration...
[OK]
完成EIGRP配置
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#router eigrp 64
Router(config-router)#network 192.1.1.0
Router(config-router)#network 193.1.1.0
Router(config-router)#end
Router#wri m
Building configuration...
[OK]
若转载请注明出处: Spirit's Home
本文地址: http://www.7788sky.cn/post/lyeigrppz.html
3 Response to “基本的IGRP和EIGRP路由配置”
By 豆 on 2008-4-27 0:55:59| http://shengnanzhang.blog.163.com
哎,这种实验不要做了~~~~~~~~~·
By 豆豆 on 2008-4-27 15:38:38| http://shengnanzhang.blog.163.com
应该把这个实验和 动态路由的配置放到一块,呵呵~~~·
By genden on 2008-4-27 16:42:47| http://www.itboker.cn
博主还是听厉害的,这些问题我到现在还是似懂非懂的,以前学的时候也没认真学