交换机VLAN配置.doc_第1页
交换机VLAN配置.doc_第2页
交换机VLAN配置.doc_第3页
交换机VLAN配置.doc_第4页
交换机VLAN配置.doc_第5页
已阅读5页,还剩3页未读 继续免费阅读

下载本文档

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

文档简介

实验报告一 VLAN划分一、实验目的1、掌握VLAN的配置:划分VLAN的方法、将端口加入VLAN2、测试Vlan连通性,加深对Vlan的基本原理和特点的认识,掌握Trunk的使用,用ping命令测试网络连通性二、实验内容与步骤: 配置同一交换机上的子网划分1、 按图连接好网络拓扑图:2、按图设置好PC1、PC2、PC3的IP地址3、用PING测试网络连通性。(可以连通打,不能连通打)PC1PC2PC3PC1PC2PC34、在交换机上创建VLAN10,将其命名为teacher,并将PC1所在端口F0/1加入VLAN 105、在交换机上创建VLAN20,将其命名为student,并将PC2、PC3所在端口F0/5、F0/10加入VLAN206、再次用PING测试网络连通性。(可以连通打,不能连通打)PC1PC2PC3PC1PC2PC3实验报告二 跨交换机VLAN划分配置跨交换机上的子网划分1、按图连接好网络拓扑图:2、按图设置好PC1、PC2、PC3的IP地址VPCS 1 ip 54 24PC1 : gateway 54VPCS 1 2VPCS 2 ip 54 24PC2 : gateway 54VPCS 2 3VPCS 3 ip 54 24PC3 : gateway 54VPCS 3 4VPCS 4 ip 54 24PC4 : gateway 543、用PING测试网络连通性。(可以连通打,不能连通打)PC1PC2PC3PC4PC1PC2PC3PC44、在交换机A上创建VLAN10、VLAN20,并将端口加入相应的VLAN中RouterenRouter#vlan databaseRouter(vlan)#vlan 10 name testVLAN 10 added: Name: testRouter(vlan)#exitAPPLY completed.Exiting.Router#configure terminalEnter configuration commands, one per line. End with CNTL/Z.Router(config)#interface fastethernet0/5Router(config-if)#switchport mode accessRouter(config-if)#switchport access vlan 10Router(config-if)#endRouter#vlan databaseRouter(vlan)#vlan 20VLAN 20 added: Name: VLAN0020Router(vlan)#exitAPPLY completed.Exiting.Router#configure terminalEnter configuration commands, one per line. End with CNTL/Z.Router(config)#interface f0/6Router(config-if)#switchport mode accessRouter(config-if)#switchport access vlan 20Router(config-if)#end5、在交换机B上创建VLAN10、VLAN20,并将端口加入相应的VLAN中RouterenRouter#vlan databaseRouter(vlan)#vlan 10VLAN 10 added: Name: VLAN0010Router(vlan)#exitAPPLY completed.Exiting.Router#configure terminalEnter configuration commands, one per line. End with CNTL/Z.Router(config)#interface f0/10Router(config-if)#switchport mode accessRouter(config-if)#switchport access vlan 10Router(config-if)#endRouter#vlan databaseRouter(vlan)#vlan 20VLAN 20 added: Name: VLAN0020Router(vlan)#exitAPPLY completed.Exiting.Router#configure terminalEnter configuration commands, one per line. End with CNTL/Z.Router(config)#interface f0/11Router(config-if)#switchport mode accessRouter(config-if)#switchport access vlan 20Router(config-if)#end6、用PING测试网络连通性。(可以连通打,不能连通打)PC1PC2PC3PC4PC1PC2PC3PC47、配置VLAN Trunk端口,多个交换机之间通过Trunk线路传送VLAN信息RouterRouterenRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#interface f0/1Router(config-if)#switchport mode trunkRouter(config-if)#*Mar 1 00:30:11.207: %DTP-5-TRUNKPORTON: Port Fa0/1 has becomRouter(config-if)#switchport mode trunkRouter(config-if)#switchport trunk allowed vlan allRouter(config-if)#sxit % Invalid input detected at marker.Router(config-if)#exitRouter(config)#exitRouter#*Mar 1 00:33:04.815: %SYS-5-CONFIG_I: Configured from consoleRouter#vlan databaseRouter(vlan)#vtp serverDevice mode already VTP SERVER.Router(vlan)#vtp domain Changing VTP domain name from NULL to Router(vlan)#vtp password 123Setting device VLAN database password to 123.Router(vlan)#Switch-A(config)# (进入端口1配置模式)Switch-A(config-if)# (设置当前端口为Trunk模式)Switch-A(config-if)# (允许

温馨提示

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

评论

0/150

提交评论