55实验七多网段网络组建与动态路由配置_第1页
55实验七多网段网络组建与动态路由配置_第2页
55实验七多网段网络组建与动态路由配置_第3页
55实验七多网段网络组建与动态路由配置_第4页
55实验七多网段网络组建与动态路由配置_第5页
已阅读5页,还剩1页未读 继续免费阅读

下载本文档

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

文档简介

1、实 验 报 告专业:班级: 学号: 姓 课程名称:计算机网络 2015 -2016学年度第2学期 课程类别:专业必修 实验时间:2016 年6月7日实验名称:多网段网络组建与动态路由配置实验目的和要求:目的:1、理解RIP动态路由原理。2、练习动态路由配置。3、掌握对路由器有关状态获取和分析的方法。要求:1、按照拓扑构建一个小型局域网。2、配置PC机的IP地址及网关。3、配置路由器的各个接口、RIP路由协议。4、完成连通性和包传输路径基本测试。实验软硬件要求:两台2620XM的路由器,三台PC机,一台2950-24的交换机,一台HUB-PT的集线器,DCE/DTE Cable一条, 直通线四条

2、、反转线一条。实验内容、实验过程、所遇问题及其解决方法: 见附页。实验总结及心得体会:通过这次实验,理解了RIP动态路由原理,以及动态路由的配置。掌握对路由器有关状态获取和分析的方法。按照拓扑构建了一个小型局域网配置PC机的IP地址及网关,配置路由器的各个接口、RIP路由协议,完成了连通性和包传输路径基本测试完成了连通性和包传输路径基本测试。 评定成绩: 批阅教师: 2016年 月 日附 页1、 实验内容2、 实验过程步骤1 对路由器进行配置。步骤1.1先进入全局配置模式,执行命令“earase startup-config” ,清除缓存的配置文件。使用“reload”命令重启路由器。Rout

3、erenableRouter#erase startup-configRouter#reload开始对路由器的名字进行配置。RouterenableRouter#config terminalRouter(config)#hostname Router1Router(config)#hostname Router2步骤1.2接下来进入接口配置模式对路由器的接口进行配置,包括IP地址,开启接口,对DCE进行时钟设置。Router1 (config)#interface fas0/0Router1 (config-if)#ip address 192.155.1.1 255.255.255.0Ro

4、uter1 (config-if)#no shutdownRouter1 (config)#interface serial 0/0Router1 (config-if)#ip address 192.155.2.1 255.255.255.0Router1 (config-if)#clock rate 5600Router1 (config-if)#no shutdownRouter2 (config)#int ser2/0Router2 (config-if)#ip address 192.155.2.2 255.255.255.0Router2 (config-if)#no shutdo

5、wnRouter2 (config-if)#exitRouter2 (config)#int fas0/0Router2 (config-if)#ip address 192.155.3.1 255.255.255.0Router2 (config-if)#no shutdownRouter2 (config-if)#endRouter2 #步骤2 对各主机按以上拓扑所规定的IP地址子网掩码以及缺省网关进行配置。在各主机上可以通过“ping 网关的IP地址”即:PC0ping 192.148.1.1,PC1ping 192.148.1.2,PC0ping 192.148.3.2分别来测试与网关

6、的连通,测试PC0和PC1之间是否连通,若返回ping包信息则连通,若没有则检查它们之间的连接线缆及其接口配置。步骤3路由器的全局模式使用“router rip”进入路由器配置,对各路由器使用“network 端口所在的网络地址”进行RIP路由协议配置,。使用命令返回到全局模式。步骤3.1对Router1进行RIP路由配置。Router1 (config)#router ripRouter1 (config-router)#network 192.155.1.0Router1 (config-router)#network 192.155.2.0Router1 (config-router)#

7、exitRouter1 (config)#end步骤3.2对Router2进行RIP路由配置。Router2 (config)#router ripRouter2 (config-router)#network 192.155.2.0Router2 (config-router)#network 192.155.3.0Router2 (config-router)#end步骤3.3使用“copy running-config startup-config”将配置从running-config保存到startup-config。Router2 #copy running-config start

8、up-configRouter1 #copy running-config startup-config然后在各主机上使用ping命令从PC0与PC1进行测试,看看是否是连通的。若没有则检查配置信息。步骤4 检查路由器的基本配置。以路由器Router1为例,使用“show ip protocol ”命令来看一下路由协议是否为rip即Routing protocol is RIP .Router1#show ip protocolRouting Protocol is rip/路由协议为ripSending updates every 30 seconds, next due in 24 sec

9、onds/路由选择的更新每30s广播,下一次更新在24s后发生。Invalid after 180 seconds, hold down 180, flushed after 240/失效定时器的值为180s,抑制定时器的值为180s,刷新定时器的值为240s.Outgoing update filter list for all interfaces is not setIncoming update filter list for all interfaces is not set /所有的接口都没有设置进出路由器的过滤表。Redistributing: ripDefault versio

10、n control: send version 1, receive any version Interface Send Recv Triggered RIP Key-chain FastEthernet0/0 1 2 1 Serial0/0 1 2 1 Automatic network summarization is in effectMaximum path: 4Routing for Networks:192.155.1.0192.155.2.0/路由器可以为去往这两个网络的包提供路由。Passive Interface(s):Routing Information Sources

11、:Gateway Distance Last Update192.155.2.2 120Distance: (default is 120)使用“show ip route” 命令来列出路由器直达的以及可到达的网络和端口号。Router1#show ip routeCodes: 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,

12、 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/缺省网关没

13、有配置C 192.155.1.0/24 is directly connected, FastEthernet0/0C 192.155.2.0/24 is directly connected, Serial0/0/这两个网络是直达的R 192.155.3.0/24 120/1 via 192.155.2.2, 00:00:23, Serial0/0-192.155.3.0/这个网络是通过192.155.2.2这个接口可达的。步骤5观察RIP路由的更新。在ROUTER1使用“debug ip rip”命令,来观察一下路由器的接口把更新发送给ROUTER2 。Router1#debug ip r

14、ipRIP protocol debugging is onROUTER1#RIP: received v1 update from 192.155.2.2 on Serial0/0192.155.3.0 in 1 hops -路由器从接口192.155.2.2接收到更新信息:到达192.155.3.0网络只需要一跳。RIP: sending v1 update to 255.255.255.255 via FastEthernet0/0 (192.155.1.1)/路由器从接口192.155.1.1发送更新信息。RIP: build update entries network 192.15

15、5.2.0 metric 1 network 192.155.3.0 metric 2/路由器到达网络192.155.2.0的度量值(跳数)是1,路由器到达网络192.155.3.0的度量值(跳数)是2。RIP: sending v1 update to 255.255.255.255 via Serial0/0 (192.155.2.1)RIP: build update entries network 192.155.1.0 metric 1ROUTER1#RIP: received v1 update from 192.155.2.2 on Serial0/0 192.155.3.0 i

16、n 1 hopsRIP: sending v1 update to 255.255.255.255 via FastEthernet0/0 (192.155.1.1)RIP: build update entries network 192.155.2.0 metric 1 network 192.155.3.0 metric 2RIP: sending v1 update to 255.255.255.255 via Serial0/0 (192.155.2.1)RIP: build update entries network 192.155.1.0 metric 1/路由器到达网络192

17、.155.1.0的度量值(跳数)是1。Router1#undebug allRIP protocol debugging is offAll possible debugging has been turned off我们还可以练习使用其它的debug命令:“debug ip rip events”、“debug ip rip trigger”、“debug ip rip database”.最后如果要关闭当前的debug命令,在其命令之前加no 如:“no debug ip rip”,如果要关闭所有的debug命令则使用“undebug all”.Router1#undebug allRIP

18、 protocol debugging is offAll possible debugging has been turned off【注意事项】debug命令不要使用的太多,在一个繁忙网络中的实时调试将严重减慢网速,不要一直打开调试,在诊断出问题后要及时使用undebug命令关闭调试。在RAM较小的路由器上过多的调试会造成该路由器的重新启动。【参考配置】ROUTER1#show running-configversion 12.2hostname ROUTER1interface FastEthernet0/0 ip address 192.168.1.1 255.255.255.0 duplex auto speed autointerface Serial0/0 ip address 192.168.2.1 255.255.255.0 clock rate 56000interface Serial0/1 no ip address shutdowninterface Serial0/2 no ip

温馨提示

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

评论

0/150

提交评论