欢迎来到天天文库
浏览记录
ID:35342965
大小:109.98 KB
页数:8页
时间:2019-03-23
《实验七跨交换机实现vlan间通信》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、实验跨交换机实现VLAN间通信一.目的与要求目的:理解VLAN/802.1Q-VLANI'可通信的内容;常握跨交换机实现隔离测试的具体方法;掌握通过三层交换机实现VLAN间通信。要求:认真完成实验基本步骤,理解和掌握操作流程,达到实验目的;完成实验报告的填写和提交;下次实验是“STP的配置”,希望课前有所准备。二.实验环境PC3vlan10其中:PC1的IP地址:192.168.1.1/24;PC1的网关地址:192.168.1.254/24PC2的TP地址:192.168.2.1/24;PC2的网关
2、地址:192.168.2.254/24PC3的IP地址:192.168.1.2/24;PC3的网关地址:192.168.1.254/24实验环境:1•连接交换机SwitchA、SwitchB的以太口fastO/24;2.将其中一交换机的fastO/5和fastO/15分别连接PC1和PC2,另一交换机的fastO/5连接PC3。三•实验流程>1.尝试与交换机不同端口相连PC的连通性分别查看PC的IP地址;>用Ping尝试其连通性,验证PC1与PC3能互相通信,PC1与PC2也能互相通信;>思考:产生这
3、样结果的原因。2.配置交换机S3550-24,将其分成不同VLANSwitch#configureterminalswitch>en14Password:Switch#Od:lh:llm:22s©5-linkupdown:FaO/15changedstatetodownOd:lh:llm:25s©5-LINKUPDOWN:FaO/15changedstatetoupswitch#conftEnterconf1gurationcommands,oneper11ne.EndwithCNTL/z.switc
4、h(config)#l注:进入交换机全局配置模式Switch(config)#hostnameSwitchAswitchfconf1g)#hostnamesi_0d:lh:12m:55s©5-LINKUPDOWN:FaO/15changedstatetoup0d:lh:12m:55s©5-CONFIG:Conf1guredfromoutbandsl(config)#!注:给交换机起名SwitchASwitchA(config)#vlan10注:创建vlan10SwitchA(config-vlan)#
5、nametestlO注:将Vlan10命名为testlOSwitchA(config)#vlan20注:创建vlan20SwitchA(conFig-vlan)#nametcst20注:将Vian20命名为test20sl(config)#vlan10*0d:2h:10m:21s©5-CONFIG:Conf1guredfromoutbandsl(config-vlanXnametestlO0d:2h:10m:32s©5-CONFIG:Conf1guredfromoutbandsl(config-vla
6、n)#slfconfig-vlan)#exit0d:2h:10m:56s©5-CONFIG:Configuredfromoutbandsl(config)#vlan200d:2h:llm:0s©5-CONFIG:ConfigureHfromoutbandsl(config-vlan)#nametest200d:2h:llm:7s©5-CONFIG:Configuredfromoutbandsl(config-vlan)#~2.将与其相连的PC分别划归不同的VLANSwitchA(config-if)#
7、interfacefastethernet0/5注:进入fastethernet0/5的接口配置模式SwitchA(config-if)#switchaccessvlan10注:将fastethernet0/5端口加入vlan10中SwitchA(config-if)#interfacefastethernet0/15注:进入fastethernet0/15的接口配置模式SwitchA(config-if)#switchaccessvian20outbandoutbandoutbandoutbando
8、utband注:将fastethernet0/15端口加入vlan20中0d:2h:llm:47s©5-CONFIG:Conf1gu「eUfromsl(config)#1ntf0/50d:2h:llm:54s©5-CONFIG:Conf1guredfromsl(conf1g-1f)#switchaccessvian100d:2h:12m:42s©5-CONFIG:Conf1guredfromsl(config-ifntfO/150d:2h:12m:47s
此文档下载收益归作者所有