3.9 advanced STP Configuration
Purpose:
1. Master the configuration and principles of Portfast, Uplinkfast, and Backbonefast.
2. Understand STP link convergence.
Tutorial topology:
650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/06224SF3-0.png "title =" 3.9.png "/>
Tutorial steps:
1. Deploy STP Technology Based on the topology in the figure. SW1 is Root and SW2 is Secondary. The configuration is as follows:
SW1 (config) # spanning-tree vlan 1 root primary [PL1]
SW2 (config) # spanning-tree vlan 1 root secondary
2. Understand STP link acceleration features. By default, STPS requires at least 30 s or 50 s for Link convergence, where direct link convergence is 30 s and indirect link convergence is 50 s. Due to slow convergence, Cisco introduces three private features: portfast, uplinkfast, and backbonefast. Their Respective functions are as follows:
① Portfast: Port acceleration is mainly used for the access interface of the access layer switch. It is used to reduce the network access time and speed up to 30 s. You only need to deploy it on the access layer switch.
② Uplinkfast: uplink acceleration is mainly used for the uplink link of the access layer switch. When the uplink link fails, the Standby link can be quickly switched and accelerated for 30 s, this feature is used to accelerate the direct convergence of STP. You only need to deploy it on the access layer switch.
③ Backbonefast: the backbone acceleration is mainly used for the Backbone link of the aggregation layer switch. When the Backbone link fails, the blocked port can be quickly switched to accelerate the speed for 20 s, this feature is used to accelerate the indirect convergence of STP. Deploy on all vswitches.
3. Deploy the STP link acceleration feature. The configuration is as follows:
Portfast =>
SW3 (config) # int f0/0
SW3 (config-if) # spanning-tree portfast
Uplinkfast =>
SW3 (config) # spanning-tree uplinkfast
Backbonefast =>
SW1 (config) # spanning-tree backbonefast
SW2 (config) # spanning-tree backbonefast
SW3 (config) # spanning-tree backbonefast
4. Verify the STP acceleration feature.
① Verify the Portfast feature.
SW3 # debug spanning-tree events
SW3 (config) # int f0/0
SW3 (config-if) # sh
* Mar 1 01:51:10. 243: STP: VLAN1 Fa0/0-> blocking
SW3 (config-if) # no sh
* Mar 1 01:51:22. 603: STP: VLAN1 Fa0/0-> jump to forwarding from blocking [PL2]
② Verify Uplinkfast
SW3 # debug spanning-tree events
SW3 (config) # int f0/1
SW3 (config-if) # sh
* Mar01:57:49. 011: STP: VLAN1 Fa0/1-> blocking
* Mar1 01:57:49. 011: STP: VLAN1 new root port Fa0/2, cost 3038
* Mar1 01:57:49. 011: stp fast: UPLINKFAST: make_forwarding on VLAN1 FastEthernet0/2 root port id new: 128.3 prev: 128.2
* Mar1 01:57:49. 011: % SPANTREE_FAST-7-PORT_FWD_UPLINK: VLAN1 FastEthernet0/2 moved to Forwarding (UplinkFast). [PL3]
③ Verify Backbonefast
SW3 # debug spanning-tree events
SW3 # debug spanning-tree backbonefast
SW2 (config) # int f0/0
SW2 (config-if) # sh
* Mar 1 02:10:34. 987: STP: VLAN1 Fa0/2-> listening
* Mar 1 02:10:35. 963: STP: VLAN1 heard root 16384-cc06.23d8.0000 on Fa0/2
* Mar1 02:10:35. 963: current Root has 0-cc05.23d8.0000
* Mar1 02:10:35. 963: stp fast: partitioned ed inferior BPDU on VLAN1 FastEthernet0/2. [PL4]
* Mar 1 02:10:49. 991: STP: VLAN1 Fa0/2-> learning
* Mar 1 02:11:05. 011: STP: VLAN1 Fa0/2-> forwarding
You can view detailed status changes through the debug command. For more details, you can view the PingingLab video tutorial. This experiment is complete.
[PL1]This configuration principle is that the switch detects the global priority, and then adjusts the local priority to the appropriate location for the purpose. Generally, this command is converted to a specific value, which can be viewed through show run.
[PL2]F0/0 switches from the original BLK status to the FWD status.
[PL3]F0/2 switches from the original BLK status to the FWD status.
[PL4]Secondary BPDU received
========================================================== =
PingingLab· High quality ITEducation provider
CCIELab-ITProject Practice · customization of high-end Talents
Shenzhen pinke Information Technology Co., Ltd. · waihuan West Road Station, Guangzhou University City
Sina Weibo :@PingingLab@ PingingLab-Chen xinjie
PingingLabPublic Account: pinginglab
PingingLabTechnical Exchange Group: 240920680
650) this. length = 650; "src =" http://s6.sinaimg.cn/mw690/d37011a2gx6BJaUMtiR85&690 "real_src =" http://s6.sinaimg.cn/mw690/d37011a2gx6BJaUMtiR85&690 "name =" image_operate_13921376062848408 "alt =" PingingLab classic series "CCNA complete Configuration Guide"-3.9 <wbr> STP Advanced Configuration "title = ""PingingLab classic series" complete configuration of CCNA "-3.9 <wbr> advanced STP configuration"/>
This article from the "Chen xinjie network" blog, please be sure to keep this source http://chenxinjie.blog.51cto.com/7749507/1274499