基于BosonNetSim的虚拟局域网与路由协议配置_第1页
基于BosonNetSim的虚拟局域网与路由协议配置_第2页
基于BosonNetSim的虚拟局域网与路由协议配置_第3页
基于BosonNetSim的虚拟局域网与路由协议配置_第4页
基于BosonNetSim的虚拟局域网与路由协议配置_第5页
已阅读5页,还剩2页未读 继续免费阅读

下载本文档

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

文档简介

.../基于BosonNetSim的虚拟局域网和路由协议配置 姓名:王涛 学号:pb07210360实验目的:1、学习交换机上VLAN的配置,验证VLAN的工作原理。2、学习路由器上路由协议的配置,查看路由表的内容。3、完成实验报告,内容包括网络拓扑图,交换机、路由器端口配置,VLAN和路由协议的配置命令、VLAN内容〔showvlan、路由信息〔showiproute、实验室结果等。实验环境:模拟软件BosonNetSim实验内容:一:虚拟局域网的配置。1、用BosonNetworkDesigner绘制拓扑图:2.PC机配置如下,其中相同颜色的主机处于一个部门。PC主机IP地址子网掩码A1A2A3B1B2表2.主机IP配置在各自主机上,配置主机的IP地址:a1:IP maska2:IP maska3:IP maskb1:IP maskb2:IP maskpc设置完后可以用ipconfig来查看主机状态〔如图1,〔注:图3只显示a1的,其余主机情况类似图1以上设置用到的代码为:主机: ipconfig/ipip_addrnet_mask对主机ip地址和掩码进行设置。Ping192.168.1.*[问题1]:每台主机相互ping,查看哪些主机可以连通,哪些不可以?为什么?答:都可以连通,因为由于现在局域网还没设定所有主机可以由交换机相连。交换机:Sw1:Switch>enSwitch#vlandatabaseSwitch<vlan>#vlan2namedept1VLAN2added:Name:dept1Switch<vlan>#endSwitch#congSwitch#configureterminalEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Switch<config>#intfa0/1Switch<config-if>#switchportaccessvlan2Switch<config-if>#intfa0/3Switch<config-if>#switchportaccessvlan2Switch<config-if>#endSwitch#vlandatabaseSwitch<vlan>#vlan3namedept2VLAN3added:Name:dept2Switch<vlan>#endSwitch#configureterminalEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Switch<config>#intfa0/2Switch<config-if>#switchportaccessvlan3Switch<config>#intfa0/11Switch<config-if>#switchportmodetrunkSwitch<config-if>#endsw1配置如图2:图2Sw2:Switch>enSwitch#vlandatabaseSwitch<vlan>#vlan2namedept1VLAN2added:Name:dept1Switch<vlan>#vlan3namedept2VLAN3added:Name:dept2Switch<vlan>#endSwitch#configureterminalEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Switch<config>#intfa0/1Switch<config-if>#switchportaccessvlan3Switch<config-if>#intfa0/2Switch<config-if>#switchportaccessvlan3Switch<config>#intfa0/11Switch<config-if>#switchportmodetrunkSwitch<config-if>#end[问题2]:在配置VLAN之后,每台主机相互ping,查看哪些主机可以连通,哪些不可以?为什么?答:〔1主机a1和a3相连〔2主机a2,b1和b2相连。〔1与〔2的主机不连通。因为设置VLAN后,〔1〔2已经处于不同的局域网中了,〔1在dept1中,〔2在dept2中。二:路由协议的配置。1、用BosonNetworkDesigner绘制拓扑图:Pc选择win98,switch选择3550,router选择4500其中router设置1slots;selectoptions<4Ethernet>按要求端口连线。1.在各台主机上按表6配置主机IP地址、子网掩码和默认网关A1:A2:A3:B1:B2:C1:主机配置完后,回答以下问题:[问题3]:每台主机相互ping,查看哪些主机可以连通,哪些不可以?为什么?答:由于路由器是工作在网络层的,并且现在路由器现在还没设定网络协议,而交换机是工作在数据链路层,所以〔1A1、A2、A3互连〔2B1、B2互连〔3C1。〔1〔2〔3互不相连!2.在各台路由器上按表4配置路由器IP地址和路由协议a对各路由器端口按表4配置IP地址。Router1:Router>enRouter#configtEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Router<config>#intea0/0Router<config-if>#noshutdown%LINK-3-UPDOWN:InterfaceEthernet0/0,changedstatetoupRouter<config-if>#intea0/1Router<config-if>#noshutdown%LINK-3-UPDOWN:InterfaceEthernet0/1,changedstatetoupRouter<config-if>#endRouter2:Router>enRouter#configureterminalEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Router<config>#intea0/0Router<config-if>#noshutdown%LINK-3-UPDOWN:InterfaceEthernet0/0,changedstatetoupRouter<config-if>#intea0/1Router<config-if>#noshutdown%LINK-3-UPDOWN:InterfaceEthernet0/1,changedstatetoupRouter<config-if>#endRouter3:Router>enRouter#configureterminalEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Router<config>#intea0/0Router<config-if>#noshutdown%LINK-3-UPDOWN:InterfaceEthernet0/0,changedstatetoupRouter<config-if>#intea0/1Router<config-if>#noshutdown%LINK-3-UPDOWN:InterfaceEthernet0/1,changedstatetoupRouter<config-if>#intea0/2Router<config-if>#noshutdown%LINK-3-UPDOWN:InterfaceEthernet0/2,changedstatetoupRouter<config-if>#end配置完路由器IP地址后回答以下问题:[问题4]:每台主机相互ping,查看哪些主机可以连通,哪些不可以?为什么?答:结果和[问题3]相同。〔1A1、A2、A3互连〔2B1、B2互连〔3C1。〔1〔2〔3互不相连!由于此时设了路由器的ip地址,但网络协议仍然没设定,所以局域网间不能相互通信。[问题5]:当前每台路由器的路由表是什么内容?答:对3个路由器分别执行命令showiproute即可得到结果:Router1:Router#showiprouteCodes:C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGPD-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterareaE1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGPi-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,*-candidatedefaultU-per-userstaticrouteGatewayoflastresortisnotsetC202.38.61.0isdirectlyconnected,Ethernet0/0C210.45.110.0isdirectlyconnected,Ethernet0/1Router2:Router#showiprouteCodes:C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGPD-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterareaE1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGPi-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,*-candidatedefaultU-per-userstaticrouteGatewayoflastresortisnotsetC202.38.62.0isdirectlyconnected,Ethernet0/0C210.45.112.0isdirectlyconnected,Ethernet0/1Router3:Router#showiprouteCodes:C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGPD-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterareaE1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGPi-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,*-candidatedefaultU-per-userstaticrouteGatewayoflastresortisnotsetC202.38.64.0isdirectlyconnected,Ethernet0/0C202.38.61.0isdirectlyconnected,Ethernet0/1C202.38.62.0isdirectlyconnected,Ethernet0/2b在各路由器配置路由协议。在各个路由器上分别配置RIP、OSPF或静态路由协议。Router1:Router#configureterminalEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Router<config>#routeripRouter<config-router>#endRouter2:Router#configureterminalEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Router<config>#routeripRouter<config-router>#endRouter3:Router#configureterminalEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Router<config>#routeripRouter<config-router>#end配置完路由器路由协议后回答以下问题:[问题6]:每台主机相互ping,查看哪些主机可以连通,哪些不可以?为什么?答:所有主机都能互连!由于现在路由协议已经设定,并且在动态设定路由时,将三条路径都设定了。[问题7]:此时每台路由器的路由表是什么内容?答:对3个路由器分别执行命令showiproute即可得到结果:Router1:Router#showiprouteCodes:C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGPD-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterareaE1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGPi-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,*-candidatedefaultU-per-userstaticrouteGatewayoflastresortisnotsetC202.38.61.0isdirectlyconnected,Ethernet0/0C210.45.110.0isdirectlyconnected,Ethernet0/1R202.38.64.0[120/1]via202.38.61.1,00:02:18,Ethernet0/0R210.45.112.0[120/2]via202.38.61.1,00:010:20,Ethernet0/0R202.38.62.0[120/1]via202.38.61.1,00:010:29,Ethernet0/0Router2:Router#showiprouteCodes:C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGPD-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterareaE1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGPi-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,*-candidatedefaultU-per-userstaticrouteGatewayoflastresortisnotsetC202.38.62.0isdirectlyconnected,Ethernet0/0C210.45.112.0isdirectlyconnected,Ethernet0/1R202.38.64.0[120/1]via202.38.62.1,00:09:32,Ethernet0/0R202.38.61.0[120/1]via202.38.62.1,00:09:31,Ethernet0/0R210.45.110.0[120/2]via202.38.62.1,00:02:29,Ethernet0/0Router3:Router#showiprouteCodes:C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGPD-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterareaE1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGPi-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,*-candidatedefaultU-per-userstaticrouteGatewayoflastresortis

温馨提示

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

评论

0/150

提交评论