思科设备路由器rip协议配置.docx_第1页
思科设备路由器rip协议配置.docx_第2页
思科设备路由器rip协议配置.docx_第3页
思科设备路由器rip协议配置.docx_第4页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

本次讲解路由器rip协议的配置: RIP是基于D-V算法的路由协议,使用跳数(Hop Count)来表示度量值(Metric)。跳数是一个数据报到达目标所必须经过的路由器的数目。RIP认为跳数少的路径为最优路径。路由器收集所有可达目标网络的路径,从中选择去往同一个网络所用跳数最少的路径信息,生成路由表;然后把所能收集到的路由(路径)信息中的跳数加1后生成路由更新通告,发送给相邻路由器:最后依次逐渐扩散到全网。RIP每30s发送一次路由信息更新。本例配置模型图命令行:RA命令配置:RouterenableRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#hostname R1R1(config)#router rip /使用rip协议R1(config-router)#version 2 /使用RIPv2版本R1(config-router)#network 192.1.1.0 255.255.255.0 /指定与该路由器直接相连的网络R1(config-router)# network 202.1.1.5 /指定与该路由器直接相连的网络R1(config-router)#no shutdownR1(config-router)#exitR1#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 routeGateway of last resort is not set /目前没有配置RB路由器,所以上述没有rip协议的配置生成R1#conf tEnter configuration commands, one per line. End with CNTL/Z.R1(config)#int s1/0R1(config-if)#ip address 202.1.1.5 255.255.255.252 /将模型图中的IP配置划分到对应端口R1(config-if)#no shutdown%LINK-5-CHANGED: Interface Serial1/0, changed state to downR1(config-if)#exitR1(config)#int f0/0R1(config-if)#ip address 192.1.1.1 255.255.255.0 /将模型图中的IP配置划分到对应端口R1(config-if)#clock rate 64000 /配置时钟模式DCE端R1(config-if)#bandwidth 64R1(config-if)#no shutdownR1#wrBuilding configuration.OKRB命令配置:RouterenableRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#router rip /使用rip协议Router(config-router)#version 2 /使用rip协议v2版本Router(config-router)#network 192.168.2.0 /指定与该路由器直接相连的网络Router(config-router)#network 202.1.1.6 /指定与该路由器直接相连的网络Router(config-router)#exitRouter(config)#int s1/0Router(config-if)#ip address 202.1.1.6 255.255.255.252 /将模型图中的IP配置划分到对应端口Router(config-if)#bandwidth 64 /配置时钟模式DTE端Router(config-if)#no shutdown%LINK-5-CHANGED: Interface Serial1/0, changed state to upRouter(config-if)#exitRouter(config)#%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to upRouter(config)#int f0/0Router(config-if)#ip address 192.168.2.1 255.255.255.0 /将模型图中的IP配置划分到对应端口Router(config-if)#no shutdown%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upRouter(config-if)#exitRouter(config)#exitRouter#%SYS-5-CONFIG_I: Configured from console by consoleRouter#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 routeGateway of last resort is not setR 192.1.1.0/24 120/1 via 202.1.1.5, 00:00:08, Serial1/0 /已配置的rip协议C 192.168.2.0/24 is directly connected, FastEthernet0/0 202.1.1.0/30 is subnetted, 1 subnetsC 202.1.1.4 is di

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论