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#
(1)第1段是对VTP进行配置。
在全局配置模式下,使用vtp?命令查看VTP的可配置项目。可以看到,有VTP域名、VTP模式(server、client和transparent)、VTP口令、VTP修剪和VTP陷井等几项,我们关心的是VTP域名和模式有关的命令。
(2)首先把SW1交换机设置成为VTP Server模式,当然这也是缺省模式,不需设置即为此模式。在Server模式下,可以设置VTP的其他属性。
[责任编辑:editor]
最新相关文章
发表评论