Packet Tracer 5.0实验(九) 路由器RIP动态路由配置
更新时间:2024-05-30 22:23:01 阅读量: 综合文库 文档下载
- packet推荐度:
- 相关推荐
Packet Tracer 5.0实验(九) 路由器RIP动态路由配置
一、实验目标
? ? ?
掌握RIP协议的配置方法;
掌握查看通过动态路由协议RIP学习产生的路由; 熟悉广域网线缆的连接方式;
二、实验背景
假设校园网通过一台三层交换机连到校园网出口路由器上,路由器再和校园外的另一台路由器连接。现要做适当配置,实现校园网内部主机与校园网外部主机之间的相互通信。为了简化网管的管理维护工作,学校决定采用RIP V2协议实现互通。
三、技术原理
RIP(Routing Information Protocols),路由信息协议,是应用较早、使用较普通的IGP内部网关协议,适用于小型同类网络,是距离矢量协议; RIP协议以跳数衡量路径开销,RIP协议里规定最大跳数为15;
RIP协议有两个版本:RIPv1和RIPv2,RIPv1属于有类路由协议,不支持VLSM,以广播形式进行路由信息的更新,更新周期为30秒;RIPv2属于无类路由协议,支持VLSM,以组播形式进行路由更新。
四、实验步骤
实验拓扑
1、在三层交换机上划分VLAN10和VLAN20,其中VLAN10用于连接校园网主机,VLAN20用于连接R1;
2、路由器之间通过V.35电缆通过串口连接,DCE端连接在R1上,配置其时间频率为64000;
3、主机和交换机通过直连线连接,主机与路由器通过交叉线连接; 4、在S3560上配置RIPv2路由协议; 5、在路由器R1、R2上配置RIPv2路由协议;
6、将PC1、PC2主机默认网关分别设置为与直连网络设备接口IP地址; 7、验证PC1、PC2主机之间可以互相通信; S3560:
Switch> Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#hostname S3560 S3560(config)#vlan 10 S3560(config-vlan)#exit S3560(config)#vlan 20 S3560(config-vlan)#exit
S3560(config)#interface fa0/10
S3560(config-if)#switchport access vlan 10 S3560(config-if)#exit
S3560(config)#interface fa0/20
S3560(config-if)#switchport access vlan 20
S3560(config-if)#exit
S3560(config)#interface vlan 10
%LINK-5-CHANGED: Interface Vlan10, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan10, changed state to up
S3560(config-if)#ip address 192.168.1.1 255.255.255.0 S3560(config-if)#exit
S3560(config)#interface vlan 20
%LINK-5-CHANGED: Interface Vlan20, changed state to up
S3560(config-if)#ip address 192.168.3.1 255.255.255.0 S3560(config-if)#exit S3560(config)#router rip
S3560(config-router)#network 192.168.1.0 S3560(config-router)#network 192.168.3.0 S3560(config-router)#version 2 S3560(config-router)#
%LINK-5-CHANGED: Interface FastEthernet0/20, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/20, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan20, changed state to up
S3560(config-router)#end S3560#
%SYS-5-CONFIG_I: Configured from console by console
S3560#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
C 192.168.1.0/24 is directly connected, Vlan10 C 192.168.3.0/24 is directly connected, Vlan20
S3560#show ip route //当配置好所有RIPv2后,再查看路由信息
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
C 192.168.1.0/24 is directly connected, Vlan10
R 192.168.2.0/24 [120/2] via 192.168.3.2, 00:00:01, Vlan20 C 192.168.3.0/24 is directly connected, Vlan20
R 192.168.4.0/24 [120/1] via 192.168.3.2, 00:00:01, Vlan20 S3560#
R1:
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname R1 R1(config)#interface fa0/0 R1(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
R1(config-if)#ip address 192.168.3.2 255.255.255.0 R1(config-if)#exit
R1(config)#interface serial 2/0 R1(config-if)#no shutdown
%LINK-5-CHANGED: Interface Serial2/0, changed state to down R1(config-if)#clock rate 64000
R1(config-if)#ip address 192.168.4.1 255.255.255.0
R1(config-if)#exit R1(config)#router rip
R1(config-router)#network 192.168.3.0 R1(config-router)#network 192.168.4.0 R1(config-router)#version 2 R1(config-router)#end
%SYS-5-CONFIG_I: Configured from console by console R1#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
R 192.168.1.0/24 [120/1] via 192.168.3.1, 00:00:15, FastEthernet0/0 C 192.168.3.0/24 is directly connected, FastEthernet0/0 R1#
%LINK-5-CHANGED: Interface Serial2/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to up
R1#show ip route //当配置好所有RIPv2后,再查看路由信息
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
R 192.168.1.0/24 [120/1] via 192.168.3.1, 00:00:19, FastEthernet0/0 R 192.168.2.0/24 [120/1] via 192.168.4.2, 00:00:11, Serial2/0 C 192.168.3.0/24 is directly connected, FastEthernet0/0
C 192.168.4.0/24 is directly connected, Serial2/0 R1#
R2:
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname R2 R2(config)#interface fa0/0 R2(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
R2(config-if)#ip address 192.168.2.1 255.255.255.0 R2(config-if)#exit
R2(config)#interface serial 2/0 R2(config-if)#no shutdown
%LINK-5-CHANGED: Interface Serial2/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to up
R2(config-if)#ip address 192.168.4.2 255.255.255.0 R2(config-if)#exit R2(config)#end
%SYS-5-CONFIG_I: Configured from console by console R2#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
C 192.168.2.0/24 is directly connected, FastEthernet0/0 C 192.168.4.0/24 is directly connected, Serial2/0 R2#conf t
Enter configuration commands, one per line. End with CNTL/Z. R2(config)#router rip
R2(config-router)#network 192.168.2.0 R2(config-router)#network 192.168.4.0 R2(config-router)#version 2 R2(config-router)#end
%SYS-5-CONFIG_I: Configured from console by console R2#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
R 192.168.1.0/24 [120/2] via 192.168.4.1, 00:00:00, Serial2/0 C 192.168.2.0/24 is directly connected, FastEthernet0/0
R 192.168.3.0/24 [120/1] via 192.168.4.1, 00:00:00, Serial2/0 C 192.168.4.0/24 is directly connected, Serial2/0 R2#
五、测试
Packet Tracer PC Command Line 1.0 PC>ipconfig
IP Address......................: 192.168.2.2 Subnet Mask.....................: 255.255.255.0 Default Gateway.................: 192.168.2.1
PC>ping 192.168.1.2
Pinging 192.168.1.2 with 32 bytes of data:
Request timed out.
Request timed out.
Reply from 192.168.1.2: bytes=32 time=16ms TTL=125 Reply from 192.168.1.2: bytes=32 time=17ms TTL=125
Ping statistics for 192.168.1.2:
Packets: Sent = 4, Received = 2, Lost = 2 (50% loss), Approximate round trip times in milli-seconds:
Minimum = 16ms, Maximum = 17ms, Average = 16ms
PC>ping 192.168.1.2
Pinging 192.168.1.2 with 32 bytes of data:
Reply from 192.168.1.2: bytes=32 time=19ms TTL=125 Reply from 192.168.1.2: bytes=32 time=16ms TTL=125 Reply from 192.168.1.2: bytes=32 time=13ms TTL=125 Reply from 192.168.1.2: bytes=32 time=15ms TTL=125
Ping statistics for 192.168.1.2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds:
Minimum = 13ms, Maximum = 19ms, Average = 15ms PC>
正在阅读:
Packet Tracer 5.0实验(九) 路由器RIP动态路由配置05-30
江苏省扬州市邗江区2017-2018学年八年级上学期期末考试物理试题04-11
别样的中秋作文450字06-19
内部审核检查记录单09-30
WHO-GMP中文版本,需要请下载03-08
windows命令行常用命令、常用快捷键12-18
13.4 计算机系统结构试卷部分答案03-20
圣诞经典短信02-10
审计实训章节实验练习及答案04-02
- 冀教版版五年级科学下册复习资料
- 微生物学复习提纲
- 2013—2014学年小学第二学期教研组工作总结
- 国有土地转让委托服务合同协议范本模板
- 我的固废说明书
- 企业管理诊断报告格式
- 东鼎雅苑施工组织设计
- 谈谈如何做好基层党支部书记工作
- 浮梁县环保局市级文明单位创建工作汇报
- 管理学基础知识
- 大学物理实验报告23 - PN结温度传感器特性1
- 计算机网络实践
- 酒桌上这四种情况下要坐牢,千万别不当回事……
- 国家康居示范工程建设技术要点
- 中国贴布行业市场调查研究报告(目录) - 图文
- 新课标下如何在高中物理教学中培养学生的创新能力初探
- 营养师冬季养生食谱每日一练(7月4日)
- 关注江西2017年第3期药品质量公告
- 建设海绵城市专题习题汇总
- 10万吨年环保净水剂建设项目报告书(2).pdf - 图文
- 路由
- 路由器
- 配置
- 实验
- 动态
- Packet
- Tracer
- 5.0
- RIP
- 科技云平台用户使用手册 - 图文
- 中国肝速康胶囊行业发展研究报告 - 图文
- 安工大模版设计
- 《逍遥游》文言知识梳理
- 浅谈我国中小城市管理现状及对策
- 端盖零件的数控铣床铣削编程与加工
- 北师大版数学五年级上册《组合图形的面积》公开课教案附教学反思
- 有关高层建筑消防给水方式设计方法之初探
- 2005年常州市政府重点工作
- 基于Java的人事管理系统的设计与实现毕业论文
- 乱建寺庙和露天宗教塑像的专项整治方案的汇总材料
- 塔吊基础设计方案二十一冶
- 北大附中特级教师周沛耕谈数学高考冲刺
- 南京师范大学电影学历年真题(01-10年完整版)
- 美术课堂多媒体应用现状调查与分析
- 婚姻法司法解释三第六条的理解与适用
- 英语复习指导
- 2018届湖北省荆州中学高三全真模拟考试(一)英语试题
- 甘肃省城镇规划管理技术规程
- 拍摄出精致美食照片技巧