分类:
2012-02-07 20:40:34
Rapid-PVST+生成树模式使用与IEEE 802.1D STP一样的BPDU,并且向后兼容IEEE 802.1D STP生成树模式。但是要使整个网络在同一时间迁移为Rapid-PVST+模式比较困难,就是因为它的向后兼容性,只好分段进行,否则可能会引起网络中的通信流丢失。UplinkFast和BackboneFast是PVST+的增强特性,在启用Rapid-PVST+模式后是禁止的,因为这些特性已在Rapid-PVST+模式中内置。所以在迁移时,你可以删除原来所配置的对应命令。像PortFast、BPDUguard、BPDUfilter、Root Guard和LoopGuard增强特性在Rapid-PVST+模式中也是可用的,并且它们的用途与在PVST+模式中一样。如果你已在PVST+模式中启用了这些特性,这些特性在迁移到Rapid-PVST+模式后仍将保持激活。
在Access 1交换机上要做的就是把PVST+生成树模式迁移到Rapid-PVST+模式,同时删除原来PVST+模式下的UplinkFast和BackboneFast特性配置。但是在Rapid-PVST+模式下,同样是具有这两方面特性的。
Access 1(config)#spanning-tree mode rapid-pvst !--从PVST+模式迁移到Rapi-PVST+模式
Access 1(config)#no spanning-tree uplinkfast !--禁止原来PVST+模式中的UplinkFast特性
Access 1(config)#no spanning-tree backbonefast !--禁止原来PVST+模式中的BackboneFast特性
使用show spanning-tree vlan 10特权模式命令查看Access 1交换机上VLAN 10的生成树配置,从输出信息中可以看出,它的Fa3/0/1和Fa3/0/2接口所连接的对端交换机仍是使用PVST+生成树模式,参见输出信息中的粗体字部分。
Access 1#show spanning-tree vlan 10
VLAN0010
Spanning tree enabled protocol rstp
Root ID Priority 24586
Address 0015.63f6.b700
Cost 19
Port 107 (FastEthernet3/0/1)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32778 (priority 32768 sys-id-ext 10)
Address 000f.f794.3d00
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300
Interface Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Fa3/0/1 Root FWD 19 128.107 P2p Peer(STP)
Fa3/0/2 Altn BLK 19 128.108 P2p Peer(STP)
如果没有配置no spanning-tree uplinkfast和no spanning-tree backbonefast命令,则整个网络中交换机都迁移完毕,查看Access 1交换机上的生成树配置就如下所示了,其中显示这两项特性仍然启用,但对于Rapid-PVST+模式无效,并且不会显示“P2p Peer(STP)”,只会显示“P2P”,参见输出信息中的粗体字部分。
Access 1#show spanning-tree vlan 10
VLAN0010
Spanning tree enabled protocol rstp
Root ID Priority 24586
Address 0015.63f6.b700
Cost 3019
Port 107 (FastEthernet3/0/1)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 49162 (priority 49152 sys-id-ext 10)
Address 000f.f794.3d00
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300
UplinkFast enabled but inactive in rapid-pvst mode
Interface Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Fa3/0/1 Root FWD 3019 128.107 P2p
Fa3/0/2 Altn BLK 3019 128.108 P2p
Access 1#show spanning-tree summary
Switch is in rapid-pvst mode
Root bridge for: none
Extended system ID is enabled
Portfast Default is disabled
PortFast BPDU Guard Default is enabled
Portfast BPDU Filter Default is disabled
Loopguard Default is disabled
EtherChannel misconfig guard is enabled
UplinkFast is enabled but inactive in rapid-pvst mode
BackboneFast is enabled but inactive in rapid-pvst mode
Configured Pathcost method used is short
Name Blocking Listening Learning Forwarding STP Active
---------------------- -------- --------- -------- ---------- ----------
VLAN0010 1 0 0 1 2
VLAN0020 1 0 0 1 2
---------------------- -------- --------- -------- ---------- ----------
2 vlans 2 0 0 2 4
如果在网络中所有交换机上都迁移完毕,并且禁止了UplinkFast特性,再查Access 1上的生成树配置,就是如下输出了,不会显示“P2p Peer(STP)”,只会显示“P2P”,参见输出信息中的粗体字部分。
Access 1#show spanning-tree vlan 10
VLAN0010
Spanning tree enabled protocol rstp
Root ID Priority 24586
Address 0015.63f6.b700
Cost 19
Port 107 (FastEthernet3/0/1)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32778 (priority 32768 sys-id-ext 10)
Address 000f.f794.3d00
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300
Interface Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Fa3/0/1 Root FWD 19 128.107 P2p
Fa3/0/2 Altn BLK 19 128.108 P2p