650) this. width = 650; "src =" http://img1.51cto.com/attachment/201309/164626789.jpg "title =" stp.jpg "alt =" 164626789.jpg"/>
"Networking requirements 』
1. All devices run the Spanning Tree Protocol to generate the Tree Protocol.
2. SwitchB is used as the root bridge to block loops in the network and achieve redundant link backup.
"Switch STP configuration process 』
By changing the STP priority of the switch or port, You can manually specify the root bridge in the network and the STP role of the port to complete the redundant backup of the blocking loop and link.
SwitchB configuration]
1. The Global enable STP function is enabled by default)
[SwitchB] stp enable
2. Set SwtichB to the root (two methods: Set the Bridge priority of SwitchB to 0 or directly set SwitchB to the root)
[SwitchB] stp priotity 0
[SwitchB] stp root primary
3. Enable the root protection function on each specified port (in this example, all ports of SwtichB are set ports)
[SwitchB] API Ethernet 0/1
[SwitchB-Ethernet-0/1] stp root-protection
SwitchC configurations]
1. The Global enable STP function is enabled by default)
[SwitchB] stp enable
2. Configure SwtichC as the backup root (two methods: Set the Bridge priority of SwitcCB to 4096, or directly specify SwitchC as the backup root)
[SwitchB] stp priotity 4096
[SwitchB] stp root secondary
3. Enable the root protection function on the specified port (in this example, ports 0/1, 0/2, and 0/3 of SwtichC are specified ports)
[SwitchB] API Ethernet 0/1
[SwitchB-Ethernet-0/1] stp root-protection
Configurations related to other switches]
Disable the port stp function on the PC or configure it as an edge port and enable the BPDU protection function.
[SwitchD-Ethernet0/4] stp disable
[SwitchD-Ethernet0/5] stp edged-port enable
[SwitchD] stp bpdu-protection
Additional description]
After "bpdu-protection" is configured, if an edge port receives a BPDU packet, the edge port will be disabled and must be restored manually.
After "stp root-protection" is configured on the port, the role of this port can only be a specified port, and once the port receives a configuration message with a higher priority, the status of the port will be configured as listening and no packets will be forwarded. If you do not receive a better configuration message for a long enough time, the port will return to its normal status.