实验二、虚拟局域网VLAN.doc_第1页
实验二、虚拟局域网VLAN.doc_第2页
实验二、虚拟局域网VLAN.doc_第3页
实验二、虚拟局域网VLAN.doc_第4页
免费预览已结束,剩余1页可下载查看

下载本文档

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

文档简介

实验二、虚拟局域网VLAN一、 实验目的:学会VLAN的建立与PC的划分二、 实验拓扑图:F0/15Switch PC1PC2VLAN 20VLAN 10F0/5三、实验步骤:1.开始/程序/附件/通讯/超级终端/连接时使用:TCP/IP/主机地址:172.16.5.1/d6/password:star2.开始/运行/telnet 172.16.5.1/enable/password:starPassword: starD63.命令: SwitchAenablePassword:SwitchA#config terminalEnter configuration commands, one per line. End with CNTL/Z.SwitchA(config)#一、 在未划分VLAN前两台PC相互ping可以通。下面创建VLAN。SwitchenableSwitch#configure terminalEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#vlan 102005-03-10 19:38:01 5-CONFIG:Configured from outbandSwitch(config-vlan)#name test102005-03-10 19:38:12 5-CONFIG:Configured from outbandSwitch(config-vlan)#exit2005-03-10 19:38:29 5-CONFIG:Configured from outbandSwitch(config)#vlan 202005-03-10 19:38:37 5-CONFIG:Configured from outbandSwitch(config)#vlan 202005-03-10 19:38:37 5-CONFIG:Configured from outbandSwitch(config-vlan)#name test202005-03-10 19:38:45 5-CONFIG:Configured from outbandSwitch(config-vlan)#exit2005-03-10 19:41:36 5-CONFIG:Configured from outbandSwitch(config)#exit2005-03-10 19:41:40 5-CONFIG:Configured from outband验证测试:Switch#show vlanVLAN Name Status Ports- - - -1 default active Fa0/1 ,Fa0/2 ,Fa0/3 Fa0/4 ,Fa0/5 ,Fa0/6 Fa0/7 ,Fa0/8 ,Fa0/9 Fa0/10,Fa0/11,Fa0/12 Fa0/13,Fa0/14,Fa0/15 Fa0/16,Fa0/17,Fa0/18 Fa0/19,Fa0/20,Fa0/21 Fa0/22,Fa0/23,Fa0/2410 test10 active !创建的VLAN10,没有端口属于VLAN10中20 test20 active !创建的VLAN20,没有端口属于VLAN20中!默认情况下所有接口都属于VLAN1Switch#二、 将接口分配到VLANSwitch#Switch#configure terminalEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#interface fastethernet 0/52005-03-10 19:49:59 5-CONFIG:Configured from outbandSwitch(config-if)#switchport access vlan 102005-03-10 19:50:25 5-CONFIG:Configured from outbandSwitch(config-if)#exit2005-03-10 19:50:43 5-CONFIG:Configured from outbandSwitch(config)#interface fastethernet 0/152005-03-10 19:51:47 5-CONFIG:Configured from outbandSwitch(config-if)#switchport access vlan 202005-03-10 19:52:15 5-CONFIG:Configured from outbandSwitch(config-if)#exit2005-03-10 19:52:28 5-CONFIG:Configured from outbandSwitch(config)#exit2005-03-10 19:52:31 5-CONFIG:Configured from outbandSwitch#show vlanVLAN Name Status Ports- - - -1 default active Fa0/1 ,Fa0/2 ,Fa0/3 Fa0/4 ,Fa0/6 ,Fa0/7 Fa0/8 ,Fa0/9 ,Fa0/10 Fa0/11,Fa0/12,Fa0/13 Fa0/14,Fa0/16,Fa0/17 Fa0/18,Fa0/19,Fa0/20 Fa0/21,Fa0/22,Fa0/23 Fa0/2410 test10 active Fa0/520 test20 active Fa0/15Switch#三、 show running-configSwitch#show running-configSystem software version : 1.61(2) Build Aug 31 2005 ReleaseBuilding configuration.Current configuration : 225 bytes!version 1.0!hostname Switchvlan 1!vlan 10 name test10!

温馨提示

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

评论

0/150

提交评论