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

下载本文档

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

文档简介

基于Boson NetSim 的虚拟局域网和路由协议配置姓名:王涛学号:pb07210360实验目的:1、学习交换机上VLAN的配置,验证VLAN的工作原理。2、学习路由器上路由协议的配置,查看路由表的内容。3、完成实验报告,内容包括网络拓扑图,交换机、路由器端口配置,VLAN和路由协议的配置命令、VLAN内容(show vlan)、路由信息(show ip route)、实验室结果等。实验环境:模拟软件Boson NetSim实验内容:一:虚拟局域网的配置。1、用Boson Network Designer绘制拓扑图:2.PC机配置如下,其中相同颜色的主机处于一个部门。PC主机IP地址子网掩码A1192.168.1.1255.255.255.0A2192.168.1.2255.255.255.0A3192.168.1.3255.255.255.0B1192.168.1.4255.255.255.0B2192.168.1.5255.255.255.0表2. 主机IP配置在各自主机上,配置主机的IP地址:a1:IP192.168.1.1mask255.255.255.0a2:IP192.168.1.2mask255.255.255.0a3:IP192.168.1.3mask255.255.255.0b1:IP192.168.1.4mask255.255.255.0b2:IP192.168.1.5mask255.255.255.0pc设置完后可以用ipconfig 来查看主机状态(如图1),(注:图3只显示a1的,其余主机情况类似)图1以上设置用到的代码为:主机:ipconfig /ip ip_addr net_mask 对主机ip地址和掩码进行设置。Ping 192.168.1.*【问题1】:每台主机相互ping,查看哪些主机可以连通,哪些不可以?为什么?答:都可以连通,因为由于现在局域网还没设定所有主机可以由交换机相连。交换机:Sw1: SwitchenSwitch#vlan database Switch(vlan)#vlan 2 name dept1VLAN 2 added: Name:dept1Switch(vlan)#endSwitch#congSwitch#configure terminal Enter configuration commands, one per line. End with CNTL/Z.Switch(config)#int fa0/1Switch(config-if)#switchport access vlan 2Switch(config-if)#int fa0/3Switch(config-if)#switchport access vlan 2Switch(config-if)#endSwitch#vlan database Switch(vlan)#vlan 3 name dept2VLAN 3 added: Name:dept2Switch(vlan)#endSwitch#configure terminal Enter configuration commands, one per line. End with CNTL/Z.Switch(config)#int fa0/2Switch(config-if)#switchport access vlan 3Switch(config)#int fa0/11Switch(config-if)#switchport mode trunk Switch(config-if)#endsw1配置如图2:图2Sw2:SwitchenSwitch#vlan database Switch(vlan)#vlan 2 name dept1VLAN 2 added: Name:dept1Switch(vlan)#vlan 3 name dept2VLAN 3 added: Name:dept2Switch(vlan)#endSwitch#configure terminal Enter configuration commands, one per line. End with CNTL/Z.Switch(config)#int fa0/1Switch(config-if)#switchport access vlan 3Switch(config-if)#int fa0/2Switch(config-if)#switchport access vlan 3Switch(config)#int fa0/11Switch(config-if)#switchport mode trunk Switch(config-if)#end【问题2】:在配置VLAN之后,每台主机相互ping,查看哪些主机可以连通,哪些不可以?为什么?答:(1)主机a1和a3相连(2)主机a2,b1和b2相连。(1)与(2)的主机不连通。因为设置VLAN后,(1)(2)已经处于不同的局域网中了,(1)在dept1中,(2)在dept2中。二:路由协议的配置。1、用Boson Network Designer绘制拓扑图:Pc选择win98,switch选择3550,router选择4500其中router设置1 slots;select options(4 Ethernet)按要求端口连线。1. 在各台主机上按表6配置主机IP地址、子网掩码和默认网关A1:C:ipconfig /ip 210.45.110.11 255.255.255.0C:ipconfig /dg 210.45.110.1A2:C:ipconfig /ip 210.45.110.12 255.255.255.0C:ipconfig /dg 210.45.110.1A3:C:ipconfig /ip 210.45.110.13 255.255.255.0C:ipconfig /dg 210.45.110.1B1:C:ipconfig /ip 210.45.112.11 255.255.255.0C:ipconfig /dg 210.45.112.1B2:C:ipconfig /ip 210.45.112.12 255.255.255.0C:ipconfig /dg 210.45.112.1C1:C:ipconfig /ip 202.38.64.11 255.255.255.0C:ipconfig /dg 202.38.64.1主机配置完后,回答以下问题:【问题3】:每台主机相互ping,查看哪些主机可以连通,哪些不可以?为什么?答:由于路由器是工作在网络层的,并且现在路由器现在还没设定网络协议,而交换机是工作在数据链路层,所以(1)A1、 A2、A3互连(2)B1、B2互连(3)C1。(1)(2)(3)互不相连!2. 在各台路由器上按表4配置路由器IP地址和路由协议a)对各路由器端口按表4配置IP地址。Router1:RouterenRouter#config tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#int ea0/0Router(config-if)#ip address 202.38.61.11 255.255.255.0Router(config-if)#no shutdown %LINK-3-UPDOWN: Interface Ethernet0/0, changed state to upRouter(config-if)#int ea0/1Router(config-if)#ip address 210.45.110.1 255.255.255.0Router(config-if)#no shutdown %LINK-3-UPDOWN: Interface Ethernet0/1, changed state to upRouter(config-if)#endRouter2:RouterenRouter#configure terminalEnter configuration commands, one per line. End with CNTL/Z.Router(config)#int ea0/0Router(config-if)#ip address 202.38.62.11 255.255.255.0Router(config-if)#no shutdown %LINK-3-UPDOWN: Interface Ethernet0/0, changed state to upRouter(config-if)#int ea0/1Router(config-if)#ip address 210.45.112.1 255.255.255.0Router(config-if)#no shutdown %LINK-3-UPDOWN: Interface Ethernet0/1, changed state to upRouter(config-if)#endRouter3:RouterenRouter#configure terminal Enter configuration commands, one per line. End with CNTL/Z.Router(config)#int ea0/0Router(config-if)#ip address 202.38.64.1 255.255.255.0Router(config-if)#no shutdown %LINK-3-UPDOWN: Interface Ethernet0/0, changed state to upRouter(config-if)#int ea0/1Router(config-if)#ip address 202.38.61.1 255.255.255.0Router(config-if)#no shutdown %LINK-3-UPDOWN: Interface Ethernet0/1, changed state to upRouter(config-if)#int ea0/2Router(config-if)#ip address 202.38.62.1 255.255.255.0Router(config-if)#no shutdown %LINK-3-UPDOWN: Interface Ethernet0/2, changed state to upRouter(config-if)#end配置完路由器IP地址后回答以下问题:【问题4】:每台主机相互ping,查看哪些主机可以连通,哪些不可以?为什么?答:结果和【问题3】相同。(1)A1、 A2、A3互连(2)B1、B2互连(3)C1。(1)(2)(3)互不相连!由于此时设了路由器的ip地址,但网络协议仍然没设定,所以局域网间不能相互通信。【问题5】:当前每台路由器的路由表是什么内容?答:对3个路由器分别执行命令show ip route即可得到结果:Router1:Router#show ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area 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, * - candidate default U - per-user static routeGateway of last resort is not setC 202.38.61.0 is directly connected, Ethernet0/0C 210.45.110.0 is directly connected, Ethernet0/1Router2:Router#show ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area 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, * - candidate default U - per-user static routeGateway of last resort is not setC 202.38.62.0 is directly connected, Ethernet0/0C 210.45.112.0 is directly connected, Ethernet0/1Router3:Router#show ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area 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, * - candidate default U - per-user static routeGateway of last resort is not setC 202.38.64.0 is directly connected, Ethernet0/0C 202.38.61.0 is directly connected, Ethernet0/1C 202.38.62.0 is directly connected, Ethernet0/2b)在各路由器配置路由协议。在各个路由器上分别配置RIP、OSPF或静态路由协议。Router1:Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z.Router(config)#route rip Router(config-router)#network 202.38.61.0Router(config-router)#network 210.45.110.0Router(config-router)#endRouter2:Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z.Router(config)#route ripRouter(config-router)#network 202.38.62.0Router(config-router)#network 210.45.112.0Router(config-router)#endRouter3:Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z.Router(config)#route ripRouter(config-router)#network 202.38.64.0Router(config-router)#network 202.38.61.0Router(config-router)#network 202.38.62.0Router(config-router)#end配置完路由器路由协议后回答以下问题:【问题6】:每台主机相互ping,查看哪些主机可以连通,哪些不可以?为什么?答:所有主机都能互连!由于现在路由协议已经设定,并且在动态设定路由时,将三条路径都设定了。【问题7】:此时每台路由器的路由表是什么内容?答:对3个路由器分别执行命令show ip route即可得到结果:Router1:Router#show ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area 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, * - candidate default U - per-user static routeGateway of last resort is not setC 202.38.61.0 is directly connected, Ethernet0/0C 210.45.110.0 is directly connected, Ethernet0/1R 202.38.64.0 120/1 via 202.38.61.1, 00:02:18, Ethernet0/0R 210.45.112.0 120/2 via 202.38.61.1, 00:010:20, Ethernet0/0R 202.38.62.0 120/1 via 202.38.61.1, 00:010:29, Ethernet0/0Router2:Router#show ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area 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, * - candidate default U - per-user static routeGateway of last resort is not setC 202.38.62.0 is directly connected, Ethernet0/0C 210.45.112.0 is directly connected, Ethernet0/1R 202.38.64.0 120/1 via 202.38.62.1, 00:09:32, Ethernet0/0R 202.38.61.0 120/1 via 202.38.62.1, 00:09:31, Ethernet0/0R 210.45.110.0 120/2 via 202.38.62.1, 00:02:29, Ethernet0/0Router3:Router#show ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area 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, * - candidate default U - per-user static routeGateway of last resort is

温馨提示

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

评论

0/150

提交评论