西邮网络拓扑及协议配置实训报告.docx
- 文档编号:8956838
- 上传时间:2023-05-16
- 格式:DOCX
- 页数:26
- 大小:375.92KB
西邮网络拓扑及协议配置实训报告.docx
《西邮网络拓扑及协议配置实训报告.docx》由会员分享,可在线阅读,更多相关《西邮网络拓扑及协议配置实训报告.docx(26页珍藏版)》请在冰点文库上搜索。
西邮网络拓扑及协议配置实训报告
西安郵電學院
网络拓扑及协议配置
实验设计报告
题目:
网络拓扑及协议配置
院系名称:
计算机学院
专业名称:
班级:
学生姓名:
学号(8位):
指导教师:
设计起止时间:
2011年06月20日~2011年06月24日
一.设计目的
1.掌握rip和ospf协议的工作原理。
2.掌握在不同的路由协议之间进行路由重分发的配置。
二.设计内容
利用ciscopackettracer工具模拟网络环境,搭建网络拓扑使其能够在不同的路由协议之间进行重分发。
三.概要设计
1.搭建网络拓扑。
2.使网络的一部分使用rip协议。
3.网络的另一部分使用ospf划分成两大区域。
4.进行路由重分发,是两边的网络能够正常通信。
1.功能模块图;
2.各个模块详细的功能描述。
四.详细设计
1.功能函数的调用关系图
通过router1的路由重分发,可以使rip区域的路由器学习到ospf区域的路由信息,同时ospf区域的路由器也可以通过router1学习到其他ospf区域和rip区域的路由信息。
2.重点设计及编码
端口配置:
Router0:
Intf0/0
Ipadd192.168.1.1255.255.255.252
Noshut
Intf0/1
Ipadd192.168.2.1255.255.255.0
Noshut
Ints0/2/1
Ipadd172.16.1.5255.255.255.252
Clockrate64000
Noshut
Router1端口配置:
Ints0/2/0
Ipadd172.16.1.6255.255.255.252
Noshut
Ints0/3/0
Ipadd172.16.1.1255.255.255.252
Clockrate64000
Noshut
Router2的端口配置:
Intf0/0
Ipadd172.16.3.1255.255.255.0
Noshut
Ints0/3/0
Ipadd172.16.1.2255.255.255.252
Noshut
Ints0/3/1
Ipadd172.16.1.9255.255.255.252
Noshut
Router3的端口配置
Intf0/0
Ipadd10.1.1.1255.255.255.0
Noshut
Intf0/1
Ipadd10.1.2.1255.255.255.0
Noshut
Ints0/3/1
Ipadd172.16.1.10255.255.255.252
Clockrate64000
Noshut
协议配置
Route0的协议配置命令:
Routerrip
Version2
Network172.16.0.0
Network192.168.1.0
Network192.168.2.0
Noauto-summary
Router1的协议配置
Routerospf10
Network172.16.1.00.0.0.3area0
Routerrip
Version2
Network172.16.0.0
Noauto-summary
Router2的协议配置命令:
Routerospf10
Network172.16.1.00.0.0.3area0
Network172.16.3.00.0.0.255area0
Network172.16.1.80.0.0.3area1
Router3的协议配置
Routerospf10
Network10.1.1.00.0.0.255area1
Network10.1.2.00.0.0.255area1
Network172.16.1.80.0.0.3area1
Router1的路由重分发
Routerospf10
Redistributeripmetric50subnets
Redistributeconnectedsubnets
Routerrip
Redistributeospf10metric1
Redistributeconnected
五.测试数据及运行结果
1.正常测试数据和运行结果
Router0各端口的ip配置:
Router1各端口的ip配置:
Router2各端口的ip配置:
Router3各端口的ip配置:
三、配置路由器的协议:
Router0的RIP协议配置:
Router1的协议配置:
Router2的协议配置:
Router3的协议配置:
四、路由重分发、下图是个路由器重分发之后路由信息:
Router0通过路由重分发学到的路由信息:
Router1通过路由重分发学到的路由信息:
Router2通过路由重分发学到的路由信息:
Router2通过路由重分发学到的路由信息:
五,配置pc的ip信息:
Pc6的ip配置:
Pc2的ip配置:
Pc3的ip配置:
Pc4的ip配置:
六、测试连通性:
Pc6pingpc4:
Pc4pingpc6:
2.异常测试数据及运行结果
1.pc6ping不通直连路由
2.Router1只能找到rip协议的路由,找不到ospf那边的路由信息。
六.调试情况,设计技巧及体会
通过修改router1的路由重分发命令,他才得以将ospf那边的路由信息学习到。
在ciscopackettracer中的配置信息不易保存,断电后就会导致配置信息丢失,所以如何第二次打开之后路由不通了,就应重新搭建网络拓扑,而不应该在错误的基础上进行修改,这样反而会浪费很多时间,不如重新搭建效果好。
1.改进方案
本次试验的不足之处是由于子网划分的太过于复杂,导致自己到最后都不知道哪段的子网掩码是多少了,但是也同样是有好处的,因为在现实当中网络环境是很复杂的,所以子网划分细一点也能节省不少的ip地址。
但是在做模拟实验是应该尽可能的划分的简单一些,这样有利于实验更快的完成。
2.体会
1.刚开始的时候我是先将rip端配置好,再配置ospf端最后利用一个路由器进行重分发,可是老是出现rip端的pc只能ping通ospf的一个区域,其他区域ping不通,查看协议发现每个路由器学到的路由信息都少一部分,分析是因为路由重分发命令使用的不正确,没能将所有的子网学习到。
重新配置之后才能ping通。
七.参考文献
RCNP实验指南:
《构建高级的路由互联网络》主编石林方洋李文宇电子工业出版社
八.附录:
源代码(电子版)
Router0配置源代码:
!
version12.4
noservicetimestampslogdatetimemsec
noservicetimestampsdebugdatetimemsec
noservicepassword-encryption
!
hostnameRouter
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interfaceFastEthernet0/0
ipaddress192.168.1.1255.255.255.252
duplexauto
speedauto
!
interfaceFastEthernet0/1
ipaddress192.168.2.1255.255.255.0
duplexauto
speedauto
!
interfaceSerial0/2/0
noipaddress
!
interfaceSerial0/2/1
ipaddress172.16.1.5255.255.255.252
clockrate64000
!
interfaceSerial0/3/0
noipaddress
!
interfaceSerial0/3/1
noipaddress
!
interfaceVlan1
noipaddress
shutdown
!
routerrip
version2
network172.16.0.0
network192.168.1.0
network192.168.2.0
noauto-summary
!
ipclassless
!
!
!
!
!
!
!
linecon0
linevty04
login
!
!
!
end
router1配置源代码:
!
version12.4
noservicetimestampslogdatetimemsec
noservicetimestampsdebugdatetimemsec
noservicepassword-encryption
!
hostnameRouter
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interfaceFastEthernet0/0
noipaddress
duplexauto
speedauto
!
interfaceFastEthernet0/1
noipaddress
duplexauto
speedauto
!
interfaceSerial0/2/0
ipaddress172.16.1.6255.255.255.252
!
interfaceSerial0/2/1
noipaddress
!
interfaceSerial0/3/0
ipaddress172.16.1.1255.255.255.252
clockrate64000
!
interfaceSerial0/3/1
noipaddress
!
interfaceVlan1
noipaddress
shutdown
!
routerospf10
log-adjacency-changes
redistributeripmetric50subnets
redistributeconnectedsubnets
network172.16.1.00.0.0.3area0
!
routerrip
version2
redistributeospf10metric1
redistributeconnected
network172.16.0.0
noauto-summary
!
ipclassless
!
!
!
!
!
!
!
linecon0
linevty04
login
!
!
!
end
router2配置源代码:
!
version12.4
noservicetimestampslogdatetimemsec
noservicetimestampsdebugdatetimemsec
noservicepassword-encryption
!
hostnameRouter
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interfaceFastEthernet0/0
ipaddress172.16.3.1255.255.255.0
duplexauto
speedauto
!
interfaceFastEthernet0/1
noipaddress
duplexauto
speedauto
!
interfaceSerial0/2/0
noipaddress
!
interfaceSerial0/2/1
noipaddress
!
interfaceSerial0/3/0
ipaddress172.16.1.2255.255.255.252
!
interfaceSerial0/3/1
ipaddress172.16.1.9255.255.255.252
!
interfaceVlan1
noipaddress
shutdown
!
routerospf10
log-adjacency-changes
network172.16.1.00.0.0.3area0
network172.16.3.00.0.0.255area0
network172.16.1.80.0.0.3area1
!
ipclassless
!
!
!
!
!
!
!
linecon0
linevty04
login
!
!
!
end
router3配置源代码:
!
version12.4
noservicetimestampslogdatetimemsec
noservicetimestampsdebugdatetimemsec
noservicepassword-encryption
!
hostnameRouter
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interfaceFastEthernet0/0
ipaddress10.1.1.1255.255.255.0
duplexauto
speedauto
!
interfaceFastEthernet0/1
ipaddress10.1.2.1255.255.255.0
duplexauto
speedauto
!
interfaceSerial0/2/0
noipaddress
!
interfaceSerial0/2/1
noipaddress
!
interfaceSerial0/3/0
noipaddress
!
interfaceSerial0/3/1
ipaddress172.16.1.10255.255.255.252
clockrate64000
!
interfaceVlan1
noipaddress
shutdown
!
routerospf10
log-adjacency-changes
network10.1.1.00.0.0.255area1
network10.1.2.00.0.0.255area1
network172.16.1.80.0.0.3area1
!
ipclassless
!
!
!
!
!
!
!
linecon0
linevty04
login
!
!
!
end
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 网络 拓扑 协议 配置 报告