注册 | 登录 忘记密码? 51cto首页 | 博客 | 论坛 | 招聘
热点文章 利用手机和电池实现反地心..
 帮助

cisco路由器基本实验之四 动态路由之IGRP协议的配置(Boson NetSim)


版权声明:原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://victoryan.blog.51cto.com/191603/39047
           又快到了开学的时间了,所以最近要整理一些开学用的东西,可能要忙一点了,但是cisco系列的基本实验还是得完成,把它们写在博客上也可以作为自己学习路上的的见证,哈哈,闲话不说,还是看实验。今天是配置IGRP协议(Interior Gateway Routing Protocol),据说这个已经不用了(听朋友说的),CCNA都不考这个了,但是我认为这个还是值得实验一下的,有些东西并不是说不考就不用掌握的。
      
跟以前一样,下面将会把路由器和主机的配置情况贴出来,关键语句有注释,需要改进的地方还请众网友多多指点!
router1的配置:
 
Press Enter to Start

Router>
Router>en
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#interface e0
Router(config-if)#ip address 192.168.1.2 255.255.255.0
Router(config-if)#no shut
%LINK-3-UPDOWN: Interface Ethernet0, changed state to up
Router(config-if)#interface s0
Router(config-if)#ip address 192.168.2.1 255.255.255.0
Router(config-if)#clock rate 6400
Router(config-if)#no shut
%LINK-3-UPDOWN: Interface Serial0, changed state to up
Router(config-if)#exit
%LINK-3-UPDOWN: Interface Serial0, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to down
Router(config)#router igrp 100                  //在igrp协议名后面需要写上as号,同一自治域内的路由器才能交换路由信息,此处约定为100
Router(config-router)#network 192.168.1.0        //同rip,也要写上直连网络,非以太网还要写上neighbor(邻接路由器的相邻端口IP地址)
Router(config-router)#network 192.168.2.0
Router(config-router)#exit
Router(config)#hostname router1
router1(config)#exit
router1#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
%LINK-3-UPDOWN: Interface Serial0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to up
router1#
 
router2 的配置:
 
Press Enter to Start

Router>
Router>en
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#interface s0
Router(config-if)#exit
Router(config)#hostname router2
router2(config)#interface s0
router2(config-if)#ip address 192.168.2.2 255.255.255.0
router2(config-if)#no shut
%LINK-3-UPDOWN: Interface Serial0, changed state to up
router2(config-if)#interface s0
router2(config-if)#interface e0
router2(config-if)#ip address 192.168.3.1 255.255.255.0
router2(config-if)#no shut
%LINK-3-UPDOWN: Interface Ethernet0, changed state to up
router2(config-if)#exit
router2(config)#router igrp 100
router2(config-router)#network 192.168.3.0
router2(config-router)#network 192.168.2.0
router2(config-router)#exit
router2(config)#exit
router2#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
router2#ping 192.168.1.2             //开始测试,结果正确

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
router2#ping 192.168.2.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.2.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
router2#ping 192.168.1.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
router2#
 
pc1的配置:
 
Boson BOSS 5.0
Copyright 1998-2003 Boson Software, Inc.
Use the command help to get started
Press Enter to begin
C:>ipconfig /ip 192.168.1.1 255.255.255.0
C:>ipconfig /dg 192.168.1.2
C:>ping 192.168.3.2
Pinging 192.168.3.2 with 32 bytes of data:         //不说了,完全正确
Reply from 192.168.3.2: bytes=32 time=60ms TTL=241
Reply from 192.168.3.2: bytes=32 time=60ms TTL=241
Reply from 192.168.3.2: bytes=32 time=60ms TTL=241
Reply from 192.168.3.2: bytes=32 time=60ms TTL=241
Reply from 192.168.3.2: bytes=32 time=60ms TTL=241
Ping statistics for 192.168.3.2:     Packets: Sent = 5, Received = 5, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
     Minimum = 50ms, Maximum =  60ms, Average =  55ms
C:>ping 192.168.3.1
Pinging 192.168.3.1 with 32 bytes of data:
Reply from 192.168.3.1: bytes=32 time=60ms TTL=241
Reply from 192.168.3.1: bytes=32 time=60ms TTL=241
Reply from 192.168.3.1: bytes=32 time=60ms TTL=241
Reply from 192.168.3.1: bytes=32 time=60ms TTL=241
Reply from 192.168.3.1: bytes=32 time=60ms TTL=241
Ping statistics for 192.168.3.1:     Packets: Sent = 5, Received = 5, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
     Minimum = 50ms, Maximum =  60ms, Average =  55ms
C:>ping 192.168.2.2
Pinging 192.168.2.2 with 32 bytes of data:
Reply from 192.168.2.2: bytes=32 time=60ms TTL=241
Reply from 192.168.2.2: bytes=32 time=60ms TTL=241
Reply from 192.168.2.2: bytes=32 time=60ms TTL=241
Reply from 192.168.2.2: bytes=32 time=60ms TTL=241
Reply from 192.168.2.2: bytes=32 time=60ms TTL=241
Ping statistics for 192.168.2.2:     Packets: Sent = 5, Received = 5, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
     Minimum = 50ms, Maximum =  60ms, Average =  55ms
C:>ping 192.168.2.1
Pinging 192.168.2.1 with 32 bytes of data:
Reply from 192.168.2.1: bytes=32 time=60ms TTL=241
Reply from 192.168.2.1: bytes=32 time=60ms TTL=241
Reply from 192.168.2.1: bytes=32 time=60ms TTL=241
Reply from 192.168.2.1: bytes=32 time=60ms TTL=241
Reply from 192.168.2.1: bytes=32 time=60ms TTL=241
Ping statistics for 192.168.2.1:     Packets: Sent = 5, Received = 5, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
     Minimum = 50ms, Maximum =  60ms, Average =  55ms
C:>ping 192.168.1.2
Pinging 192.168.1.2 with 32 bytes of data:
Reply from 192.168.1.2: bytes=32 time=60ms TTL=241
Reply from 192.168.1.2: bytes=32 time=60ms TTL=241
Reply from 192.168.1.2: bytes=32 time=60ms TTL=241
Reply from 192.168.1.2: bytes=32 time=60ms TTL=241
Reply from 192.168.1.2: bytes=32 time=60ms TTL=241
Ping statistics for 192.168.1.2:     Packets: Sent = 5, Received = 5, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
     Minimum = 50ms, Maximum =  60ms, Average =  55ms
C:>ping 192.168.1.1
Pinging 192.168.1.1 with 32 bytes of data:
Reply from 192.168.1.1: bytes=32 time=60ms TTL=241
Reply from 192.168.1.1: bytes=32 time=60ms TTL=241
Reply from 192.168.1.1: bytes=32 time=60ms TTL=241
Reply from 192.168.1.1: bytes=32 time=60ms TTL=241
Reply from 192.168.1.1: bytes=32 time=60ms TTL=241
Ping statistics for 192.168.1.1:     Packets: Sent = 5, Received = 5, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
     Minimum = 50ms, Maximum =  60ms, Average =  55ms
pc2的配置:
 
Boson BOSS 5.0
Copyright 1998-2003 Boson Software, Inc.
Use the command help to get started
Press Enter to begin
C
Cipconfig ip 192.168.3.2 255.255.255.0
Cipconfig dg 192.168.3.1
Cping 192.168.1.1
Pinging 192.168.1.1 with 32 bytes of data
Reply from 192.168.1.1 bytes=32 time=60ms TTL=241
Reply from 192.168.1.1 bytes=32 time=60ms TTL=241
Reply from 192.168.1.1 bytes=32 time=60ms TTL=241
Reply from 192.168.1.1 bytes=32 time=60ms TTL=241
Reply from 192.168.1.1 bytes=32 time=60ms TTL=241
Ping statistics for 192.168.1.1     Packets Sent = 5, Received = 5, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds
     Minimum = 50ms, Maximum =  60ms, Average =  55ms
Cping 192.168.1.2
Pinging 192.168.1.2 with 32 bytes of data
Reply from 192.168.1.2 bytes=32 time=60ms TTL=241
Reply from 192.168.1.2 bytes=32 time=60ms TTL=241
Reply from 192.168.1.2 bytes=32 time=60ms TTL=241
Reply from 192.168.1.2 bytes=32 time=60ms TTL=241
Reply from 192.168.1.2 bytes=32 time=60ms TTL=241
Ping statistics for 192.168.1.2     Packets Sent = 5, Received = 5, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds
     Minimum = 50ms, Maximum =  60ms, Average =  55ms
Cping 192.168.2.1
Pinging 192.168.2.1 with 32 bytes of data
Reply from 192.168.2.1 bytes=32 time=60ms TTL=241
Reply from 192.168.2.1 bytes=32 time=60ms TTL=241
Reply from 192.168.2.1 bytes=32 time=60ms TTL=241
Reply from 192.168.2.1 bytes=32 time=60ms TTL=241
Reply from 192.168.2.1 bytes=32 time=60ms TTL=241
Ping statistics for 192.168.2.1     Packets Sent = 5, Received = 5, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds
     Minimum = 50ms, Maximum =  60ms, Average =  55ms
Cping 192.168.2.2
Pinging 192.168.2.2 with 32 bytes of data
Reply from 192.168.2.2 bytes=32 time=60ms TTL=241
Reply from 192.168.2.2 bytes=32 time=60ms TTL=241
Reply from 192.168.2.2 bytes=32 time=60ms TTL=241
Reply from 192.168.2.2 bytes=32 time=60ms TTL=241
Reply from 192.168.2.2 bytes=32 time=60ms TTL=241
Ping statistics for 192.168.2.2     Packets Sent = 5, Received = 5, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds
     Minimum = 50ms, Maximum =  60ms, Average =  55ms
Cping 192.168.3.1
Pinging 192.168.3.1 with 32 bytes of data
Reply from 192.168.3.1 bytes=32 time=60ms TTL=241
Reply from 192.168.3.1 bytes=32 time=60ms TTL=241
Reply from 192.168.3.1 bytes=32 time=60ms TTL=241
Reply from 192.168.3.1 bytes=32 time=60ms TTL=241
Reply from 192.168.3.1 bytes=32 time=60ms TTL=241
Ping statistics for 192.168.3.1     Packets Sent = 5, Received = 5, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds
     Minimum = 50ms, Maximum =  60ms, Average =  55ms

本文出自 “Keep Moving” 博客,请务必保留此出处http://victoryan.blog.51cto.com/191603/39047





    文章评论
 
2007-08-20 17:00:43
呵呵,原来博主是学长啊,我现在念大二,明天开始军训了,不过还是会经常关注博主的~~~~~

2007-08-20 18:10:56
对于一个学习的实验来说,现象比结果更重要。希望博主要把现象,都可以用show命令show出来,这样的话你会发现你学到的东西更多,而非单单的能ping通就完事……
你看看cisco网站上的配置,连过程都不写直接给你看现象,你应该就知道现象的重要性了。

非以太网还要写上neighbor(邻接路由器的相邻端口IP地址)
对于这句话有一个小错误,点到点的链路也是非以太网的链路,不需要使用Neighbor。一般来说是在非广播型的多路访问链路上需要配置Neighbor。

IGRP不仅仅是不考了。。。是被淘汰了,几乎没有人用……

以上只是我的一些建议,仅供参考。

2007-08-20 18:22:44
呵呵,好像你上次提醒过我了哈,哎,今天准备开学的东西,搞得有点手忙脚乱,导致忘了你的提醒,再次感谢你的建议,真的很感谢

2007-08-20 18:36:43
呵呵。你可以补充一下。通过show ip route和show ip pro你应该可以了解下面的东西:

IGRP的管理距离是多少
IGRP的Metric值是如何计算的
IGRP的各个时钟的时间是多少秒?如何改变


2007-08-20 22:22:44
不是吧?这种文章都可以推荐,51cto的水平就在此吗?
这样的内容任何一个刚刚开始学习的人都可以配出来,你也不用发出来吧。。。

2007-08-20 22:25:57
晕。。。楼上的你也不用这样说吧。。。任何人都有一个学习的过程。。。大家都是这样过来的。。。

2007-08-21 06:36:12
四楼那个叫onemanwin的说话也太差劲了吧,文章被推荐又不是博主自己说了就能算的,既然能被推荐,肯定还是有它的意义的,阁下的言外之意是说自己很厉害,认为51cto的水平不行,那你还到这这儿开博干啥呢?自己办个比51cto强的网站不就行了吗?真是没见过你这种大白痴

2007-08-21 08:18:52
学习过程就是交流过程,楼上几位别动肝火,呵呵
这个事情,咱们51里有很多培训机构的学生,
以青鸟培训来说,IGRP是书上不讲的,因为比较过时,但是自己学一下还是有必要的吧,就像有了ADSL还是要学一下ISDN。。
呵呵,挺好的
除了show ip route和show ip pro ,用 show protocols 看一二三层的接口配置也很常用哦!


2007-08-21 08:21:22
慢慢的,慢慢的,博主也快用到DynamipsGUI了吧,呵呵

2007-08-21 08:38:27
  呵呵,看来有博友对我的文章有意见喔,不好意思,我在这方面确实是刚开始起步,做的实验确实有点简单,并且在检验实验的正确性方面也有些欠缺,但是我发出来是想和一些博友共勉,并且也可以作为我自己的经历写上,所以,我还是得发出来的,欠缺我会一一改正的。51cto是很强的,里面有很多好的技术文章,只是你自己没看见罢了。
  顺便说一下,这两天可能有些事情要做,估计是没时间来更新博客了,再次感谢楼上的上衫,gairuhe,jrfly331的指点。

2007-09-04 19:55:45
四楼那个叫onemanwin的说话也太差劲了吧,文章被推荐又不是博主自己说了就能算的,既然能被推荐,肯定还是有它的意义的,阁下的言外之意是说自己很厉害,认为51cto的水平不行,那你还到这这儿开博干啥呢?自己办个比51cto强的网站不就行了吗?真是没见过你这种大白痴

onemanwin这个家伙到处鼓噪 自以为了不起 这看不起 那看不起

 

发表评论

昵   称:
验证码:  点击图片可刷新验证码  博客过2级,无需填写验证码
内   容: