LAB6:PVST+ & RSTP

一、实验目的
1 、掌握PVST+的应用及配置
2 、掌握RSTP的应用及配置
 
二、实验内容
拓扑图:

需求:
1 、加快STP的收敛,匹配动态路由的收敛(注:在内网运行OSPF)
三、实验配置
配置:
1 、在所有连接非交换机的端口配置快速端口
SW3(config)#spanning-tree portfast default (在全局下开启PVST+ 的快速端口)
SW3(config)#interface fastEthernet 0/1
SW3(congig-if)switchport mode access
SW3(config-if)#spanning-tree portfast (在端口下开启PVST+ 的快速端口)
 
2 、开启快速上行链路
SW1(config)#spanning-tree uplinkfast (在全局下开启快速上行链路,其他交换机同配置)
 
3 、开启快速骨干链路
Switch(config)#spanning-tree backbonefast (在全局下开启快速骨干链路,其他交换机同配置)
 
4 、或者替代步骤2、3;启用RSTP
Switch(config)#spanning-tree mode rapid-pvst (开启RSTP生成树模式)
 
验证:
1 、观察
开启Portfast功能的端口,连上PC后,端口颜色立马变成绿色(没开启时,端口颜色由橙色变绿色,一般需30秒)
2 、查看生成树
Switch#show spanning-tree
VLAN0001
Spanning tree enabled protocol rstp (生成树模式为RSTP)
Root ID Priority 32769
Address 0009.7ca7.7d00
Cost 3019
Port 23 (FastEthernet0/23)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 49153 (priority 49152 sys-id-ext 1)
Address 0011.9391.2680
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
------------------- ---- --- --------- -------- --------------------------------
Fa0/21 Altn BLK 3019 128.21 P2p Peer(STP)
Fa0/22 Altn BLK 3019 128.22 P2p Peer(STP)
Fa0/23 Root FWD 3019 128.23 P2p Peer(STP)
Fa0/24 Altn BLK 3019 128.24 P2p Peer(STP)
四、应用场景
加快应网络拓扑发生变化而导致的收敛速度