通过二层交换机实现VLAN划分

上传人:公**** 文档编号:485464743 上传时间:2023-08-07 格式:DOCX 页数:5 大小:131.10KB
返回 下载 相关 举报
通过二层交换机实现VLAN划分_第1页
第1页 / 共5页
通过二层交换机实现VLAN划分_第2页
第2页 / 共5页
通过二层交换机实现VLAN划分_第3页
第3页 / 共5页
通过二层交换机实现VLAN划分_第4页
第4页 / 共5页
通过二层交换机实现VLAN划分_第5页
第5页 / 共5页
亲,该文档总共5页,全部预览完了,如果喜欢就下载吧!
资源描述

《通过二层交换机实现VLAN划分》由会员分享,可在线阅读,更多相关《通过二层交换机实现VLAN划分(5页珍藏版)》请在金锄头文库上搜索。

1、通过二层交换机实现VLAN划分实验名称通过二层交换机实现VLAN内部通信。实验目的掌握如何通过二层交换机实现VLAN内部通信。实现功能使在同一 VLAN里的计算机系统能跨交换机进行相互通信,而在不同VLAN里的计算机系统不 能相互通信。实验拓扑1实验布局v1:=ltl 2v1:=ltl 3v1:=ltl 2v1:=ltl 32配置信息1) SwitchO配置信息SwitchenSwitch#config tEnd with CNTL/Z.Enter configuration commands, one per line.Switch(config)#interface fa0/1Switch

2、(config-if)#switchport mode trunk %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/l, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up Switch(config-if)#switch tru allow vlan allSwitch(config-if)#exitSwitch(config)#exit%SYS-5-CON

3、FIG_I: Configured from console by consoleSwitch#config tEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#vlan 2Switch(config-vlan)#exitSwitch(config)#vlan 3Switch(config-vlan)#exitSwitch(config)#exit%SYS-5-C0NFIG_I: Configured from console by console Switch#conf tEnter conf

4、iguration commands, one per line. End with CNTL/Z.Switch(config)#interf ran faO/2 - 6 Switch(config-if-range)#switchp mode acc Switch(config-if-range)#switchp acc vlan 2 Switch(config-if-range)#no shu Switch(config-if-range)#exitSwitch(config)#interface range fa0/7 - 12 Switch(config-if-range)#switc

5、hport mode access Switch(config-if-range)#switch access vlan 3 Switch(config-if-range)#no shutSwitch(config-if-range)#end%SYS-5-CONFIG_I: Configured from console by console Switch#show vlanVLAN Name1 default2 VLAN00023 VLAN00031002 fddi-default1003 token-ring-default1004 fddinet-default1005 trnet-de

6、faultStatus Portsactive Fa0/13, Fa0/14, Fa0/15, Fa0/16Fa0/17, Fa0/18, Fa0/19, Fa0/20Fa0/21, Fa0/22, Fa0/23, Fa0/24 activeFa0/2, Fa0/3, Fa0/4, Fa0/5Fa0/6activeFa0/7, Fa0/& Fa0/9, Fa0/10Fa0/11, Fa0/12activeactiveactiveactiveVLAN Type SAIDMTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans21enet100001

7、1500 -002enet1000021500 -003enet1000031500 -001002 enet1010021500 -001003 enet1010031500 -002) Switch1配置信息SwitchenSwitch#conf tEnter configuration commands, one per line. End with CNTL/Z. Switch(config)#vlan 2Switch(config-vlan)#exit Switch(config)#vlan 3 Switch(config-vlan)#exit Switch(config)#inte

8、rf faO/1Switch(config-if)#switch mode trunk Switch(config-if)#switchport trunk allowed vlan all Switch(config-if)#no shuSwitch(config-if)#exitSwitch(config)#interfa rang faO/2 - 6 Switch(config-if-range)#switchp mode acc Switch(config-if-range)#switch acc vlan 2 Switch(config-if-range)#no shut exit

9、Switch(config-if-range)#interface rang fa0/7 - 12 Switch(config-if-range)#switch mode acc Switch(config-if-range)#switch acc vlan 3 Switch(config-if-range)#no shSwitch(config-if-range)#exitSwitch(config)#exit %SYS-5-CONFIG_I: Configured from console by console Switch#show vlanVLAN NameStatus Ports1

10、default2 VLAN00023 VLAN00031002 fddi-default1003 token-ring-default1004 fddinet-default1005 trnet-defaultactive Fa0/13, Fa0/14, Fa0/15, Fa0/16Fa0/17, Fa0/18, Fa0/19, Fa0/20Fa0/21, Fa0/22, Fa0/23, Fa0/24 activeFa0/2, Fa0/3, Fa0/4, Fa0/5Fa0/6activeFa0/7, Fa0/& Fa0/9, Fa0/10Fa0/11, Fa0/12activeactiveac

11、tiveactiveVLAN Type SAIDMTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans21enet1000011500 -002enet1000021500 -003enet1000031500 -001002 enet1010021500 -001003 enet1010031500 -00150015001004 enet 1010041005 enet 1010053) PC0配置信息192.168.2.2 255.255.255.04) PC1配置信息192.168.3.2 255.255.255.05) PC2配置信息192.168.2.3 255.255.255.06) PC3配置信息192.168.3.3 255.255.255.03.测试联通性1)测试相同VLAN下的不同交换机下的通信在Pc3上ping pc1,归属为同一个Vian,不同交换机下。2)测试不同VLAN间的通信在PC3上ping PC0,归属于不同交换机下不同VLANPhysical | Config Desktop

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 学术论文 > 其它学术论文

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