2022年多层交换机VLAN的划分和VLAN间路由 .pdf
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_05.gif)
《2022年多层交换机VLAN的划分和VLAN间路由 .pdf》由会员分享,可在线阅读,更多相关《2022年多层交换机VLAN的划分和VLAN间路由 .pdf(9页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、多层交换机VLAN的划分和 VLAN间路由一、实验目的1、了解 VLAN原理;2、学会使用各种多层交换设备进行VLAN的划分;3、理解 VLAN之间路由的原理和实现方法;二、应用环境软件实验室的IP 地址段是 192.168.10.0/24,多媒体实验室的IP地址段是 192.168.20.0/24,为了保证它们之间的数据互不干扰,也不影响各自的通信效率,我们划分了VLAN,使两个实验室属于不同的VLAN。两个实验室有时候也需要相互通信,此时就要利用三层交换机划分VLAN。三、实验设备1、DCRS-7604(或 6804 或 5526S)交换机 1 台2、PC机 2 台3、Console 线
2、1 根4、直通网线若干四、实验拓扑使用一台交换机和两台PC 机,还将其中PC2 作为控制台终端,使用Console 口配置方式;使用两根网线分别将PC1 和 PC2 连接到交换机的RJ-45 接口上。五、实验要求在交换机上划分两个基于端口的VLAN:VLAN100,VLAN200。VLAN 端口成员100 1/11/12 200 1/131/24 使得 VLAN100的成员能够互相访问,VLAN200的成员能够互相访问;VLAN100和VLAN200 成员之间不能互相访问。PC1 和 PC2 的网络设置为:名师资料总结-精品资料欢迎下载-名师精心整理-第 1 页,共 9 页 -设备端口IP 1
3、 网关 1 IP 2 网关 2 Mask 交换机 A 192.168.1.1 无192.168.1.1 无255.255.255.0 Vlan100 无无192.168.10.1 无255.255.255.0 Vlan200 无无192.160.20.1 无255.255.255.0 PC1 112 192.168.1.101 无192.168.10.101 192.168.10.1 255.255.255.0 PC2 1324 192.168.1.102 无192.168.20.101 192.168.20.1 255.255.255.0 各设备的 IP 地址首先按照IP1 配置,使用pc1
4、 ping pc2,应该不通;再按照 IP2 配置地址,并在交换机上配置vlan 接口 IP 地址,使用pc1 ping pc2,则通,该通信属于vlan 间通信,要经过三层设备的路由。若实验结果和理论相符,则本实验完成。六、实验步骤第一步:交换机恢复出厂设置switch#set default switch#write switch#reload 第二步:给交换机设置IP 地址即管理IP。switch#config switch(Config)#interface vlan 1 switch(Config-If-Vlan1)#ip address 192.168.1.1 255.255.25
5、5.0 switch(Config-If-Vlan1)#no shutdown switch(Config-If-Vlan1)#exit switch(Config)#exit 第三步:创建vlan100 和 vlan200。switch(Config)#switch(Config)#vlan 100 switch(Config-Vlan100)#exit switch(Config)#vlan 200 switch(Config-Vlan200)#exit switch(Config)#验证配置:switch#show vlan VLAN Name Type Media Ports-1 de
6、fault Static ENET Ethernet1/1 Ethernet1/2 Ethernet1/3 Ethernet1/4 Ethernet1/5 Ethernet1/6 Ethernet1/7 Ethernet1/8 Ethernet1/9 Ethernet1/10 Ethernet1/11 Ethernet1/12 Ethernet1/13 Ethernet1/14 Ethernet1/15 Ethernet1/16 Ethernet1/17 Ethernet1/18 Ethernet1/19 Ethernet1/20 Ethernet1/21 Ethernet1/22 Ether
7、net1/23 Ethernet1/24 Ethernet1/25 Ethernet1/26 Ethernet1/27 Ethernet1/28 100 VLAN0100 Static ENET 名师资料总结-精品资料欢迎下载-名师精心整理-第 2 页,共 9 页 -200 VLAN0200 Static ENET第四步:给vlan100 和 vlan200 添加端口。switch(Config)#vlan 100 !进入 vlan 100 switch(Config-Vlan100)#switchport interface ethernet 1/1-12 Set the port Ethe
8、rnet1/1 access vlan 100 successfully Set the port Ethernet1/2 access vlan 100 successfully Set the port Ethernet1/3 access vlan 100 successfully Set the port Ethernet1/4 access vlan 100 successfully Set the port Ethernet1/5 access vlan 100 successfully Set the port Ethernet1/6 access vlan 100 succes
9、sfully Set the port Ethernet1/7 access vlan 100 successfully Set the port Ethernet1/8 access vlan 100 successfully Set the port Ethernet1/9 access vlan 100 successfully Set the port Ethernet1/10 access vlan 100 successfully Set the port Ethernet1/11 access vlan 100 successfully Set the port Ethernet
10、1/12 access vlan 100 successfully switch(Config-Vlan100)#exit switch(Config)#vlan 200 !进入 vlan 200 switch(Config-Vlan200)#switchport interface ethernet 1/13-24 Set the port Ethernet1/13 access vlan 200 successfully Set the port Ethernet1/14 access vlan 200 successfully Set the port Ethernet1/15 acce
11、ss vlan 200 successfully Set the port Ethernet1/16 access vlan 200 successfully Set the port Ethernet1/17 access vlan 200 successfully Set the port Ethernet1/18 access vlan 200 successfully Set the port Ethernet1/19 access vlan 200 successfully Set the port Ethernet1/20 access vlan 200 successfully
12、Set the port Ethernet1/21 access vlan 200 successfully Set the port Ethernet1/22 access vlan 200 successfully Set the port Ethernet1/23 access vlan 200 successfully Set the port Ethernet1/24 access vlan 200 successfully switch(Config-Vlan200)#exit 验证配置:switch#show vlan VLAN Name Type Media Ports-1 d
13、efault Static ENET Ethernet1/25 Ethernet1/26 Ethernet1/27 Ethernet1/28 100 VLAN0100 Static ENET Ethernet1/1 Ethernet1/2 Ethernet1/3 Ethernet1/4 Ethernet1/5 Ethernet1/6 Ethernet1/7 Ethernet1/8 Ethernet1/9 Ethernet1/10 Ethernet1/11 Ethernet1/12 200 VLAN0200 Static ENET Ethernet1/13 Ethernet1/14 Ethern
14、et1/15 Ethernet1/16 Ethernet1/17 Ethernet1/18 Ethernet1/19 Ethernet1/20 Ethernet1/21 Ethernet1/22 Ethernet1/23 Ethernet1/24 switch#名师资料总结-精品资料欢迎下载-名师精心整理-第 3 页,共 9 页 -第五步:验证实验。配置 IP1 的地址PC1位置PC2位置动作结果1/1-1/12端口1/13-1/24端口PC1 ping PC2 不通第六步:添加vlan 地址。switch(Config)#interface vlan 100 switch(Config-If
15、-Vlan100)#%Feb 13 15:47:45 2006%LINK-5-CHANGED:Interface Vlan100,changed state to UP%Feb 13 15:47:45 2006%LINEPROTO-5-UPDOWN:Line protocol on Interface Vlan100,changed state to UP switch(Config-If-Vlan100)#switch(Config-If-Vlan100)#ip address 192.168.10.1 255.255.255.0 switch(Config-If-Vlan100)#no s
16、hut switch(Config-If-Vlan100)#exit switch(Config)#interface vlan 200 switch(Config-If-Vlan200)#%Feb 13 15:48:06 2006%LINK-5-CHANGED:Interface Vlan200,changed state to UPswitch(Config-If-Vlan200)#ip address 192.168.20.1 255.255.255.0 switch(Config-If-Vlan200)#no shut switch(Config-If-Vlan200)#exit sw
17、itch(Config)#验证配置:switch#show ip route Total route items is 3,the matched route items is 3 Codes:C-connected,S-static,R-RIP derived,O-OSPF derived A-OSPF ASE,B-BGP derived,D-DVMRP derived Destination Mask Nexthop Interface Preference C 192.168.1.0 255.255.255.0 0.0.0.0 Vlan1 0 C 192.168.10.0 255.255
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 2022年多层交换机VLAN的划分和VLAN间路由 2022 多层 交换机 VLAN 划分 路由
![提示](https://www.taowenge.com/images/bang_tan.gif)
限制150内