一、实验拓扑: 二、实验要求: 1、IOU1、IOU2、IOU3连接后,创建VLAN10、部署Trunk查看VLAN10的阻塞端口AP? 2、IOU1、IOU2、IOU3部署RSTP技术; 3、查看上行链路shutdown、骨干链路shutdown后默认加速效果? 三、命令部署: IOU1(config)#spanning-tree mode rapid-pvst IOU2(config)#spanning-tree mode rapid-pvst IOU3(config)#spanning-tree mode rapid-pvst 四、验证: 1、未部署RSTP前,阻塞端口: IOU3#show spanning-tree vlan 10 Interface Role Sts Cost Prio.Nbr Type Et0/0 Root FWD 100 128.1 Shr Et0/1 Altn BLK 100 128.2 Shr

2、部署RSTP,OUI3的e0/0shutdown后,上行链路加速30s,等待0秒:e0/1秒变FWD状态 IOU3#show spanning-tree vlan 10 Interface Role Sts Cost Prio.Nbr Type Et0/1 Root FWD 100 128.2 Shr

3、IOU3的 e0/0再no shutdown:可以看到e0/0秒变回FWD,e0/1继续成为BLK IOU3#show spanning-tree vlan 10 Interface Role Sts Cost Prio.Nbr Type Et0/0 Desg BLK 100 128.1 Shr Et0/1 Root FWD 100 128.2 Shr

4、部署RSTP后,骨干链路加速20s,等待30秒:经历BLK(15S)——>LRN(15s)——FWD(时间总长为30s) IOU3#show spanning-tree vlan 10 Interface Role Sts Cost Prio.Nbr Type Et0/0 Root FWD 100 128.1 Shr Et0/1 Desg BLK 100 128.2 Shr

Interface Role Sts Cost Prio.Nbr Type Et0/0 Root FWD 100 128.1 Shr Et0/1 Desg LRN 100 128.2 Shr

Interface Role Sts Cost Prio.Nbr Type Et0/0 Root FWD 100 128.1 Shr Et0/1 Desg FWD 100 128.2 Shr 5、抓包: