




已阅读5页,还剩9页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
实验 5 报告学号姓名课堂号01实验日期实验名称OSPF单区域实验用时同组人指导教师一、实验目的通过实验理解并掌握OSPF路由选择协议的原理及配置方法,掌握使用OSPF动态路由实现网络的连通性。二、实验要求1通过实验理解并掌握动态路由选择协议OSPF的原理及配置方法,2理解并掌握查看路由器系统及配置信息;3掌握OSPF路由方式实现网络的连通性。三、实验环境(设备) 实验设备S1(C)S0S1(C)S0S2(C)S0R2620-1R2624-2F0S3550-1S3550-2F1Area0R2624-1Vlan5Vlan10R2620-2 路由器4台,三层交换机2台,PC4台,直连线4根,交叉线2根,V.35 DCE/DTE电缆3根PC2PC1F0F0PC4PC3IP地址规划,如下表:设备名接口IP地址R2624-1S0200.20.100.1/24S1200.20.110.1/24S2200.20.120.1/24R2624-2F0192.168.10.2/24F1192.168.5.2/24S0200.20.120.2/24R2620-1S1200.20.100.2/24F0200.10.10.1/24R2620-2S0200.20.110.2/24F0200.10.100.1/24S3550-1VLAN 5192.168.5.1/24S3550-2VLAN 10192.168.10.1/241、单击一个路由设备如:R2624-1/2 (4口) R2620-1/2(1口)用ctrl+C中断要你输入的内容,进入Red-Giant2、路由器R2624-1配置(1)配置R2624-1的串口s0,s1和s2R2624-1(config)#interface serial 0R2624-1(config-if)#ip address 200.20.100.1 255.255.255.0R2624-1(config-if)#no shutdownR2624-1(config)#interface serial 1R2624-1(config-if)#ip address 200.20.110.1 255.255.255.0R2624-1(config-if)#clock rate 64000(配置时钟,注意是DCE端)R2624-1(config-if)#no shutdownR2624-1(config)#interface serial 2R2624-1(config-if)#ip address 200.20.120.1 255.255.255.0R2624-1(config-if)#clock rate 64000(配置时钟,注意是DCE端)R2624-1(config-if)#no shutdown(2)验证路由器接口及串口配置:R2624-1#Show ip interface brief(3)配置ospf路由R2624-1(config)#router ospf 100R2624-1(config-osp)f#network 200.20.100.0 0.0.0.255 area 0R2624-1(config-osp)f#network 200.20.110.0 0.0.0.255 area 0R2624-1(config-osp)f#network 200.20.120.0 0.0.0.255 area 0R2624-1#show ip route(查看路由)3、路由器R2624-2配置(1)配置2624-2的串口s0配置2624-2的串口s0R2624-2(config)#interface serial 0R2624-2(config-if)#ip address 200.20.120.2 255.255.255.0R2624-2(config-if)#no shutdown(2)配置以太网接口F0和f1R2624-2(config)#interface f0R2624-2(config-if)#ip address 192.168.10.2 255.255.255.0R2624-2(config-if)#no shutdownR2624-2(config)#interface f1R2624-2(config-if)#ip address 192.168.5.2 255.255.255.0R2624-2(config-if)#no shutdown(4)配置ospf路由R2624-2(config)#router ospf 100R2624-2(config-osp)f#network 192.168.10.0 0.0.0.255 area 0R2624-2(config-osp)f#network 192.168.5.0 0.0.0.255 area 0R2624-2(config-osp)f#network 200.20.120.0 0.0.0.255 area 0R2624-2#show ip route(查看路由)4、路由器R2620-1配置R2620-1enableR2620-1#conf terEnter configuration commands, one per line. End with CNTL/Z.R2620-1(config)#hostname R2620-1R2620-1(config)#(1)查看路由器接口状态R2620-1#show ip int brief(2)配置接口f0R2620-1#conf terEnter configuration commands, one per line. End with CNTL/Z.R2620-1(config)#interface fa 0R2620-1(config-if)#ip address 200.10.10.1 255.255.255.0R2620-1(config-if)#no shutdown(3)配置串口s1R2620-1(config)#inter serial 1R2620-1(config-if)#ip address 200.20.100.2 255.255.255.0R2620-1(config-if)#clock rate 64000(配置时钟,注意是DCE端)R2620-1(config-if)#no shutdown(4)验证接口、串口配置R2620-1#Show ip interface brief(5)ospf配置R2620-1(config)#router ospf 100R2620-1(config-ospf)#network 200.10.10.0 0.0.0.255 area 0R2620-1(config-ospf)#network 200.20.100.0 0.0.0.255 area 05、路由器R2620-2配置R2620-2enableR2620-2#conf terEnter configuration commands, one per line. End with CNTL/Z.R2620-2(config)#hostname R2620-2R2620-2(config)#(1)查看路由器接口状态R2620-2#show ip int brief(2)配置接口f0R2620-2#conf terEnter configuration commands, one per line. End with CNTL/Z.R2620-2(config)#interface fa 0R2620-2(config-if)#ip address 200.10.100.1 255.255.255.0R2620-2(config-if)#no shutdown(3)配置串口s0R2620-2(config)#inter serial 0R2620-2(config-if)#ip address 200.20.110.2 255.255.255.0R2620-2(config-if)#no shutdown(4)验证接口、串口配置R2620-2#Show ip interface brief(5)ospf配置R2620-1(config)#router ospf 100R2620-1(config-ospf)#network 200.10.100.0 0.0.0.255 area 0R2620-1(config-ospf)#network 200.20.110.0 0.0.0.255 area 06、配置S3550-1S3550-1#conf tS3550-1(config)#vlan 5S3550-1(config-vlan)#exitS3550-1(config)#interface renge f 0/10-15S3550-1(config-if-range)#switchport access vlan 5S3550-1(config)#interface vlan 5S3550-1(config-if)#ip address 192.168.5.1 255.255.255.0S3550-1(config-if)#no shutdownS3550-1(config)#router ospfS3550-1(config-ospf)#network 192.168.5.1 0.0.0.255 area 07、配置S3550-2S3550-2#conf tS3550-2(config)#vlan 10S3550-2(config-vlan)#exitS3550-2(config)#interface renge f 0/10-15S3550-2(config-if-range)#switchport access vlan 10S3550-2(config)#interface vlan 10S3550-2(config-if)#ip address 192.168.10.1 255.255.255.0S3550-2(config-if)#no shutdownS3550-2(config)#router ospfS3550-2(config-ospf)#network 192.168.10.1 0.0.0.255 area 08、测试 断开防火墙 断开第1块网卡连接 将PC1的内网卡 IP设置成192.168.5.20,掩码255.255.255.0 网关192.168.5.1 将PC2的内网卡 IP设置成192.168.10.2,掩码255.255.255.0网关192.168.10.1 将PC3的内网卡 IP设置成200.10.10.10,掩码255.255.255.0网关200.10.10.1 将PC4的内网卡 IP设置成200.10.100.10,掩码255.255.255.0网关200.10.100.1(请注意:R2620和主机之间的连接需要使用交叉线) 测试互通性附录:可使用的验证命令 1.show run 2.show ip interface brife 3.show ip route 4.Show ip ospf5.Show ip ospf border-routers6.Show ip ospf interface7.Show ip ospf neighbor五、实验记录在完成相应的配置后,以下是所有设备的路由信息【S3550-1】s3550-1en 14Password:s3550-1#show ip routeType: C - connected, S - static, R - RIP, 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 2Type Destination IP Next hop Interface Distance Metric Status- - - - - - -C 192.168.5.0/24 0.0.0.0 VL5 0 0 ActiveO 192.168.10.0/24 192.168.5.2 VL5 110 2 ActiveO 200.10.10.0/24 192.168.5.2 VL5 110 98 ActiveO 200.10.100.0/24 192.168.5.2 VL5 110 98 ActiveO 200.20.100.0/24 192.168.5.2 VL5 110 97 ActiveO 200.20.110.0/24 192.168.5.2 VL5 110 97 ActiveO 200.20.120.0/24 192.168.5.2 VL5 110 49 Actives3550-1#*【S3550-2】s3550-2#show ip routeType: C - connected, S - static, R - RIP, 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 2Type Destination IP Next hop Interface Distance Metric Status- - - - - - -O 192.168.5.0/24 192.168.10.5 VL10 110 2 ActiveC 192.168.10.0/24 0.0.0.0 VL10 0 0 ActiveO 200.10.10.0/24 192.168.10.5 VL10 110 98 ActiveO 200.10.100.0/24 192.168.10.5 VL10 110 98 ActiveO 200.20.100.0/24 192.168.10.5 VL10 110 97 ActiveO 200.20.110.0/24 192.168.10.5 VL10 110 97 ActiveO 200.20.120.0/24 192.168.10.5 VL10 110 49 Actives3550-2#*【R2624-1】r2624-1enr2624-1#show ip routeCodes: C - connected, S - static, R - RIP O - OSPF, IA - OSPF inter area E1 - OSPF external type 1, E2 - OSPF external type 2Gateway of last resort is not setO 192.168.10.0/24 110/870 via 200.20.120.2, 00:06:06, Serial2O 192.168.5.0/24 110/870 via 200.20.120.2, 00:06:06, Serial2C 200.20.120.0/24 is directly connected, Serial2O 200.10.100.0/24 110/49 via 200.20.110.2, 00:06:06, Serial1C 200.20.110.0/24 is directly connected, Serial1C 200.20.100.0/24 is directly connected, Serial0O 200.10.10.0/24 110/49 via 200.20.100.2, 00:06:06, Serial0r2624-1#*【R2624-2】r2624-2#show ip routeCodes: C - connected, S - static, R - RIP O - OSPF, IA - OSPF inter area E1 - OSPF external type 1, E2 - OSPF external type 2Gateway of last resort is not setC 192.168.10.0/24 is directly connected, FastEthernet0C 192.168.5.0/24 is directly connected, FastEthernet1C 200.20.120.0/24 is directly connected, Serial0O 200.10.100.0/24 110/97 via 200.20.120.1, 00:06:23, Serial0O 200.20.110.0/24 110/96 via 200.20.120.1, 00:06:23, Serial0O 200.20.100.0/24 110/96 via 200.20.120.1, 00:06:23, Serial0O 200.10.10.0/24 110/97 via 200.20.120.1, 00:06:23, Serial0r2624-2#*【2620-1】R2620-1enR2620-1#show ip routeCodes: C - connected, S - static, R - RIP O - OSPF, IA - OSPF inter area E1 - OSPF external type 1, E2 - OSPF external type 2Gateway of last resort is not setO 192.168.10.0/24 110/918 via 200.20.100.1, 00:06:43, Serial1O 192.168.5.0/24 110/918 via 200.20.100.1, 00:06:43, Serial1O 200.20.120.0/24 110/917 via 200.20.100.1, 00:06:43, Serial1O 200.10.100.0/24 110/97 via 200.20.100.1, 00:06:43, Serial1O 200.20.110.0/24 110/96 via 200.20.100.1, 00:06:43, Serial1C 200.20.100.0/24 is directly connected, Serial1C 200.10.10.0/24 is directly connected, FastEthernet0R2620-1#*【R2620-2】R2620-2#sho ip routCodes: C - connected, S - static, R - RIP O - OSPF, IA - OSPF inter area E1 - OSPF external type 1, E2 - OSPF external type 2Gateway of last resort is not setO 192.168.10.0/24 110/918 via 200.20.110.1, 00:07:09, Serial0O 192.168.5.0/24 110/918 via 200.20.110.1, 00:07:09, Serial0O 200.20.120.0/24 110/917 via 200.20.110.1, 00:07:09, Serial0C 200.10.100.0/24 is directly connected, FastEthernet0C 200.20.110.0/24 is directly connected, Serial0O 200.20.100.0/24 110/96 via 200.20.110.1, 00:07:09, Serial0O 200.10.10.0/24 110/97 via 200.20.110.1, 00:07:09, Serial0R2620-2#六、实验结果及其分析以下是测试通讯是否畅通的结果,以地址为192.168.10.1为例Microsoft Windows XP 版本 5.1.2600(C) 版权所有 1985-2001 Microsoft Corp.C:Documents and SettingsAdministratorping 192.168.10.1Pinging 192.168.10.1 with 32 bytes of data:Reply from 192.168.10.1: bytes=32 time=3ms TTL=63Reply from 192.168.10.1: bytes=32 time1ms TTL=63Reply from 192.168.10.1: bytes=32 time1ms TTL=63Reply from 192.168.10.1: bytes=32 timeping 192.168.10.5Pinging 192.168.10.5 with 32 bytes of data:Reply from 192.168.10.5: bytes=32 time1ms TTL=255Reply from 192.168.10.5: bytes=32 time1ms TTL=255Reply from 192.168.10.5: bytes=32 time1ms TTL=255Reply from 192.168.10.5: bytes=32 timeping 192.168.5.1Pinging 192.168.5.1 with 32 bytes of data:Reply from 192.168.5.1: bytes=32 time1ms TTL=64Reply from 192.168.5.1: bytes=32 time1ms TTL=64Reply from 192.168.5.1: bytes=32 time1ms TTL=64Reply from 192.168.5.1: bytes=32 timeping 192.168.5.20Pinging 192.168.5.20 with 32 bytes of data:Reply from 192.168.5.20: bytes=32 time1ms TTL=128Reply from 192.168.5.20: bytes=32 time1ms TTL=128Reply from 192.168.5.20: bytes=32 time1ms TTL=128Reply from 192.168.5.20: bytes=32 timeping 200.20.120.1Pinging 200.20.120.1 with 32 bytes of data:Reply from 200.20.120.1: bytes=32 time=21ms TTL=254Reply from 200.20.120.1: bytes=32 time=18ms TTL=254Reply from 200.20.120.1: bytes=32 time=19ms TTL=254Reply from 200.20.120.1: bytes=32 time=18ms TTL=254Ping statistics for 200.20.120.1: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),Approximate round trip times in milli-seconds: Minimum = 18ms, Maximum = 21ms, Average = 19msC:Documents and SettingsAdministratorping 200.20.110.1Pinging 200.20.110.1 with 32 bytes of data:Reply from 200.20.110.1: bytes=32 time=21ms TTL=254Reply from 200.20.110.1: bytes=32 time=19ms TTL=254Reply from 200.20.110.1: bytes=32 time=19ms TTL=254Reply from 200.20.110.1: bytes=32 time=19ms TTL=254Ping statistics for 200.20.110.1: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),Approximate round trip times in milli-seconds: Minimum = 19ms, Maximum = 21ms, Average = 19msC:Documents and SettingsAdministratorping 200.10.100.1Pinging 200.10.100.1 with 32 bytes of data:Reply from 200.10.100.1: bytes=32 time=44ms TTL=253Reply from 200.10.100.1: bytes=32 time=37ms TTL=253Reply from 200.10.100.1: bytes=32 time=37ms TTL=253Reply from 200.10.100.1: bytes=32 time=37ms TTL=253Ping statistics for 200.10.100.1: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),Approximate round trip times in milli-seconds: Minimum = 37ms, Maximum = 44ms, Average = 38msC:Documents and SettingsAdministratorping 200.10.100.10Pinging 200.10.100.10 with 32 bytes of data:Reply from 200.10.100.10: bytes=32 time=37ms TTL=125Reply from 200.10.100.10: bytes=32 time=37ms TTL=125Reply from 200.10.100.10: bytes=32 time=37ms TTL=125Reply from 200.10.100.10: bytes=32 time=36ms TTL=125Ping statistics for 200.10.100.10: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),Approximate round trip times in milli-seconds: Minimum = 36ms, Maximum = 37ms, Average = 36msC:Documents and SettingsAdministratorpi
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 岩石的成因和分类课件
- 二零二五年现代物流仓储租赁合同正本
- 2025版国际贸易项目投资合同范本下载
- 二零二五年度金融机构金融业务劳务派遣服务合同样本
- 二零二五年度医疗计量器具检定校准专项服务合同
- 二零二五版朝阳区校园保安服务及应急预案制定合同
- 二零二五版城乡一体化安置房买卖协议标准范本
- 二零二五年度商场装修合同商业形象收藏指南
- 二零二五年度带运输电子产品购销合同书
- 2025版画册设计制作与艺术产业投资合作合同
- 电力现货实战型交易策略分析
- 园林工程竣工验收与养护期
- 儿童感觉统合能力发展评定量表
- 案卷评查培训课件模板
- 一二手联动培训课件
- 创业中的团队管理与组建
- 丙酸丙酯的分离工艺
- 二维层状材料的堆叠效应
- 骨科膝骨关节炎一病一品优质护理汇报课件
- 15D502 等电位联结安装
- 两单两卡安全培训
评论
0/150
提交评论