




已阅读5页,还剩7页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
实验四 交换机VLAN的配置一、 实验内容在两台Catalyst2950交换机组成的网络中划分VLAN,配置VTP和VLAN Trunk协议,使得相同VLAN中的PC之间可以相互Ping通,不同VLAN中的PC之间不能相互Ping通,实验的拓扑图如图1所示。两台交换机之间通过快速以太网接口fastethernet0/12连接起来,将PC1接入交换机SW1的FE0/1, 将PC2接入交换机SW1的FE0/2, 将PC3接入交换机SW2的FE0/1, 将PC4接入交换机SW2的FE0/2。把PC1和PC3划分为VLAN10,把PC2和PC4划分为VLAN20。实验要求如下:(1) 给交换机命名,SW1命名为S2950-1,SW2命名为S2950-2,配置SW1的管理IP地址为192.168.0.1,SW2的管理IP地址为192.168.0.2;(2) 创建VTP管理域,VTP管理域域名为network,设置SW1交换机为VTP服务器,SW2交换机为VTP客户端;(3) 配置VLAN Trunk,Trunk封装协议采用IEEE 802.1Q;(4) 创建VLAN;(5) 划分VLAN端口;(6) 分别查看VLAN10、VLAN20和整个VLAN的配置信息;(7) 配置PC的IP地址、网关和子网掩码,其中,网关设置为192.168.1.5;(8) 验证VLAN配置,用PC1分别ping PC2、PC3和PC4进行验证。图1 交换机VLAN的配置二、 实验目的三、 实验步骤12345四、 实验过程1 绘制实验拓扑图实验步骤:1. 配置SW1交换机(1) 设置交换机主机名switchenableswitch#config terminalswitch(config)#hostname S2950-1S2950-1(config)#exit!退出全局模式,进入特权模式S2950-1#(2) 划分和配置VLAN步骤一:创建VTP管理域 创建VTP管理域,VTP管理域域名为network!进入VLAN配置模式S2950-1#vlan databaseS2950-1(vlan)#!创建VTP管理域networkS2950-1(vlan)#vtp domain network 设置SW1交换机为VTP服务器S2950-1(vlan)#vtp serverS2950-1(vlan)#!退出VLAN配置模式S2950-1(vlan)#exitS2950-1#步骤二:配置trunking和封装方法!进入全局配置模式S2950-1#config terminalS2950-1(config)#!选择要配置的接口S2950-1(config)#interface !设置为2层交换端口!设置trunk封装方式为IEEE 802.1Q!设置该端口为trunk端口!结束配置,退回到特权EXEC模式!显示trunk配置信息步骤三:创建VLAN步骤四:划分VLAN端口(3) 查看VLAN配置(4) 验证VLAN配置2. 配置SW2交换机3. 设置交换机主机名4. 划分和配置VLAN步骤一:创建VTP管理域步骤二:配置trunking和封装方法步骤三:创建VLAN步骤四:划分VLAN端口5. 查看VLAN配置6. 验证VLAN配置SwitchSwitchenableSwitch#config terminalEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#hostname S2950-AS2950-A(config)#exitS2950-A#vlan databaseS2950-A(vlan)#vtp domain studentChanging VTP domain from NULL to studentS2950-A(vlan)#vtp serverS2950-A(vlan)#exitAPPLY completed.Exiting.S2950-A#config terminalEnter configuration commands, one per line. End with CNTL/Z.S2950-A(config)#interface fastethernet 0/12S2950-A(config-if)#switchport mode trunkS2950-A(config-if)#switchport trunk encapsulation dot1qS2950-A(config-if)#switchport trunk allowed vlan allS2950-A(config-if)#endS2950-A#vlan databaseS2950-A(vlan)#vlan 10 name vlan10VLAN 10 added: Name:vlan10S2950-A(vlan)#vlan 20 name vlan20VLAN 20 added: Name:vlan20S2950-A(vlan)#endS2950-A#config terminalEnter configuration commands, one per line. End with CNTL/Z.S2950-A(config)#interface fastethernet 0/1S2950-A(config-if)#switchport mode accessS2950-A(config-if)#switchport access vlan 10S2950-A(config-if)#endS2950-A#config terminalEnter configuration commands, one per line. End with CNTL/Z.S2950-A(config)#interface fastetherner 0/2S2950-A(config-if)#switchport mode accessS2950-A(config-if)#switchport access vlan 20S2950-A(config-if)#endS2950-A#config terminalEnter configuration commands, one per line. End with CNTL/Z.S2950-A(config)#endS2950-A#SwitchSwitchenableSwitch#config terminalEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#hostname S2950-BS2950-B(config)#exitS2950-B#vlan databaseS2950-B(vlan)#vtp domain studentChanging VTP domain from NULL to studentS2950-B(vlan)#vtp clientS2950-B(vlan)#exitAPPLY completed.Exiting.S2950-B#config terminalEnter configuration commands, one per line. End with CNTL/Z.S2950-B(config)#interface fastethernet 0/12S2950-B(config-if)#switchport mode trunkS2950-B(config-if)#switchport trunk encapsulation dot1qS2950-B(config-if)#switchport trunk allowed vlan allS2950-B(config-if)#endS2950-B#S2950-B#config terminalEnter configuration commands, one per line. End with CNTL/Z.S2950-B(config)#interface fastethernet 0/1S2950-B(config-if)#switchport mode accessS2950-B(config-if)#switchport access vlan 10S2950-B(config-if)#exitS2950-B(config)#interface fastethernet 0/2S2950-B(config-if)#switchport mode accessS2950-B(config-if)#switchport access vlan 20S2950-B(config-if)#exitS2950-B(config)#exitS2950-B#C:winipcfgC:ping 192.168.1.4Pinging 192.168.1.4 with 32 bytes of data:Reply from 192.168.1.4: bytes=32 time=60ms TTL=241Reply from 192.168.1.4: bytes=32 time=60ms TTL=241Reply from 192.168.1.4: bytes=32 time=60ms TTL=241Reply from 192.168.1.4: bytes=32 time=60ms TTL=241Reply from 192.168.1.4: bytes=32 time=60ms TTL=241Ping statistics for 192.168.1.4: Packets: Sent = 5, Received = 5, Lost = 0 (0% loss),Approximate round trip times in milli-seconds: Minimum = 50ms, Maximum = 60ms, Average = 55msC:ping 192.168.1.3Pinging 192.168.1.3 with 32 bytes of data:Request timed out.Request timed out.Request timed out.Request timed out.Request timed out.Ping statistics for 192.168.1.3: Packets: Sent = 5, Received = 0, Lost = 5 (100% loss),Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 0ms, Average = 0msC:ping 192.168.1.5Pinging 192.168.1.5 with 32 bytes of data:Request timed out.Request timed out.Request timed out.Request timed out.Request timed out.Ping statistics for 192.168.1.5: Packets: Sent = 5, Received = 0, Lost = 5 (100% loss),Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 0ms, Average = 0msC:C:winipcfgC:ping 192.168.1.5Pinging 192.168.1.5 with 32 bytes of data:Reply from 192.168.1.5: bytes=32 time=60ms TTL=241Reply from 192.168.1.5: bytes=32 time=60ms TTL=241Reply from 192.168.1.5: bytes=32 time=60ms TTL=241Reply from 192.168.1.5: bytes=32 time=60ms TTL=241Reply from 192.168.1.5: bytes=32 time=60ms TTL=241Ping statistics for 192.168.1.5: Packets: Sent = 5, Received = 5, Lost = 0 (0% loss),Approximate round trip times in milli-seconds: Minimum = 50ms, Maximum = 60ms, Average = 55msC:ping 192.168.1.2Pinging 192.168.1.2 with 32 bytes of data:Request timed out.Request timed out.Request timed out.Request timed out.Request timed out.Ping statistics for 192.168.1.2: Packets: Sent = 5, Received = 0, Lost = 5 (100% loss),Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 0ms, Average = 0msC:ping 192.168.1.4Pinging 192.168.1.4 with 32 bytes of data:Request timed out.Request timed out.Request timed out.Request timed out.Request timed out.Ping statistics for 192.168.1.4: Packets: Sent = 5, Received = 0, Lost = 5 (100% loss),Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 0ms, Average = 0msC:winipcfgC:ping 192.168.1.2Pinging 192.168.1.2 with 32 bytes of data:Reply from 192.168.1.2: bytes=32 time=60ms TTL=241Reply from 192.168.1.2: bytes=32 time=60ms TTL=241Reply from 192.168.1.2: bytes=32 time=60ms TTL=241Reply from 192.168.1.2: bytes=32 time=60ms TTL=241Reply from 192.168.1.2: bytes=32 time=60ms TTL=241Ping statistics for 192.168.1.2: Packets: Sent = 5, Received = 5, Lost = 0 (0% loss),Approximate round trip times in milli-seconds: Minimum = 50ms, Maximum = 60ms, Average = 55msC:ping 192.168.1.3Pinging 192.168.1.3 with 32 bytes of data:Request timed out.Request timed out.Request timed out.Request timed out.Request timed out.Ping statistics for 192.168.1.3: Packets: Sent = 5, Received = 0, Lost = 5 (100% loss),Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 0ms, Average = 0msC:ping 192.168.1.5Pinging 192.168.1.5 with 32 bytes of data:Request timed out.Request timed out.Request timed out.Request timed out.Request timed out.Ping statistics for 192.168.1.5: Packets: Sent = 5, Received = 0, Lost = 5 (100% loss),Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 0ms, Average = 0msC:winipcfgC:ping 192.168.1.3Pinging 192.168.1.3 with 32 bytes of data:Reply from 192.168.1.3: bytes=32 time=60ms TTL=241Reply from 192.168.1.3: bytes=32 time=60ms TTL=241Reply from 192.168.1.3: bytes=32 time=60ms TTL=241Reply from 192.168.1.3: bytes=32 time=60ms TTL=241Reply from 192.168.1.3: bytes=32 time=60ms TTL=241Ping sta
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 难点解析-北师大版8年级数学上册期末试题附参考答案详解(综合卷)
- 难点解析河南省卫辉市7年级上册期末测试卷专项攻克练习题(详解)
- 2025年公安机关人民警察高级执法资格考试题(解析版)
- 2025年度军队文职人员招录考试《管理学》题库(含答案)
- 2025年农业物联网精准种植技术对农业产业转型升级路径探索的影响报告
- 2025年家庭教育指导服务行业市场前景与政策环境分析报告
- 左迁蓝关示侄孙湘课件
- 灌肠法培训课件
- 人造麂皮项目可行性研究报告
- 巡察工作基本流程课件
- 吉安市新庐陵投资发展有限公司及下属子公司2025年第二批面向社会公开招聘笔试备考题库及答案解析
- 2025至2030年中国生长激素行业市场深度研究及投资战略规划报告
- 大疆:2025大疆机场3操作指导书
- 2025年12345热线考试题库
- 2025年卫生健康行业经济管理领军人才试题
- 绿色矿山培训课件
- hiv职业暴露培训课件
- 2025年重庆市高考物理试卷(含答案解析)
- 小番茄栽培技术课件
- 女职工普法宣传教学课件
- (高清版)DB22∕T 5159-2024 预应力混凝土桩基础技术标准
评论
0/150
提交评论