《组建大型企业网络——第二章 跨交换机实现相同VLAN通信 》实验报告.docx
组建大型企业网络一一其次章跨交换机实现相同VLAN通信试验报告试验环境:1.2.3.试验要求:1.运用VLAN技术可以将整个网络从逻辑上划分为若干个小的虚拟网络4 .保证不同的VLAN之间不能进行通信5 .运用以太网通道进行带宽扩容试验步骤:1 .按图搭建环境连接信息| SwichlSWitCh2Swtch3 VPCS设备列表接口列表0 12 3浦/3/4/5巧圮田川川川川SIMitCh3的for瓶口与vpc霎的W/5晒口连接成功!8皿虹2的0/2篇口写叩3曲皿/6装口连接成功!8witch1的f0片4与StMitCh2的fOM4口连接成功!SWftcM而fOH5熊口与3witch2而OH5武口连接血功!连接退出保存拓扑配置文件|取消连接生成BAT文件2 .在SWitChl上仓IJ建VLAN2VLAN3VLAN4,将连接PCl的端口FO/1和连接PC2的端口F0/2分别加入VLAN2、VLAN3在Switchl上为F0/14和F0/15端口配置TRUNK通道,并配为FO/14和F0/15配置以太网通道,接口模式为TRUNKswitchl#VIandaswitchl(vlan)ttvlan2nameCaiWU江AN2added:Name:CaiWUswitchl(Vlari)#Vlan3namexiaoshou江AN3added:Name:xiaoshouswitchl(Vlan)#Vlan4nameshengchan江AN4added:Name:shengchanSWitchi(vlan)tfezitPPLYcompleted.5iting.switchi#conftJnterconfigurationCoImDands,oneperline.EndwithCNTLZ.switchi(config)ttintvlanlswitchl(config-if)tfipadd192.168.100.1255.255.255.0switchl(config-if)#noshswitchi(config-if)#endswitchi#conftJnterconfigurationCOmmands,oneperline.EndwithCNTLZ.switchl(config)#intflswitchi(config-if)#switchportaccessvlan2switchi(config-if)#intf2switchl(config-if)#switchportaccessvlan3switchi(config-if)#endswitchi#conft5nterconfigurationCOmiDands,oneperline.EndwithCNTLZ.switchl(config)ttintrangef14-15switchi(config-ifrange)#switchportmodetrunkswitchi(config-if-range)#exitswitchl#conftEnterconfigurationCOmnands,oneperline.EndwithCNTLZ.switchl(config)fintrangef14-15switchl(config-if-range)ffchannel-group1modeonCreatingaport-channelinterfacePort-channel1switchl(config-if-range)ffendswitchl#switchl#lar100:02:04.875:%SYS-5-C0NFIG_I:Configuredfromconsolebyconsolelar100:02:05.267:¾SYS-5-C0NFIG-I:Configuredfromconsolebyconsolear100:02:05.695:%SYS-5-C0NFIG_I:Configuredfromconsolebyconsolelar100:02:06.003:%EC-5-BUNDLE:InterfaceFaOI4joinedport-channelPollar100:02:06.127:%EC-5-BUNDLE:InterfaceFa015joinedport-channelPol*Iar100:02:06.179:%DTP-5-TRUNKP0RT0N:PortFa014-15hasbecomedotIqtrunklar100:02:06.279:%SYS-5-C0NFIG-I:Configuredfronconsolebyconsoleswitchl#lar100:02:08.823:%LINEPR0T0-5-UPD0WN:LineprotocolonInterfacePort-channel1,changedstatetoupswitchl#switchltt3 .查看SWitChlVLAN信息Routerttshowvlan-switchVLANNaneStatusPorts1defaultactiveFa00,Fa03,Fa04,Fa05Fa06,FaO/7,Fa08,Fa09Fa010,FaOll,Fa012,FaO/132CaiWUactiveFaO/13xiaoshouactiveFa024shengchanactive1002fddi-defaultactive1003tokenuring-defaultactive1004fddinet-defaultactive1005tmet-defaultactive查看switchl的trunk信息switchl#showintf14switchportName:Fa014Switchport:EnabledAdministrativeIode:trunkOperationallode:trunk(memberofbundlePol)AdministrativeTrunkingEncapsulation:dotlqOperationalTrunkingEncapsulation:dotlqNegotiationofTrunking:DisabledAccessIodeVLAN:0(Inactive)TrunkingNativeIodeVLAN:1(default)TrunkingVLANsEnabled:ALLTrunkingVLANsActive:nonePriorityforuntaggedframes:0Overridevlantagpriority:FALSEVoiceVLAN:noneAppliancetrust:noneMl-switchl#showintf15switchportName:Fa015Switchport:EnabledAdministrativelode:trunkOperationalIode:trunk(memberofbundlePol)AdministrativeTrunkingEncapsulation:dotlqOperationalTrunkingEncapsulation:dotlqNegotiationofTrunking:DisabledAccessIodeVLAN:0(Inactive)TrunkingNativeIodeVLAN:1(default)TrunkingVLANsEnabled:ALLTrunkingVLANsActive:nonePriorityforuntaggedframes:0Overridevlantagpriority:FALSEVoiceVLAN:noneAppliancetrust:noneswitchi#switchl#showethsuFlags:D-downP-inport-channelI-stand-alones-suspendedR-Layer3S-Layer2U-inuseGroupPort-channelPorts1Pol(SU)FaO14(P)FaO15(P)switchi#switchi#4 .在SWitCh2上仓IJ建VLAN2VLAN3VLAN4,将连接PCl的端口FO/1和连接PC2的端口F0/2分别加入VLAN2、VLAN4在Switchl上为F0/14和F015,F0/12和F0/13端口配置TRUNK通道,为F0/14和F0/15配置以太网通道,接口模式为TRUNK为F0/12和F0/13配置以太网通道,接口模式为TRUNKSRitCh2#vlandaswitch2(vlan)ttvlan2nameCaiWUVLAN2added:Name:CaiwUswitch2(Vlan)#Vlan3namexiaoshouVLAN3added:Name:ziaoshouswitch2(Vlan)#Vlan4nameshengchanVLAN4added:Name:shengchanswitch2(vlan)tteitAPPLYcompleted.Exiting.switch2#conftEnterconfigurationcommandsjoneperline.EndwithCNTL/2switch2(config)ttintvlan1switch2(config-if)ttipadd192.168.100.2255.255.255.(switch2(config-if)#noshswitch2(config-if)ttendswitch2#conftEnterconfigurationCOlDlDands.oneperline.EndwithCNTL/7switch2(config)ttintflswitch2(config-if)#switchportaccessvlan3switch2(config-if)#intf2switch2(config-if)#switchportaccessvlan4switch2(config-if)#endswitch2#conftEnterconfigurationColmDands,oneperline.EndwithCNTL/7switch2(config)ttintrangef14-15switch2(config-iforange)#switchportmodetrunkUnr:十。h2fmirFi1FynpRrtitswitch2(config)#intrangef14-15switch2(config-if-range)ffchannel-group1modeonCreatingaport-channelinterfacePort-channellswitch2(Config-ifrange)#Iar100:07:21.955:%SYS-5-0NFIG_I:ConfiguredfromconsolebyconsoleIar100:07:22.403:%SYS-5-C0NFIG-I:Configuredfromconsolebyconsoleexitswitch2(config)#endswitch2#conftEnterconfigurationcommands,oneperline.EndwithCNTLZ.switch2(config)#intrangef12-13switch2(Config-ifrange)#SWitChPortmodetrunkswitch2(config-if-range)ttexitSWitCh2(config)#conft%Invalidinputdetectedat''marker.switch2(config)ttintrangef12-13switch2(config-if-range)#channel-group2modeonCreatingaport-channelinterfacePort-channel2switch2(config-if-range)#end5 .在SWitCh3上仓IJ建VLAN2VLAN3VLAN4,将连接Pel的端口FO/1和连接PC2的端口F0/2分别加入VLAN3、VLAN4在Switchl上为F0/12和F0/14端口配置TRUNK通道,并配为F0/12和F0/13配置以太网通道,接口模式为TRUNKswitch3#Vlandaswitch3(Vlan)#Vlan2nameCaiwUVLAN2added:Name:CaiWUswitch3(Vlan)#Vlan3nameiaoshouVLAN3added:Name:ziaoshouswitch3(Vlan)#Vlan4nameshengchanVLAN4added:Name:shengchanswitch3(vlan)tfexitAPPLYcompleted.Exiting.switch3#end%Unknownswitch3commandorcomputername,orunabletofindcomputeraddress#conftEnterconfigurationCOmIDands,oneperline.EndwithCNTLZ.SWitCh3(config)#intvlan1switch3(confie-if)ttiDadd192.168.100.3255.255.255.0switch3switch3switch3switch3(config-if)#nosh(config-if)tfend#en#conftEnterconfigurationCOmmands,oneperline.EndwithCNTLZ.switch3(confi)ffintflswitch3switch3(config-if)#switchportaccessvlan3(config-if)ffintf2switch3(config-if)ttswitchportaccessvlan4switch3(config-if)ttexitswitch3(config)tfendSWitCh3_#conftEnterconfigurationCOmmands,oneperline.EndwithCNTLZ.SWitCh3(config)tfintrangef12-13SWitCh3(config-if-range)tfswitchportmodetrunkswitch?(config-if-range)ffeitswitch3(config)#endSWitCh3#conftEnterconfigurationCOmmands,oneperline.EndwithCNTLZ.SWitCh3(config)#intrangef12-13switch3(config-if-range)#channel-group2modeonCreatingaport-channelinterfacePort-channel2switch3(config-if-range)#endswitch3#*iar100:09:07.691:%SYS-5-C0NFIG_I:Configuredfromconsolebyconsole*lar100:09:08.207:%SYS-5-C0NFIG-I:Configuredfromconsolebyconsolear100:09:08.543:%SYS-5-0NFIG_I:Configuredfromconsolebyconsolelar100:09:08.827:%EC-5-BUNDLE:InterfaceFa012joinedport-channelPo2ar100:09:09.023:%DTP-5-TRUNKPORTON:PortFa012hasbecomedotlqtrunk*iar100:09:09.115:%SYS-5-C0NFIG_I:Configuredfromconsolebyconsoleswitch3#ar100:09:11.639:%LINEPROTO-5-UPDOWN:LineprotocolonInterfacePort-channel2,changedstatetoupSWitCh3#SWitCh3#SWitCh3#6 .查看SWitCh2信息switch2#showethsuFlags:D-downP-inport-channelI-stand-alones-suspendedR-Layer3S-Layer2U-inuseGroupPort-channelPorts-ft.L1Pol(SU)FaO14(P)2Po2(SU)Fa0ll(P)FaO15(P)FaO12(P)switch2#_switch2#ShOWvlan-switchPortsVLANNameStatus1defaultactiveFa00,Fa03,Fa04,Fa05Fa06,Fa07,Fa08,Fa09Fa010,Fa0132CaiwUactive3ziaoshouactiveFaO/14shengchanactiveFa021002fddi-defaultactive1003token-ring-defaultactive1004fddinet-defaultactive1005trnet-defaultactive7 .查看switch3信息switch3ASho*Vlan-SWitChPorts/LANNameStatus1defaultactiveFa00,Fa03,Fa04,Fa05Fa06,Fa07,Fa08,Fa09Fa010,Fa013,Fa014,Fa0152CaiwUactive3xiaoshouactiveFaO/14shengchanactiveFa021002fddi-defaultactive1003toke11-ring-defaultactive1004fddinet-defaultactive1005trnet-defaultactiveSWltCh3ffshowethSUFlags:DdownP-inport-channelI-stand-alones一suspendedR-Layer3S-Layer2U-inuseGroupPort-channelPorts112Po2(SU)FaOll(P)FaO12(P)switch3#switch3#8 .为PC配置IP地址cC:DocnaentsandSettings'Adainistrator桌面VPCSvpcs-xeUPCS1>ip192.168.0.2192.168.0.10024PCl:192.168.0.2255.255.255.0gateway192.168.0.100UPCS1>3UPCS3>ip192.168.0.3192.168.0.10024PC3:192.168.0.3255.255.255.0gateway192.168.0.100UPCS3>2UPCS2>ip192.168.1.2192.168.1.10024PC2:192.168.1.2255.255.255.0gateway192.168.1.100UPCS2>5UPCS5>ip192.168.1.3192.168.1.10024PC5:192.168.1.3255.255.255.0gateway192.168.1.100UPCS5>4UPCS4>ip192.168.2.2192.168.2.10024PC4:192.168.2.2255.255.255.0gateway192.168.2.100UPCS4>6UPCS6>ip192.168.2.3192.168.2.10024PC6:192.168.2.3255.255.255.0gateway192.168.2.100