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

下载本文档

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

文档简介

vlan的划分一:实验目的学会使用CLI命令行划分VLAN方法二:实验设备1. 神舟数码1. DCS-3926S二层交换机一台2. PC机一台3. Console线一根4. 直通线若干DCS-3926S二层交换机交换机简单实验拓扑Console口PCVLAN 10VLAN 20端口Consile线三:实验要求在交换机上划分两个基于端口的VLAN:VLAN100,VLAN200.vlan端口成员100/0/1-12200/0/13-24四:实验具体步骤第一步:建立连接,打开超级终端,根据提示操作。第一步 第二步 第三步当看到本画面,说明以正常进入交换机第二步:修改交换机的名字switchenable ;从用户模式进入特权模式 switch#config ;从特权模式进入全局模式switch(Config)#hostname DCS-3926S ;修改交换机的名字DCS-3926S(Config)# ;修改成功第三步:创建VLAN 10,VLAN 20.Vlan1为默认VLAN。DCS-3926S#configDCS-3926S(Config)#vlan 10 ;创建VLAN100DCS-3926S(Config-Vlan10)#exit :退出VLAN100DCS-3926S(Config)#vlan 20第四步:给VLAN10,VLAN20添加端口DCS-3926S(Config)#vlan 10 :进入VLAN10DCS-3926S(Config-Vlan10)#switchport interface ethernet 0/0/1-12 :由于本交换机为模块式交换机,所以将端口1-12添加进vlan10中Set the port Ethernet0/0/1 access vlan 10 successfullySet the port Ethernet0/0/2 access vlan 10 successfullySet the port Ethernet0/0/3 access vlan 10 successfullySet the port Ethernet0/0/4 access vlan 10 successfullySet the port Ethernet0/0/5 access vlan 10 successfullySet the port Ethernet0/0/6 access vlan 10 successfullySet the port Ethernet0/0/7 access vlan 10 successfullySet the port Ethernet0/0/8 access vlan 10 successfullySet the port Ethernet0/0/9 access vlan 10 successfullySet the port Ethernet0/0/10 access vlan 10 successfullySet the port Ethernet0/0/11 access vlan 10 successfullySet the port Ethernet0/0/12 access vlan 10 successfullyDCS-3926S(Config-Vlan10)#exitDCS-3926S(Config)#vlan 20DCS-3926S(Config-Vlan20)#switchport interface ethernet 0/0/13-24Set the port Ethernet0/0/13 access vlan 20 successfullySet the port Ethernet0/0/14 access vlan 20 successfullySet the port Ethernet0/0/15 access vlan 20 successfullySet the port Ethernet0/0/16 access vlan 20 successfullySet the port Ethernet0/0/17 access vlan 20 successfullySet the port Ethernet0/0/18 access vlan 20 successfullySet the port Ethernet0/0/19 access vlan 20 successfullySet the port Ethernet0/0/20 access vlan 20 successfullySet the port Ethernet0/0/21 access vlan 20 successfullySet the port Ethernet0/0/22 access vlan 20 successfullySet the port Ethernet0/0/23 access vlan 20 successfullySet the port Ethernet0/0/24 access vlan 20 successfullyDCS-3926S(Config-Vlan20)#验证配置:DCS-3926S#show vlanVLAN Name Type Media Ports- - - - -1 default Static ENET10 VLAN0010 Static ENET Ethernet0/0/1 Ethernet0/0/2 Ethernet0/0/3 Ethernet0/0/4 Ethernet0/0/5 Ethernet0/0/6 Ethernet0/0/7 Ethernet0/0/8 Ethernet0/0/9 Ethernet0/0/10 Ethernet0/0/11 Ethernet0/0/1220 VLAN0020 Static ENET Ethernet0/0/13 Ethernet0/0/14 Ethernet0/0/15 Ethernet0/0/16 Ethernet0/0/17 Ethernet0/0/18 Ethernet0/0/19 Ethernet0/0/20 Ethernet0/0/21 Ethernet0/0/22 Ethernet0/0/23 Ethernet0/0/24DCS-3926S#可以看到,端口已经成功添加如vlan中,说明实验成功。Vlan间是不可以通讯的,1-12端口可以互相通信,13-24端口可以相互通信。Vlan10和Vlan20之间的端口不能通信.可以使用ping 命令验证。具体方法,请参详后面有关实验。删除VLAN:DCS-3926S#configDCS-3926S(Config)#no vlan 10DCS-3926S(Config)#no vlan 20DCS-3926S(Config)#exitDCS-3926S#show vlanVLAN Name Type Media Ports- - - - -1 default Static ENET Ethernet0/0/1 Ethernet0/0/2 Ethernet0/0/3 Ethernet0/0/4 Ethernet0/0/5 Ethernet0/0/6 Ethernet0/0/7 Ethernet0/0/8 Ethernet0/0/9 Ethernet0/0/10 Ethernet0/0/11 Ethernet0/0/12 Ethernet0/0/13 Ethernet0/0/14 Ethernet0/0/15 Ethernet0/0/16 Ether

温馨提示

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

评论

0/150

提交评论