您好,欢迎来到画鸵萌宠网。
搜索
您的当前位置:首页2.实验二 交换机vlan划分实验1

2.实验二 交换机vlan划分实验1

来源:画鸵萌宠网
实验二 交换机vlan划分实验

一、 前置知识 二、 实验目的 1. 了解vlan原理

2. 熟练掌握二层交换机vlan的划分方法 3. 掌握如何验证vlan的划分

三、 实验设备

交换机1台、计算机2台、console线1根、直通网线2根

四、 实验拓扑

五、 实验要求

在交换机上划分两个基于端口的VLAN:VLAN10,VLAN20。 VLAN标识 100 200 六、实验步骤 第一步:交换机恢复出厂设置 switch#set default switch#write switch#reload

端口成员 1~8 9~16

图2-1 交换机恢复出厂设置

图2-2 配置交换机的管理IP地址

第三步:创建vlan100和vlan200 switch(Config)#

switch(Config)#vlan 100 switch(Config-Vlan100)#exit switch(Config)#vlan 200 switch(Config-Vlan200)#exit switch(Config)#exit 验证配置:

switch#show vlan

图2-3配置vlan100和vlan200并验证

第四步:给vlan100和vlan200添加端口 switch(config)#vlan 100

switch(Config-Vlan100)#switchport interface ethernet 0/0/1-8 Set the port Ethernet0/0/1 access vlan 100 successfully Set the port Ethernet0/0/2 access vlan 100 successfully Set the port Ethernet0/0/3 access vlan 100 successfully Set the port Ethernet0/0/4 access vlan 100 successfully Set the port Ethernet0/0/5 access vlan 100 successfully Set the port Ethernet0/0/6 access vlan 100 successfully Set the port Ethernet0/0/7 access vlan 100 successfully Set the port Ethernet0/0/8 access vlan 100 successfully switch(Config-Vlan100)#exit switch(config)#vlan 200

switch(Config-Vlan200)#switchport interface ethernet 0/0/9-16 Set the port Ethernet0/0/9 access vlan 100 successfully Set the port Ethernet0/0/10 access vlan 100 successfully

Set the port Ethernet0/0/11 access vlan 100 successfully Set the port Ethernet0/0/12 access vlan 100 successfully Set the port Ethernet0/0/13 access vlan 100 successfully Set the port Ethernet0/0/14 access vlan 100 successfully Set the port Ethernet0/0/15 access vlan 100 successfully Set the port Ethernet0/0/16 access vlan 100 successfully switch(Config-Vlan200)#exit 验证配置:

switch#show vlan

图2-4 给vlan100和vlan200添加端口并验证

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- huatuo8.com 版权所有 湘ICP备2023022238号-1

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务