(第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
----------------- 11 DEPT2 Enabled 2 -------------- VLAN Type SAID MTU Parent RingNo BridgeNo Stp Trans1 Trans2 ------------ 11 Ethernet 100011 1500 0 1 1 Unkn0 0 ------------------- SW1#sh vlan-membership
Port VLAN Membership Type Port VLAN Membership Type ---------- ------------ 1 10 Static 2 11 Static 3 12 Static 4 1 Static 5 1 Static 6 1 Static 7 1 Static 8 1 Static 9 1 Static 10 10 Static 11 1 Static 12 1 Static AUI 1 Static A 1 Static B 1 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, forward delay 15 Timers: hello 2, topology change 35, notification 2 Port Ethernet 0/1 of VLANIO is Forwarding Port path cost 100, Port priority 128 Designated root has priority 32768, address 0004.27C4.2401 Designated bridge has priority 32768, address 0004.DD4E.9C81 Designated port is 1, path cost 10 Timers: message age 20, forward delay 15, hold 1 Port Ethernet 0/10 of VLANIO is Forwarding Port path cost 100, Port priority 128 Designated root has priority 32768,address 0004.27C4.2401 Designated bridge has priority 32768,address 0004.DD4E.9C81 Designated port is 10, path cost 10 Timers: message age 20, forward delay 15, hold 1 Port FastEthernet 0/26 of VLANIO is Forwarding Port path cost 10, Port priority 128 Designated root has priority 32768,address 0004.27C4.2401 Designated bridge has priority 32768, address 0004.27C4.2401 Designated port is 26, path cost 0 Timers: message age 20, forward delay 15, hold 1 SW1# SW1#conft
Enter configuration commands, one per line. End with CNTL/Z SW1(config)#no spantree 10 SW1(config)# SW1#sh spantree 10 Error>r:-STP is not enabled for VLAN 10 SW1#