Packet Tracer 5.0实验(九) 路由器RIP动态路由配置.doc
《Packet Tracer 5.0实验(九) 路由器RIP动态路由配置.doc》由会员分享,可在线阅读,更多相关《Packet Tracer 5.0实验(九) 路由器RIP动态路由配置.doc(8页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、Packet Tracer 5.0实验(九)路由器RIP动态路由配置一、实验目标 掌握RIP协议的配置方法; 掌握查看通过动态路由协议RIP学习产生的路由; 熟悉广域网线缆的连接方式;二、实验背景假设校园网通过一台三层交换机连到校园网出口路由器上,路由器再和校园外的另一台路由器连接。现要做适当配置,实现校园网内部主机与校园网外部主机之间的相互通信。为了简化网管的管理维护工作,学校决定采用RIP V2协议实现互通。三、技术原理RIP(Routing Information Protocols),路由信息协议,是应用较早、使用较普通的IGP内部网关协议,适用于小型同类网络,是距离矢量协议;RIP协
2、议以跳数衡量路径开销,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、在路由器R
3、1、R2上配置RIPv2路由协议;6、将PC1、PC2主机默认网关分别设置为与直连网络设备接口IP地址;7、验证PC1、PC2主机之间可以互相通信;S3560:SwitchSwitchenSwitch#conf tEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#hostname S3560S3560(config)#vlan 10S3560(config-vlan)#exitS3560(config)#vlan 20S3560(config-vlan)#exitS3560(config)#in
4、terface fa0/10S3560(config-if)#switchport access vlan 10S3560(config-if)#exitS3560(config)#interface fa0/20S3560(config-if)#switchport access vlan 20S3560(config-if)#exitS3560(config)#interface vlan 10%LINK-5-CHANGED: Interface Vlan10, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interfa
5、ce Vlan10, changed state to upS3560(config-if)#ip address 192.168.1.1 255.255.255.0S3560(config-if)#exitS3560(config)#interface vlan 20%LINK-5-CHANGED: Interface Vlan20, changed state to upS3560(config-if)#ip address 192.168.3.1 255.255.255.0S3560(config-if)#exitS3560(config)#router rip S3560(config
6、-router)#network 192.168.1.0S3560(config-router)#network 192.168.3.0S3560(config-router)#version 2S3560(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 protoc
7、ol on Interface Vlan20, changed state to upS3560(config-router)#endS3560#%SYS-5-CONFIG_I: Configured from console by consoleS3560#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 exter
8、nal 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 no
9、t setC 192.168.1.0/24 is directly connected, Vlan10C 192.168.3.0/24 is directly connected, Vlan20S3560#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 ty
10、pe 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 setC
11、 192.168.1.0/24 is directly connected, Vlan10R 192.168.2.0/24 120/2 via 192.168.3.2, 00:00:01, Vlan20C 192.168.3.0/24 is directly connected, Vlan20R 192.168.4.0/24 120/1 via 192.168.3.2, 00:00:01, Vlan20S3560#R1:RouterenRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(
12、config)#hostname R1R1(config)#interface fa0/0R1(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 upR1(config-if)#ip address 192.168.3.2 255.255.255.0R1(config-if)#exitR1(config)#int
13、erface serial 2/0R1(config-if)#no shutdown %LINK-5-CHANGED: Interface Serial2/0, changed state to downR1(config-if)#clock rate 64000R1(config-if)#ip address 192.168.4.1 255.255.255.0R1(config-if)#exitR1(config)#router ripR1(config-router)#network 192.168.3.0R1(config-router)#network 192.168.4.0R1(co
14、nfig-router)#version 2R1(config-router)#end%SYS-5-CONFIG_I: Configured from console by consoleR1#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 extern
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- Packet Tracer 5.0实验九 路由器RIP动态路由配置 5.0 实验 路由器 RIP 动态 路由 配置
限制150内