《CCNA实验攻略(2)——配置VLAN.docx》由会员分享,可在线阅读,更多相关《CCNA实验攻略(2)——配置VLAN.docx(11页珍藏版)》请在第一文库网上搜索。
1、ooXnrMu翻SwitchenSwitch#conf匕Enterconfigurationcommands,oneperline.EndwithCNTL/Z.Switch(config)#ho$匕nameCoreSWCoreSW(config)Avian10CoreSW(config-vlan)分nameHathCoreSW(config-vlan)#exiCoreSW(config)#exit%SYS-S-CONFIG_I:ConfiguredfromconsolebyconsoleCoreSW#vlandatabase专Warning:Itisrecomiaendedtoconfigur
2、eVLANfromconfigmode,asVLANdatabasemodeisbeingdeprecated.Pleaseconsult,userdocumentationforconfiguringVTP/VLANinconfigmode.号格-敦字空CoreSW(vlan)#vlan20nameChineseVLAN20added:Name:ChineseCoreSW(vlan)#vlaii30nameOtherVLAN30added:Name:Other物业-AnaCoreSwenCoreSW#conftEnterconfiguration commands one per line.
3、CoreSW(config)Winter face faO/1CoreSWfconf ig-if) #switchport: mode accessCoreSW(config-if)#switchport access vlan 10CoreSW(config-if)Winter face faO/7CoreSW(config-if)#switchport mode accessCoreSW(config-if) #swit.chport access vlan 10CoreSW(conf ig-i f) #|Endwith CNTL/Z.岗分考数辛卡的http/Aii bdu oomisen
4、y3CoreSW#shvlanVLANName1defaultactiveFa0/8zFaO/9,Fa0/10zFa0/ll10Hath20Chinese30Other1002fddi-default1003七oken-ring-default1004fddinet-default1005tmet-defaultactiveactiveactiveactiveactiveactiveFa0/12rFaO/13Fa0/16zFaO/17Fa0/20Fa0/21zFaO/24,Gigl/1Fa0/lrFaO/7FaO/14,FaO/18FaO/22Gigl/2FaO/2,Fa0/3zFaO/4Fa
5、O/5,FaO/6FaO/15FaO/19FaO/23VLANTypeSAIDMTUParentRingNoBridgeNoStpBrdgModeTranslTransZ1enet1000011500Q010enet1000101500一一一一一002030enetenet10002010003015001500二二二野鹤头字空前10021003enetenet10100210100315001500-httpr/Zhi.baiduSonVsenyaJ一一_QQ1004enet1010041500一Q01005enet.10100S1500Q0CoreSW#showvlanbriefStatu
6、sVLANName1defaultactiveFa0/8rFaO/9,Fa0/10,Fa0/llFa0/12zFaO/16,Fa0/20Fa0/24zFa0/13zFaO/17Fa0/21zGigl/1,Fa0/14zFaO/18,Fa0/22zGigl/2FaO/15FaO/19FaO/2310Math20 Chinese30 Other1002 fddi-de fault1003 匕okan-ring-de fault1004 fddinet-de fault100S trnet-defaultCoreSW#FaO/1,FaO/7activeFa0/2z FaO/3, FaO/4activ
7、eactiveactiveactiveactiveFa0唬。界鹤.数字会尚CoreSW#showvlanid10VLANNameStatusPorts10MathactiveFa0/l,FaO/7VLANTypeSAIDMTUParentRingNoBridgeNoStpBrdgModeTranslTransZ10enet1000101500-_00CoreSW#shvlanid30VLANNameStatusPorts30OtheractiveFa0/5(密:殍格数字空冏VLANTypeSAIDMTUParentRingNoBridgeNoS匕/就颂用曲?91a阳P除皿5之30enet100
8、0301S00-00CoreSW#showvlannameMathVLANNameStatusPorts10MathactiveFaO/1,FaO/7VLANType SAIDMTUParentRingNoBridgeNoStpBrdgModeTranslTransZ10enet1000101500CoreSW#showvlannameOtherVLANNameStatusPorts30OtheractiveFaO/SzFaO/6VLANType SAIDMTUParentRingNoBridgeNoStpBrdgModeTranslTransZ30enet1000301500CoreSW#s
9、howvlannameChineseVLANNameStatuspr用宠弃鹤-数字空尚20Chineseactivehttpy/htTbaiduxom/senya-FaO/2FaO/3,FaO/4VLANTypeSAIDMTUParentRingNoBridgeNoStpBrdgModeTranslTransZCoreSW(config)#interfacefaO/8CoreSW(config-if)#noswitchport,accessvlan40CoreSW(config-if)毋exitCoreSW(config)#exitCoreS3Aviandatabase专Warning:Iti
10、srecomiaendedtoconfigureVLANfromconfigmode,asVLANdatabasemodeisbeingdeprecated.PleaseconsultuserdocumentationforconfiguringVTP/VLANinconfigmode.CoreSW(vlan)#novlan40DeletingVLAN40.CoreSW(vlan)#=/TlrrJTXn-8XVsinrnrXs:CoreSW#vlandatabase专Warning:ItisrecommendedtoconfigureVLANfromconfigmode,asVLANdatab
11、asemodeisbeingdeprecated.PleaseconsultuserdocumentationforconfiguringVTP/VLANinconfigmode.SERVER.用十号他-我字十间hflp2由conVMn浮CoreSW(vlan)#vtpdomainDomainnamealreadysetCoreSU(vlan)#vtpserverDevicemodealreadyVTPCoreSW(vlan)#3JJUCoreSW(config-if)#intfa0/1CoreSlJ(config-if)#switchport.modetrunkCoreSW(config-i
12、f)#intfa0/2CoreSW(config-if)#switchportmodetrunk当LINEPR0T0-S-UPD0W:odown%LINEPR0T0-S-UPD0W:oupCoreSW(config-if)#|LineprotocolonInterfaceLjneprotocolFastEthemet0/2changedstatetonInterfaceFastEthernet0/2changedstatethttptxaiducorrtscn再fei-n-bSUI(vlan)#vtpdomainsenyaDomainnamealreadysettosenya.SUI(vlan
13、)#vtpclientSettingdevicetoVTPCLIENTmode.SWl(vlan)#SWZ(vlan)#vtpdomainsenyaDomainnamealreadysettosenya.SW2(vlan)#vtpclientSettingdevicetoVTPCLIENTmode.SWZ(vlan)#SWl#conftEndwith CNTL/Z.Enterconfigurationcommandszoneperline.SUI(config)Winterfacefa0/3SW1(config-if)#switchportmodetrunkSUI(config-if)#tafCoreSW#vlandat-abase%Warning:ItisrecoimnendedtoconfigureVLANfromconfigmode,