收藏 分销(赏)

CiscoPacketTracer实验7:RIP路由协议的配置.doc

上传人:精*** 文档编号:10710005 上传时间:2025-06-11 格式:DOC 页数:8 大小:104.02KB 下载积分:6 金币
下载 相关 举报
CiscoPacketTracer实验7:RIP路由协议的配置.doc_第1页
第1页 / 共8页
CiscoPacketTracer实验7:RIP路由协议的配置.doc_第2页
第2页 / 共8页


点击查看更多>>
资源描述
实验7:RIP 路由协议的配置 一、实验目的 1、练习RIP 动态路由协议的基本配置; 2、掌握了解RIP 路由协议原理 二、实验环境: Packet tracer 5.0 三、关于RIP 的基础知识 RIP(Routing Information Protocol)是最常使用的内部网关协议(Interior Gateway Protocol)之一,是一种典型的基于D-V 算法的动态路由协议。 通过UDP(User Datagram Protocol)报文交换路由信息,使用跳数(Hop Count)来衡量到达目的地的距离(被称为路由权-Routing cost)。 由于在RIP 中大于或等于16 的跳数被定义为无穷大(即目的网络或主机不 可达),所以RIP 一般用于采用同类技术的中等规模的网络,如校园网及一个地 区范围内的网络,RIP 并非为复杂、大型的网络而设计。 启动RIP,进入RIP 视图: router Rip 关闭RIP: no rip 在指定的网络上使能RIP network{ network-number| all } 在指定的网络上禁用RIP no network{ network-number| all 四:实验步骤: 拓扑图如下所示: 配置过程: Router1: Router>enable //进入特权模式 Router#conf ter //进入全局配置模式 Enter configuration commands, one per line. End with CNTL/Z. Router(config)#int f0/0 //配置Fa0/0 接口 Router(config-if)#ip add 1.1.1.2 255.255.255.0 Router(config-if)#no shutdown %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up Router(config-if)# %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up Router(config-if)#exit Router(config)#int s0/0/0 //配置串口 Router(config-if)#ip add 1.1.6.1 255.255.255.0 Router(config-if)#clock rate 64000 Router(config-if)#no shutdown %LINK-5-CHANGED: Interface Serial0/0/0, changed state to down Router(config-if)#exit Router(config)#int s0/0/1 //配置串口 Router(config-if)#ip add 1.1.2.1 255.255.255.0 Router(config-if)#clock rate 64000 Router(config-if)#no shutdown %LINK-5-CHANGED: Interface Serial0/0/1, changed state to down Router(config-if)#exit Router(config)#router rip //进入RIP 视图 Router(config-router)#network 1.0.0.0 //发布直连网络 Router(config-router)#exit Router(config)#exit Router# %SYS-5-CONFIG_I: Configured from console by console Router#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 route Gateway of last resort is not set 1.0.0.0/24 is subnetted, 1 subnets C 1.1.1.0 is directly connected, FastEthernet0/0 Router# Router2: Router>enable Router#conf ter Enter configuration commands, one per line. End with CNTL/Z. Router(config)#int f0/0 Router(config-if)#ip add 1.1.5.2 255.255.255.0 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 up Router(config-if)#exit Router(config)#int s0/0/1 Router(config-if)#ip add 1.1.2.2 255.255.255.0 Router(config-if)#clock rate 64000 Router(config-if)#no shutdown %LINK-5-CHANGED: Interface Serial0/0/1, changed state to up Router(config-if)#exit Router(config)#int s0/0/0 Router(config-if)#ip add 1.1.3.1 255.255.255.0 Router(config-if)#clo rate 64000 Router(config-if)#no shutdown %LINK-5-CHANGED: Interface Serial0/0/0, changed state to down Router(config-if)#exit Router(config)#router rip Router(config-router)#network 1.0.0.0 Router(config-router)#exit Router(config)#exit Router# %SYS-5-CONFIG_I: Configured from console by console Router# Router#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 route Gateway of last resort is not set 1.0.0.0/24 is subnetted, 3 subnets R 1.1.1.0 [120/1] via 1.1.2.1, 00:00:11, Serial0/0/1 C 1.1.2.0 is directly connected, Serial0/0/1 C 1.1.5.0 is directly connected, FastEthernet0/0 Router# Router3: Router>en Router#conf ter Enter configuration commands, one per line. End with CNTL/Z. Router(config)#int f0/0 Router(config-if)#ip add 1.1.4.2 255.255.255.0 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 up Router(config-if)#exit Router(config)#int s0/0/0 Router(config-if)#ip add 1.1.6.2 255.255.255.0 Router(config-if)#clo rate 64000 Router(config-if)#no shutdown Router(config-if)# %LINK-5-CHANGED: Interface Serial0/0/0, changed state to up Router(config-if)#exit Router(config)#int s0/0/1 Router(config-if)#ip add 1.1.3.2 255.255.255.0 Router(config-if)#clock rate 64000 Router(config-if)#no shutdown %LINK-5-CHANGED: Interface Serial0/0/1, changed state to up Router(config-if)#exit Router(config)#router rip Router(config-router)# %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/1, changed state to up Router(config-router)#network 1.0.0.0 Router(config-router)#exit Router(config)#exit Router# %SYS-5-CONFIG_I: Configured from console by console Router#show ip rou Router#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 route Gateway of last resort is not set 1.0.0.0/24 is subnetted, 6 subnets R 1.1.1.0 [120/1] via 1.1.6.1, 00:00:02, Serial0/0/0 R 1.1.2.0 [120/1] via 1.1.6.1, 00:00:02, Serial0/0/0 [120/1] via 1.1.3.1, 00:00:10, Serial0/0/1 C 1.1.3.0 is directly connected, Serial0/0/1 C 1.1.4.0 is directly connected, FastEthernet0/0 R 1.1.5.0 [120/1] via 1.1.3.1, 00:00:10, Serial0/0/1 C 1.1.6.0 is directly connected, Serial0/0/0 之后按照图示配置好主机的IP 地址,使用ping 命令测试相互之间的连通性,主机之 间可以相互ping 通的,如下所示:
展开阅读全文

开通  VIP会员、SVIP会员  优惠大
下载10份以上建议开通VIP会员
下载20份以上建议开通SVIP会员


开通VIP      成为共赢上传

当前位置:首页 > 通信科技 > 网络/通信

移动网页_全站_页脚广告1

关于我们      便捷服务       自信AI       AI导航        抽奖活动

©2010-2025 宁波自信网络信息技术有限公司  版权所有

客服电话:0574-28810668  投诉电话:18658249818

gongan.png浙公网安备33021202000488号   

icp.png浙ICP备2021020529号-1  |  浙B2-20240490  

关注我们 :微信公众号    抖音    微博    LOFTER 

客服