已阅读5页,还剩5页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
实验 2 交换网络实验理解交换机的主要作用和功能掌握交换机的常用端口的功能和使用了解进入交换机的方法掌握交换机的常用命令掌握局域网的常用协议的配置 掌握交换机的连接和配置方法实验设备Cisco Catalyst 3550, Quidway 2000系列,Quidway 3000系列交换机实验概述1. 演示实验2. 自主实验3. 高级实验(选做)实验内容1. 演示实验:划分VLAN 1) 设置 Vlan 1 通过Console或者telnet连接路由器A的控制台,进入特权模式配置状态:Command: interface vlan 1进入VLAN配置状态:Command: ip address 172.16.1.254 255.255.255.0 设置VLAN1的IP地址Command: exit退到Configure状态Command: cdp run开启Cisco Discover ProtocolCommand: exit退回到Enable状态Command: write保存交换机的配置2) 同理,设置 Vlan 2 vlan 2 的IP地址/掩码为:172.16.2.254 /255.255.255.0 然后,进入端口设置状态,通过下列命令将端口fe0/13加入vlan 2:Command: interface FastEthernet 0/13Command: switchport mode access设置VLAN传输模式Command: switchport access vlan 2设置所属的VLAN如上配置0/14-0/24到VLAN 2。完成对vlan1的设置后,填写表1。表1实验步骤观察内容显示网络设备连接状况Command: display vlan 2VLAN ID: 2 VLAN Type: static Route Interface: configured IP Address: 172.16.1.254 Subnet Mask: 255.255.255.0 Description: VLAN 0002 Tagged Ports: none Untagged Ports: Ethernet0/1 Ethernet0/2 Ethernet0/3 Ethernet0/4 Ethernet0/5 Ethernet0/6 Ethernet0/7 Ethernet0/8 Ethernet0/9 Ethernet0/10测试PC1/PC2连通状态Command: pingPinging 172.16.1.1 with 32 bytes of data:Reply from 172.16.1.1: bytes=32 time1ms TTL=64Reply from 172.16.1.1: bytes=32 time1ms TTL=64Reply from 172.16.1.1: bytes=32 time1ms TTL=64Reply from 172.16.1.1: bytes=32 time1ms TTL=64Ping statistics for 172.16.1.1: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 0ms, Average = 0ms测试PC1/PC3连通状态Command: pingPinging 172.16.2.1 with 32 bytes of data:Request timed out.Request timed out.Request timed out.Request timed out.Ping statistics for 172.16.2.1:Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),测试PC1/PC4连通状态Command: pingPinging 172.16.2.2 with 32 bytes of data:Request timed out.Request timed out.Request timed out.Request timed out.Ping statistics for 172.16.2.2:Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),测试PC3/PC4连通状态Command: pingPinging 172.16.2.1 with 32 bytes of data:Reply from 172.16.2.1: bytes=32 time1ms TTL=64Reply from 172.16.2.1: bytes=32 time1ms TTL=64Reply from 172.16.2.1: bytes=32 time1ms TTL=64Reply from 172.16.2.1: bytes=32 time1ms TTL=64Ping statistics for 172.16.2.1:Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),Approximate round trip times in milli-seconds:Minimum = 0ms, Maximum = 0ms, Average = 0ms测试PC1/VLAN1连通状态Command: pingPinging 172.16.1.254 with 32 bytes of data:Reply from 172.16.1.254: bytes=32 time=8ms TTL=255Reply from 172.16.1.254: bytes=32 time=5ms TTL=255Reply from 172.16.1.254: bytes=32 time=3ms TTL=255Reply from 172.16.1.254: bytes=32 time=2ms TTL=255Ping statistics for 172.16.1.254:Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),Approximate round trip times in milli-seconds:Minimum = 2ms, Maximum = 8ms, Average = 4ms测试PC4/VLAN1连通状态Command: pingPinging 172.16.1.254 with 32 bytes of data:Destination host unreachable.Destination host unreachable.Destination host unreachable.Destination host unreachable.Ping statistics for 172.16.1.254:Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),完成对vlan2的设置后,填写表2。表2实验步骤观察内容检查VLAN的状态Command: display vlan 3VLAN ID: 3 VLAN Type: static Route Interface: configured IP Address: 172.16.2.254 Subnet Mask: 255.255.255.0 Description: VLAN 0003 Tagged Ports: none Untagged Ports: Ethernet0/11 Ethernet0/12 Ethernet0/13 Ethernet0/14 Ethernet0/15 Ethernet0/16 Ethernet0/17 Ethernet0/18 Ethernet0/19 Ethernet0/20 Ethernet0/21 Ethernet0/22 Ethernet0/23 Ethernet0/24测试PC1/PC2连通状态Command: pingPinging 172.16.1.1 with 32 bytes of data:Reply from 172.16.1.1: bytes=32 time1ms TTL=64Reply from 172.16.1.1: bytes=32 time1ms TTL=64Reply from 172.16.1.1: bytes=32 time1ms TTL=64Reply from 172.16.1.1: bytes=32 time1ms TTL=64Ping statistics for 172.16.1.1:Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),Approximate round trip times in milli-seconds:Minimum = 0ms, Maximum = 0ms, Average = 0ms测试PC1/PC3连通状态Command: pingPinging 172.16.2.1 with 32 bytes of data:Request timed out.Request timed out.Request timed out.Request timed out.Ping statistics for 172.16.2.1:Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),测试PC1/PC4连通状态Command: pingPinging 172.16.2.1 with 32 bytes of data:Request timed out.Request timed out.Request timed out.Request timed out.Ping statistics for 172.16.2.1:Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),测试PC3/PC4连通状态Command: pingPinging 172.16.2.2 with 32 bytes of data:Reply from 172.16.2.2: bytes=32 time1ms TTL=64Reply from 172.16.2.2: bytes=32 time1ms TTL=64Reply from 172.16.2.2: bytes=32 time1ms TTL=64Reply from 172.16.2.2: bytes=32 time1ms TTL=64Ping statistics for 172.16.2.2:Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),Approximate round trip times in milli-seconds:Minimum = 0ms, Maximum = 0ms, Average = 0ms测试PC1/VLAN1连通状态Command: pingPinging 172.16.1.254 with 32 bytes of data:Reply from 172.16.1.254: bytes=32 time=8ms TTL=255Reply from 172.16.1.254: bytes=32 time=5ms TTL=255Reply from 172.16.1.254: bytes=32 time=3ms TTL=255Reply from 172.16.1.254: bytes=32 time=2ms TTL=255Ping statistics for 172.16.1.254:Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),Approximate round trip times in milli-seconds: Minimum = 2ms, Maximum = 8ms, Average = 4ms测试PC4/VLAN1连通状态Command: pingPinging 172.16.1.254 with 32 bytes of data:Destination host unreachable.Destination host unreachable.Destination host unreachable.Destination host unreachable.Ping statistics for 172.16.1.254:Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),2. 自主实验按图中要求对交换机A、B进行配置,划分vlan,观察交换机A的配置文件,并进行测试。设置端口类型为trunk的命令格式:华为交换机:port link-type access | trunk | hybrid Cisco交换机:switchport mode dynamic auto | desirable | trunk配置二层trunk模式。auto自动协商是否成为trunk;desirable把端口设置为trunk如果对方端口是trunk、desirable 或自动模式;trunk设置端口为强制的trunk方式,而不理会对方端口是否为trunk。设置或取消Trunk端口中允许通过的VLAN:华为交换机:undo port trunk permit vlan vlan_id_list | all Cisco交换机:switchport trunk allowed vlan add | all | except | remove vlan-list (可选) 配置trunk允许的VLAN,使用add, all, except, remove关健字。表3实验步骤观察内容从PC1测试与PC2的连通状态Command: ping 172.16.2.2Command: tracert 172.16.2.2Pinging 172.16.2.2 with 32 bytes of data:Request timed out.Request timed out.Request timed out.Request timed out.Ping statistics for 172.16.2.2:Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),Tracing route to 172.16.1.1 over a maximum of 30 hop1 * * * Request timed out.2 * * * Request timed out.3 * * * Request timed out.4 * * * Request timed out.5 * * * Request timed out. 6 * * * Request timed out. 7 * * * Request timed out. 8 * * * Request timed out. 9 * * * Request timed out.从PC1测试与PC3的连通状态Command: ping 172.16.1.3Command: tracert 172.16.1.3Pinging 172.16.1.3 with 32 bytes of data:Request timed out.Request timed out.Request timed out.Request timed out.Ping statistics for 172.16.1.3:Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),Tracing route to 172.16.1.1 over a maximum of 30 hop 1 * * * Request timed out. 2 * * * Request timed out. 3 * * * Request timed out. 4 * * * Request timed out. 5 * * * Request timed out. 6 * * * Request timed out. 7 * * * Request timed out. 8 * * * Request timed out. 9 * * * Request timed out.从PC1测试与PC4的连通状态Command: ping 172.16.2.4Command: tracert 172.16.2.4Pinging 172.16.2.4 with 32 bytes of data:Request timed out.Request timed out.Request timed out.Request timed out.Ping statistics for 172.16.2.4:Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),Tracing route to 172.16.1.1 over a maximum of 30 hop 1 * * * Request timed out. 2 * * * Request timed out. 3 * * * Request timed out. 4 * * * Request timed out. 5 * * * Request timed out. 6 * * * Request timed out. 7 * * * Request timed out. 8 * * * Request timed out. 9 * * * Request timed out.从PC2测试与PC3的连通状态Command: ping 172.16.1.3Command: tracert 172.16.1.3Pinging 172.16.1.3 with 32 bytes of data:Reply from 172.16.1.3: bytes=32 time1ms TTL=64Reply from 172.16.1.3: bytes=32 time1ms TTL=64Reply from 172.16.1.3: bytes=32 time1ms TTL=64Reply from 172.16.1.3: bytes=32 time1ms TTL=64Ping statistics for 172.16.1.3:Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),Approximate round trip times in milli-seconds:Minimum = 0ms, Maximum = 0ms, Average = 0msTracing route to 172.16.2.2 over a maximum of 30 hops 1 1 ms 1 ms 1 ms 172.16.2.2Trace complete.从PC2测试与PC4的连通状态Command: ping 172.16.2.4Command: tracert 172.16.2.4Pinging 172.16.2.4 with 32 bytes of data:Reply from 172.16.2.4: bytes=32 time1ms TTL=64Reply from 172.16.2.4: bytes=32 time1ms TTL=64Reply from 172.16.2.4: bytes=32 time1ms TTL=64Reply from 172.16.2.4: bytes=32 time1ms TTL=64Ping statistics for 172.16.2.4:Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),Approximate round trip times in milli-seconds:Minimum = 0ms, Maximum = 0ms, Average = 0msTracing route to 172.16.2.2 over a maximum of 30 hops 1 1 ms 1 ms 1 ms 172.16.2.2Trace complete.从PC3测试与PC4的连通状态Command: ping 172.16.2.4Command: tracert 172.16.2.4Pinging 172.16.2.4 with 32 bytes of data:Reply from 172.16.2.4: bytes=32 time1ms TTL=64Reply from 172.16.2.4: bytes=32 time1ms TTL=64Reply from 172.16.2.4: bytes=32 time1ms TTL=64Reply from 172.16.2.4: bytes=32 time1ms TTL=64Ping statistics for 172.16.2.4:Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),Approximate round trip times in milli-seconds:Minimum = 0ms, Maximum = 0ms, Average = 0msTracing route to 172.16.2.2 over a maximum of 30 hops 1 1 ms 1 ms 1 ms 172.16.2.2Trace complete.3. 高级实验按图中要求对交换机A、B进行配置,划分vlan,观察交换机A的配置文件,并进行测试。实验步骤观察内容从PC1测试与PC2的连通状态Command: ping 172.16.2.2Command: tracert 172.16.2.2Pinging 172.16.2.2 with 32 bytes of data:Request timed out.Request timed out.Request timed out.Request timed out.Ping statistics for 172.16.2.2:Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),从PC1测试与PC3的连通状态Command: ping 172.16.1.3Command: tracert 172.16.1.3Pinging 172.16.1.3 with 32 bytes of data:Reply from 172.16.1.3: bytes=32 time1ms TTL=128Reply from 172.16.1.3: bytes=32 time1ms TTL=128Reply from 172.16.1.3: bytes=32 time1ms TTL=128Reply from 172.16.1.3: bytes=32 time1ms TTL=128Ping statistics for 172.16.1.3:Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),Approximate round trip times in milli-seconds:Minimum = 0ms, Maximum = 0ms, Average = 0ms从PC1测试与PC4的连通状态Command: ping 172.16.2.4Command: tracert 172.16.2.4Pinging 172.16.2.4 with 32 bytes of data:Request timed ou
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年衡阳辅警招聘考试题库及答案详解(各地真题)
- 2025年甘孜藏族自治州辅警招聘考试真题附答案详解(轻巧夺冠)
- 2025年漳州辅警招聘考试真题及答案详解(有一套)
- 2025年苗栗县辅警招聘考试题库附答案详解(b卷)
- 2025年白银辅警招聘考试题库有答案详解
- 2025年韶关辅警招聘考试题库附答案详解(轻巧夺冠)
- 2025年苗栗县辅警招聘考试题库含答案详解(考试直接用)
- 2025年衡阳辅警协警招聘考试备考题库(含答案详解)
- 2025年海西州辅警协警招聘考试备考题库及答案详解(有一套)
- 2025年许昌辅警招聘考试真题附答案详解
- GB/T 44569.1-2024土工合成材料内部节点强度的测定第1部分:土工格室
- 2024年六西格玛绿带认证考试练习题库(含答案)
- 海信入职在线测评真题
- 各科室迎检资料盒
- 精神障碍社区康复服务点评估
- 海姆立克急救法课件(课件)
- GB/T 23587-2024淀粉制品质量通则
- 重庆市存量房买卖合同示范文本模板
- 单跨梁支反力课件讲解
- 解析:湖南省长沙市湖南师大附中教育集团2024-2025学年九年级上学期期中语文试题(解析版)
- A型肉毒素治疗知情同意书 注射知情同意书
评论
0/150
提交评论