实验报告三层交换机静态路由配置.doc_第1页
实验报告三层交换机静态路由配置.doc_第2页
实验报告三层交换机静态路由配置.doc_第3页
实验报告三层交换机静态路由配置.doc_第4页
全文预览已结束

下载本文档

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

文档简介

华东师范大学计算机科学技术系实验报告华东师范大学计算机科学技术系上机实践报告课程名称:计算机网络工程年级:2013国培计算机班上机实践成绩:指导教师: 陆刚、强志成姓名:黄嘉懿创新实践成绩:实验名称:三层交换机静态路由配置学号:50071200103上机实践日期:2014-6-11座位编号:3组号:4上机实践时间: 学时一、 实验目的1. 学会计算机和路由器、交换机的连接2. 掌握IP地址的分配和划分子网的方法3. 掌握路由器/交换机的命令行配置二、 实验设备1. PC机4台2. 3560三层交换机1台3. 2811路由器1台4. 平行双绞线4根、交叉双绞线1根三、 实验原理网络拓扑图如下:通过路由器实现各不同Vlan之间的通信,路由器工作在OSI模型中的第三层,即网络层。路由器利用网络层定义的“逻辑”上的网络地址(即IP地址)来区别不同的网络,实现网络的互连和隔离,保持各个网络的独立性。路由器不转发广播消息,而把广播消息限制在各自的网络内部。发送到其他网络的数据先被送到路由器,再由路由器转发出去。同一个子网内的主机可以自由通信,不同子网间的主机不能直接通信。四、 实验步骤1、配置各PC的IP地址和子网掩码及默认网关:A:192.168.10.2255.255.255.0192.168.10.1B:192.168.20.2255.255.255.0192.168.20.1C:192.168.30.2255.255.255.0192.168.30.1D:192.168.40.2255.255.255.0192.168.40.12、配置路由器RouterenRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#hostname RR(config)#int f0/1R(config-if)#no shutdown%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to upR(config-if)#ip addr 192.168.30.1 255.255.255.0R(config-if)#exitR(config)#int f0/0R(config-if)#no shutdown%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upR(config-if)#ip addr 10.0.0.2 255.255.255.0R(config)#ip route 0.0.0.0 0.0.0.0 10.0.0.13、配置三层交换机SwitchenSwitch#conf tEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#hostname SwiSwi(config)#vlan 10Swi(config-vlan)#exitSwi(config)#vlan 20Swi(config-vlan)#exitSwi(config)#vlan 30Swi(config-vlan)#exitSwi(config)#int f0/10Swi(config-if)#switchport mode accessSwi(config-if)#switchport access vlan 10Swi(config-if)#exitSwi(config)#int f0/20Swi(config-if)#switchport mode accessSwi(config-if)#switchport access vlan 20Swi(config-if)#exitSwi(config)#int f0/15Swi(config-if)#switchport mode accessSwi(config-if)#switchport access vlan 30Swi(config-if)#exitSwi(config)#interface vlan 10%LINK-5-CHANGED: Interface Vlan10, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan10, changed state to upSwi(config-if)#ip addr 192.168.10.1 255.255.255.0Swi(config-if)#exitSwi(config)#interface vlan 20%LINK-5-CHANGED: Interface Vlan20, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan20, changed state to upSwi(config-if)#ip addr 192.168.20.1 255.255.255.0Swi(config-if)#exitSwi(config)#int vlan 30%LINK-5-CHANGED: Interface Vlan30, changed state to upSwi(config-if)#%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan30, changed state to upip addr 192.168.40.1 255.255.255.0Swi(config-if)#exitSwi(config)#int f0/24Swi(config-if)#no switchportSwi(config-if)#ip addr 10.0.0.1 255.255.255.0Swi(config-if)# no shutdownSwi(config-if)#exitSwi(config)#ip route 0.0.0.0 0.0.0.0 10.0.0.2Swi(config)#ip routing4、测试各个Vlan是否连通,结果如下:(1)C PING APCping 192.168.10.2Pinging 192.168.10.2 with 32 bytes of data:Request timed out.Reply from 192.168.10.2: bytes=32 time=12ms TTL=126Reply from 192.168.10.2: bytes=32 time=13ms TTL=126Reply from 192.168.10.2: bytes=32 time=13ms TTL=126Ping statistics for 192.168.10.2: Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),Approximate round trip times in milli-seconds: Minimum = 12ms, Maximum = 13ms, Average = 12ms(2)C PING BPCping 192.168.20.2Pinging 192.168.20.2 with 32 bytes of data:Reply from 192.168.20.2: bytes=32 time=13ms TTL=126Reply from 192.168.20.2: bytes=32 time=9ms TTL=126Reply from 192.168.20.2: bytes=32 time=13ms TTL=126Reply from 192.168.20.2: bytes=32 time=11ms TTL=126Ping statistics for 192.168.20.2: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),Approximate round trip times in milli-seconds: Minimum = 9ms, Maximum = 13ms, Average = 11ms(3)C PING DPCping 192.168.40.2Pinging 192.168.40.2 with 32 bytes of data:Reply from 192.168.40.2: bytes=32 time=13ms TTL=126Reply from 192.168.40.2: bytes=32 time=12ms TTL=126Reply from 192.168.40.2: bytes=32 time=10ms TTL=126Reply from 192.168.40.2: bytes=32 time=12ms TTL=126Ping statistics for 192.168.40.2: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),Approximate round trip times in milli-s

温馨提示

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

评论

0/150

提交评论