让学生自己动手_交换机VLAN划分.doc

上传人:工**** 文档编号:543851209 上传时间:2023-10-14 格式:DOC 页数:6 大小:114.50KB
返回 下载 相关 举报
让学生自己动手_交换机VLAN划分.doc_第1页
第1页 / 共6页
让学生自己动手_交换机VLAN划分.doc_第2页
第2页 / 共6页
让学生自己动手_交换机VLAN划分.doc_第3页
第3页 / 共6页
让学生自己动手_交换机VLAN划分.doc_第4页
第4页 / 共6页
让学生自己动手_交换机VLAN划分.doc_第5页
第5页 / 共6页
点击查看更多>>
资源描述

《让学生自己动手_交换机VLAN划分.doc》由会员分享,可在线阅读,更多相关《让学生自己动手_交换机VLAN划分.doc(6页珍藏版)》请在金锄头文库上搜索。

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四:实验具体步骤第一步:建立连接,打开超级终端,根据提示操作。第一步 第二步 第三步当看到本画面,说明以正常进入交换机第二步:修改交换机的名字switchenab

2、le ;从用户模式进入特权模式 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)

3、#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

4、/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 successful

5、lySet 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 Et

6、hernet0/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

7、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 po

8、rt 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

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-1

10、2端口可以互相通信,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 Ether

11、net0/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 Ethernet0/0/17 Ethernet0/0/18 Ethernet0/0/19 Ethernet0/0/20 Ethernet0/0/21 Ethernet0/0/22 Ethernet0/0/23 Ethernet0/0/24Vlan10.vlan20被删除,端口自动重新划分进默认VLAN1中。提示:命令可以用?或者Tab键提示。

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 生活休闲 > 科普知识

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号