《计算机网络》实验七 RIP 实验报告
更新时间:2017/1/21 18:28:00 浏览量:805 手机版
实验报告七
班级:07东方信息 姓名: 学号:
实验时间:10年5月31日 机房:9#205 组号: 机号:A
一、实验题目 RIP
二、实验设备
CISCO路由器、专用电缆、网线、CONSOLE线、PC机
三、实验内容
在CISCO 路由器上配置RIP
观察、分析现象,了解RIP 的工作原理
四、原理
RIP(Routing information Protocol)是应用较早、使用较普遍的内部网关 协议(Interior Gateway Protocol,简称IGP),适用于小型同类网络,是典型的距离向量(distance-vector)协议。文档见RFC1058、RFC1723。
RIP通过广播UDP报文来交换路由信息,每30秒发送一次路由信息更新。RIP提供跳跃计数(hop count)作为尺度来衡量路由距离,跳跃计数是一个包到达目标所必须经过的路由器的数目。如果到相同目标有二个不等速或不同带宽的路由器,但跳跃计数相同,则RIP认为两个路由是等距离的。RIP最多支持的跳数为15,即在源和目的网间所要经过的最多路由器的数目为15,跳数16表示不可达。 RIP v2 由 RIP v1 而来,属于 RIP 协议的补充协议,主要用于扩大 RIP 2 信息装载的有用信息的数量,同时增加其安全性能。RIP 2 是一种基于 UDP 的协议。在 RIP2 下,每台主机通过路由选择进程发送和接受来自 UDP 端口520的数据包。
五、实际步骤
1、计算机地址参数设置。 PC_A
IP Address:10.7.1.2
Subnet Mask:255.255.255.0 Default Gateway:10.7.1.1
PC_B
IP Address:10.7.2.2
Subnet Mask:255.255.255.0 Default Gateway:10.7.2.1
PC_1
IP Address:10.7.4.2
Subnet Mask:255.255.255.0 Default Gateway:10.7.4.1
PC_A
IP Address:10.7.3.2
Subnet Mask:255.255.255.0 Default Gateway:10.7.3.1
2、路由器A的基本配置。 7-A#show running-config Building configuration...
Current configuration : 820 bytes !
version 12.3
service timestamps debug datetime msec service timestamps log datetime msec
no service password-encryption !
hostname 7-A
!
boot-start-marker
boot-end-marker
!
enable password cisco
!
no network-clock-participate aim 0 no network-clock-participate aim 1 no aaa new-model
ip subnet-zero
!
!
ip cef
!
!
no ftp-server write-enable
!
!
!
!
interface FastEthernet0/0
ip address 10.7.4.1 255.255.255.0 duplex auto
speed auto
!
interface FastEthernet0/1
ip address 10.7.1.1 255.255.255.0 duplex auto
speed auto
!
interface Serial0/3/0
ip address 10.7.5.1 255.255.255.0 no fair-queue
!
interface Serial0/3/1
no ip address
shutdown
clockrate 2000000
!
ip classless
ip http server
!
!
!
control-plane
!
!
line con 0
line aux 0
line vty 0 4
password cisco
login
!
scheduler allocate 20000 1000 !
end
3、路由器B的基本配置。 7-B#show run
Building configuration...
Current configuration : 852 bytes !
version 12.3
service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption !
hostname 7-B
!
boot-start-marker
boot-end-marker
!
enable password cisco
!
no network-clock-participate aim 0 no network-clock-participate aim 1 no aaa new-model
ip subnet-zero
!
!
ip cef
!
!
no ftp-server write-enable
!