配置CiscoVLAN、VLANTrunk、VTP和STP
作者 佚名技术
来源 网络技术
浏览
发布时间 2012-07-02
------------------------------------------- SW1# Term_Server>2 [Resuming connection 2 to switch2...] SW2#sh vlan VLAN Name StatusPorts ------------------------------------------ 1 defaultEnabled1-12,AUI,A,B 10DEPT1 Enabled 11DEPT2 Enabled 12DEPT3 Enabled 13DEPT4 Enabled 1002 fddi-defaultSuspended 1003 token-ring-defauSuspended 1004 fddinet-default Suspended 1005 fddi-defaultSuspended ...(有关VLAN的具体信息,如SW1,省略) SW2#sh vtp VTP version:1 Configuration revision:4 Maximum VLANs supported locally:1005 Number of existing VLANs:9 VTP domain name VTP password VTP operating mode :Client VTP pruning mode: Disabled VTP traps generation: Enabled Configruration last modified by:192.168.1.1 at 00-00-0000 00:00:00 SW2# (第4段:配置端口的VLAN归属并查看VLAN信息) Term_Server>1 [Resuming connection 1 to switch 1 ... ] SW1#conft Enter configuration commands, one per line. End with CNTL/Z SW1(config)#inte0/1 SW1(config-if)#vlan-membership ? dynameic Set VLAN membership type as dynamic static Set VLAN membership type as static SW1(config-if)#vlan-membership static 10 SW1(config-if)#int e0/2 SW1(config-if)#vlan-membership static 11 SW1(config-if)#int e0/3 SW1(config-if)#vlan-membership static 12 SW1(config-if)#int e0/10 SW1(config-if)#vlan-membership static 10 SW1(config-if)# SW1#sh vlan VLAN NameStatus Ports -------------------------- 1 defaultEnabled4-9, 11-12, AUI, A, B 10 DEPT1 Enabled1,10 11 DEPT2 Enabled2 12 DEPT3 Enabled3 13 DEPT4 Enabled 1002 fddi-default Suspended 1003 token-ring-defau Suspended 1004 fddinet-default Suspended 1005 trnet-default Suspended ----------------------------- VLAN TypeSAIDMTUParent RingNoBridgeNoStp TranslTrans2 ---------------------------------- 1 Ethernet 100001 1500 000Unkn 10021003 10Ethernet 100010 1500 011Unkn 00 11Ethernet 100011 1500 011Unkn 00 12Ethernet 100012 1500 011Unkn 00 13Ethernet 100013 1500 011Unkn 00 1002 FDDI101002 1500 00 Unkn 1 1003 1003 Token-Ring 101003 1500 10 Unkn 1 1002 1004 FDDI-Net101004 1500 01 IEEE 0 0 1005 Token-Ring-Net 101005 1500 01 IEEE 0 0 ---------------------- SW1#sh vlan 11 VLAN NameStatus Ports ----------------- 11DEPT2 Enabled 2 -------------- VLAN Type SAID MTUParent RingNo BridgeNo Stp Trans1 Trans2 ------------ 11 Ethernet 100011 1500 011Unkn0 0 ------------------- SW1#sh vlan-membership Port VLAN Membership Type Port VLAN Membership Type ---------- ------------ 110 Static 211Static 312Static 41 Static 51 Static 61 Static 71 Static 81 Static 91 Static 10 10 Static 111 Static 121 Static AUI 1 Static A1 Static B1 Static 第5段:查看STP信息 SW1#sh spantree 10 VLAN1O is executing the IEEE compatible Spanning Tree Protocol Bridge Identifier has priority 32768,address 0004.DD4E.9C81 Configured hello time 2, max age 20, forward delay 15 Current root has priority Root port is FastEthernet0/26,cost of root path is 10 Topology change flag not set, detected flag not set Topology changes 1, last topology change occured 0d00h04ml0s ago Times: hold 1, topology change 8960 hello 2, max age 20 |
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |
你可能对下面的文章感兴趣
关于配置CiscoVLAN、VLANTrunk、VTP和STP的所有评论