资源描述:
《思科设备交换机vlan-trunk配置.docx》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、本次讲解vlantrunk配置方法:本例配置模型图命令行:以下为switchA配置:Switch>Switch>enableSwitch#vlandatabase%Warning:ItisrecommendedtoconfigureVLANfromconfigmode,asVLANdatabasemodeisbeingdeprecated.PleaseconsultuserdocumentationforconfiguringVTP/VLANinconfigmode.Switch(vlan)#vlan2nameTztAVLAN2added:Name:TztASwitch(vlan)#vla
2、n3nameTztBVLAN3added:Name:TztBSwitch(vlan)#exitAPPLYcompleted.Exiting....Switch#wrBuildingconfiguration...[OK]Switch#configtEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Switch(config)#intf0/1Switch(config-if)#swmoacSwitch(config-if)#swaccvlan2Switch(config-if)#intf0/2Switch(config-if)#swmoa
3、cSwitch(config-if)#swaccvlan3Switch(config-if)#exitSwitch(config)#exitSwitch#%SYS-5-CONFIG_I:ConfiguredfromconsolebyconsoleSwitch#showvlanVLANNameStatusPorts----------------------------------------------------------------------------1defaultactiveFa0/3,Fa0/4,Fa0/5,Fa0/6Fa0/7,Fa0/8,Fa0/9,Fa0/10Fa0/
4、11,Fa0/12,Fa0/13,Fa0/14Fa0/15,Fa0/16,Fa0/17,Fa0/18Fa0/19,Fa0/20,Fa0/21,Fa0/22Fa0/23,Fa0/24,Gig1/1,Gig1/22TztAactiveFa0/13TztBactiveFa0/21002fddi-defaultact/unsup1003token-ring-defaultact/unsup1004fddinet-defaultact/unsup1005trnet-defaultact/unsupVLANTypeSAIDMTUParentRingNoBridgeNoStpBrdgModeTrans1
5、Trans2--------------------------------------------------------------------1enet1000011500-----002enet1000021500-----003enet1000031500-----001002fddi1010021500-----001003tr1010031500-----001004fdnet1010041500---ieee-001005trnet1010051500---ibm-00RemoteSPANVLANs--------------------------------------
6、----------------------------------------PrimarySecondaryTypePorts---------------------------------------------------------------------------Switch#wrBuildingconfiguration...[OK]Switch#conftEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Switch(config)#intg1/1//进入端口g1/1配置vlantrunk模式Switch(confi
7、g-if)#swtrunkencaSwitch(config-if)#swtrunkallowedvlanall//配置允许所有vlan通过switchASwitch(config-if)#exitSwitch(config)#exitSwitch#Switch#wr//保存已有配置Buildingconfiguration...[OK]Switch#以下为switchB配置:Switch>enableSwitch#vl