(1)RIP协议的基本配置非常简单 。首先使用router ip命令进入RIP协议配置模式,然后用network语句声明进入RIP进程的网络 。
可以看到netwo比语句中使用的是网络号,而不是子网号 。当我们试图把172.16.1.0这一子网号码加入R1的RIP路由进程中而发出network l72.16.0.0的命令后,show running-config的结果会显示此处的语句变成为network 172.16.0.0,即B类网络172.16.0.0下的所有子网都加入了RIP路由进程 。
(2)使用show ip route命令查看路由表 。在R1路由器上可以看到,通过RIP协议,学马到了与R1不直接相连的网段172.16.23.0、172.16.2.0和17216.3.0 。路由表中的项目解释如下 。
R172.16.2.0[120/1]via 172.16.12.2,00:00:06,Serial0
R:表示此项路由是由RIP协议获取的,另外,"C,代表直连的网段 。
172.16.2.0: 目标网络 。
[120/1]: 12O是RIP协议的治理距离,1是该条路由的度量值,即Metric值,即跳数 。
via: 经由的意思 。
172.16.12.2:是由当前路由器出发,到达目标网段所需经过的下一个跳点的IP地址 。
00:00:06:此条路由产生的时间,即65钟 。
Serial0:由此路由器到达目标网段所需使用的接口 。
(3)从3台路由器的路由表中可以看出RIP协议工作正常,所有网段的路由条目都已具备 。
(4)对于路由器R1的路由表而言 。172.16.23.0这条路由项具有2个路径,即表中列出的172.26.12.2和172.16.13.3,表示到达172.16.23.0网段可以通过R2路由器,也可以通过R3路由器,表明有两条等值的路径存在,其度量值均为1 。
路由器R2和R3都有类似的路由存在 。
(5)从实验拓扑图可以分析出,从R2发送到R3的数据包假如经由R1的话会有较高的带宽(5OOkbit/s),是应该首选的路由 。但路由表中显示的实际情况是选择了由R2直接发送到R3 。这表明RIP路由协议在进行路由计算时只考虑两个网段之间的跳数这个惟一的度量值,而不考虑诸如带宽 。延迟等其他因素 。
监测清单5-1记录了RIP协议常用的监测命令的使用 。
监测清单5-1 RIP协议常用监测命令
R3#sh ip protocol
Routing Protocol is "rip"
Sending updates every 30 seconds, next due in 24 second
Invalid after 180 seconds, hold down 180, flushed after 240
Outgoing update filter list for all interfaces is
Incoming update filter list for all interfaces is
Redistributing: rip
Default version control: send version 1, receive any version
Interface SendRecvTriggered TIPKey-chain
Ethernet01 12
Serial0 1 12
Serial1 1 12
Autonaatic network sunamarization is in effect
Routing for Networks:
172.16.0.0
Routing Information Sources:
Gateway DistanceLast Update
172.16.23.2 12000:00:14
172.16.13.1 12000:00:00
Distance: (default is 120)
R3#pmg 172.16.1.1
Type escape sequence to abort.
Sending 5, 100-bytelCMPEchos to 172.16.1.1,timeout is 2 seconds:
!!!!!
SUCcess rate is 100 percent (5/5), rouad-tripmin/avg/max=8/8/8 ms
R3#trace 172.16.1.1
Type escape sequence to abort.
Tracing the route to 172.16.1.1
1 172.16.13.14 msec *
R3#conft
Enter configuration commands, one per line. End with CNTL/Z.
R3(config)#int s1
R3(config-if)#shut
R3(config-if)#end
R3#sh ip route
Codes: C - connecte-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is not set
172.16.0.0/24 is subnetted, 5 subnets
R 172.16.12.0 [120/1] via 172.16.13.1, 00:00:04, Serial0
C 172.16.13.0 is directly connected, Serial0
R 172.16.1.0 [120/1] via 172.16.13.1, 00:00:04, Serial0
推荐阅读
- 男人早上吃什么最好 男人早上吃的食物
- 真蜂蜜和假蜂蜜的区别
- 朱祁钰是谁的儿子吗 朱祁钰的儿子为什么死了
- 面值一万的纸币有哪些
- 我看诺基亚 3230
- 哪些大学有葡萄酒专业的研究生
- 你在干什么英文怎么说 你在干什么英文的相关知识
- 新买的笔记本电脑怎么充电
- 巴花大板的优缺点 巴花优点缺点
- 好听不易撞的姐妹网名两个字 不易撞的两字网名女生
