CCNA实验攻略(2)——配置VLAN.docx
ooXnrMu翻»Switch>enSwitch#conf 匕Enter configuration commands, one per line. End with CNTL/Z.Switch(config)#ho$匕name CoreSWCoreSW(config)Avian 10CoreSW(config-vlan)分name HathCoreSW(config-vlan)#exiCoreSW(config)#exit%SYS-S-CONFIG_I: Configured from console by consoleCoreSW#vlan database专 Warning: It is recomiaended to configure VLAN from config mode,as VLAN database mode is being deprecated. Please consult, userdocumentation for configuring VTP/VLAN in config mode.号格-敦字空CoreSW(vlan)#vlan 20 name ChineseVLAN 20 added:Name : ChineseCoreSW (vlan) #vlaii 30 name OtherVLAN 30 added:Name: Other物业-AnaCoreSw>enCoreSW#conf tEnter configuration commands one per line.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) #|End with CNTL/Z.岗分考数辛卡的http /Aii b»du oomiseny3CoreSW#sh vlanVLAN Name1 defaultactive Fa0/8z FaO/9, Fa0/10z Fa0/ll10 Hath20 Chinese30 Other1002 fddi-default1003 七oken-ring-default1004 fddinet-de fault1005 t met - def aultactiveactiveactiveactiveactiveactiveFa0/12r FaO/13Fa0/16z FaO/17Fa0/20 Fa0/21zFaO/24, Gigl/1Fa0/lr FaO/7FaO/14,FaO/18FaO/22Gigl/2FaO/2, Fa0/3z FaO/4FaO/5, FaO/6FaO/15FaO/19FaO/23VLANTypeSAIDMTUParent RingNo BridgeNo Stp BrdgMode Transl TransZ1enet1000011500Q010enet1000101500一一一一一002030enetenet10002010003015001500二二二野鹤头字空前10021003enetenet10100210100315001500-httpr/Zhi. baidu SonVsenyaJ 一一_QQ1004enet1010041500一Q01005enet.10100S1500Q0CoreSW#show vlan briefStatusVLAN Name1 defaultactive Fa0/8r FaO/9, Fa0/10, Fa0/llFa0/12zFaO/16,Fa0/20Fa0/24zFa0/13zFaO/17Fa0/21zGigl/1,Fa0/14zFaO/18,Fa0/22zGigl/2FaO/15FaO/19FaO/2310 Math20 Chinese30 Other1002 fddi-de fault1003 匕okan-ring-de fault1004 fddinet-de fault100S trnet-defaultCoreSW#FaO/1, FaO/7active Fa0/2z FaO/3, FaO/4activeactiveactiveactiveactiveFa0«唬。界鹤.数字会尚CoreSW#show vlan id 10VLAN NameStatus Ports10MathactiveFa0/l, FaO/7VLANTypeSAIDMTU Parent RingNo BridgeNo Stp BrdgMode Transl TransZ10enet1000101500 -_00CoreSW#shvlan id 30VLANNameStatusPorts30OtheractiveFa0/5(密:殍格数字空冏VLANTypeSAIDMTU Parent RingNo BridgeNo S匕/"就颂用曲?91a阳P除皿5之30enet1000301S00 -00CoreSW#show vlan name MathVLAN NameStatusPorts10 MathactiveFaO/1, FaO/7VLAN Type SAIDMTU Parent RingNo BridgeNo Stp BrdgMode Transl TransZ10 enet 1000101500CoreSW#show vlan name OtherVLAN NameStatusPorts30 OtheractiveFaO/Sz FaO/6VLAN Type SAIDMTU Parent RingNo BridgeNo Stp BrdgMode Transl TransZ30 enet 1000301500CoreSW#show vlan name ChineseVLAN NameStatusp°r用宠弃鹤-数字空尚20 Chineseactivehttpy/htTbaiduxom/senya-FaO/2 FaO/3, FaO/4VLAN Type SAIDMTU Parent RingNo BridgeNo Stp BrdgMode Transl TransZCoreSW(config)#interface faO/8CoreSW(config-if) #no switchport, access vlan 40CoreSW(config-if)毋exitCoreSW(config)#exitCoreS3Avian database专 Warning: It is recomiaended to configure VLAN from config mode,as VLAN database mode is being deprecated. Please consult userdocumentation for configuring VTP/VLAN in config mode.CoreSW(vlan)#no vlan 40Deleting VLAN 40.CoreSW(vlan)#=/TlrrJTXn-8XVsinrnrXs:CoreSW#vlan database专 Warning: It is recommended to configure VLAN from config mode,as VLAN database mode is being deprecated. Please consult userdocumentation for configuring VTP/VLAN in config mode.SERVER.用十号他-我字十间hflp2由 conVMn浮CoreSW(vlan)#vtp domainDomain name already setCoreSU(vlan)#vtp serverDevice mode already VTPCoreSW(vlan)#3 J JUCoreSW(config-if)#int fa 0/1CoreSlJ (conf ig-i f) #switchport. mode trunkCoreSW(config-if)#int fa 0/2CoreSW(config-if)#switchport mode trunk当 LINEPR0T0-S-UPD0W:o down%LINEPR0T0-S-UPD0W:o upCoreSW (config-if) #|Line protocol on InterfaceLjne protocolF ast Ethe met 0/2changed state ton Interface FastEthernet0/2changed state thttp txaidu corrtscn再fei -n- bSUI(vlan)#vtp domain senyaDomain name already set to senya.SUI(vlan)#vtp clientSetting device to VTP CLIENT mode.SWl(vlan)#SWZ(vlan)#vtp domain senyaDomain name already set to