STP pvst+

Source: Internet
Author: User

STP (Spanning tree Protocol) Spanning Tree protocol: Changing a ring network structure into a tree structure

1. Logically disconnect the loop to prevent the broadcast storm from producing

2. When the line fails, the blocking interface is activated, resuming communication, and the role of the backup line
3. When there are multiple VLANs in the network, load balancing can be achieved through the application of STP
650) this.width=650; "id=" image_operate_8681451433250450 "src=" Http://s8.sinaimg.cn/mw690/0061jclBzy6XVFP4CuHb7 &690 "Name=" image_operate_8201450626081894 "height=", width= "644" alt= "0061jclbzy6xvfp4cuhb7&690"/>

Three steps to the algorithm of Spanning Tree protocol:

Select Root Bridge (Root bridge)

Select root port (root Ports)

Select the specified port (Designate Ports)

First understand the cost of the next root path
The root path cost is the sum of the cost of all links on the path to the root bridge of the network Bridge
650) this.width=650; "src=" http://s7.sinaimg.cn/mw690/0061jclBzy6XIJ2MXGea6&690 "Name=" Image_operate_ 28601449924866897 "height=" 121 "width=" 651 "alt=" 0061jclbzy6xij2mxgea6&690 "/>
The path cost is related to the bandwidth, as shown in the relationship
650) this.width=650; "src=" http://s11.sinaimg.cn/mw690/0061jclBzy6XIJfE54uba&690 "Name=" Image_operate_ 99561449925172947 "height=" 263 "width=" 650 "alt=" 0061jclbzy6xijfe54uba&690 "/>

The root bridge, the root port, and the specified port are then judged by rules
Experiment
650) this.width=650; "src=" http://s1.sinaimg.cn/mw690/0061jclBzy6XIMrJESQb0&690 "Name=" Image_operate_ 96001449927695002 "height=" 557 "width=" 690 "alt=" 0061jclbzy6ximrjesqb0&690 "/>

Experimental steps:
1. Select the root bridge
The root bridge is selected by the bridge ID, which consists of the bridge priority + Bridge's MAC address

The bridge priority is the decimal number used to measure the priority of the bridge in the spanning tree algorithm, the value range is 0~65535, the default is 32768

The bridge MAC address is the MAC address of the switch itself

Select order: The algorithm of the spanning tree is the first priority, the smaller the value is selected as the root bridge, if the priority is the same, then compare the MAC address, the smallest MAC address bridge is the root bridge

650) this.width=650; "src=" http://s13.sinaimg.cn/mw690/0061jclBzy6XIMunt125c&690 "Name=" Image_operate_ 55611449932568745 "height=" 557 "width=" 690 "alt=" 0061jclbzy6ximunt125c&690 "/>

2. Select the root port (select on the switch)
First the root port is present on the non-root bridge, and each non-root bridge will have a root port
Selection Order:

1) lowest root path cost to the root bridge (refers to the port above the switch)
2) Minimum bridge ID for direct connection
3) Minimum port ID (this refers to the port ID value of the peer received)
650) this.width=650; "src=" http://s10.sinaimg.cn/mw690/0061jclBzy6XJAlKYI1b9&690 "Name=" Image_operate_ 4991449981177326 "height=" 557 "width=" 690 "alt=" 0061jclbzy6xjalkyi1b9&690 "/>

3. Select the specified port (select on each line)
First, the port above the root bridge is the specified port, and then each network segment (that is, each line) will have a specified port
Selection Order:
1) low root path cost (refers to the path cost of the switch to the root bridge where the port is located)
2) Small bridge ID value on the switch where the port is located
3) Low Port ID value
650) this.width=650; "src=" http://s13.sinaimg.cn/mw690/0061jclBzy6XJMuBn5y2c&690 "Name=" Image_operate_ 3331449981894363 "height=" 556 "width=" 690 "alt=" 0061jclbzy6xjmubn5y2c&690 "/>

Experimental validation: The Cisco emulator automatically chooses the root bridge, root port, specified port, and blocked port to see if it is the right one, or by commandShowspanning-treeTo view the spanning tree status, respectively, for Switch1, SWITCH2, and Switch3
650) this.width=650; "src=" http://s3.sinaimg.cn/mw690/0061jclBzy6XJDCtnfc62&690 "Name=" Image_operate_ 10471449982934184 "height=" 557 "width=" 690 "alt=" 0061jclbzy6xjdctnfc62&690 "/>


Application of STP: pvst+
Pvst+ can realize load balancing of VLAN network
Configuration commands
1) Enable spanning tree
Swtich (config) #Spanning-tree VLANVlan-list
Vlan-list:vlan Serial Number (10 in VLAN 10)
2) There are two ways to specify a root bridge (change the bridge priority and specify a root or Backup bridge)
Ways to change the bridge priority:
Swtich (config) #Spanning-tree VLANVlan-list PriorityBridge-priority
Bridge-priority: Refers to the bridge priority, the default is 32768, the range is 0~65525
Note: If you want to implement VLAN load balancing, the priority configuration of STP must be a multiple of 4096
To specify the root bridge and Backup Bridge method:
Swtich (config) #Spanning-tree VLANVlan-listRoot{Primary | secondary}
{primary | secondary}: Configuration Two Select one, primary for Root bridge, secondary for backup bridge

Common commands in the pvst+ configuration:
modifying port costs
Swtich (config) #Spanning-tree VLANVlan-list CostCost
The second cost is the specific value of the costs such as Swtich (config) #Spanning-tree VLANTen cost19

Modify Port Priority
Swtich (config) #Spanning-tree VLANVlan-listport-priorityPriority
Priority: Refers to the specific value of the precedence such as Swtich (config) #Spanning-tree VLAN10port-priority96

Configure the speed port
Swtich (config-if) #Spanning-tree Portfast

Experiment: Complete the configuration as required
650) this.width=650; "src=" http://s8.sinaimg.cn/mw690/0061jclBzy6XJT4B54z27&690 "Name=" Image_operate_ 12591449987624441 "height=" 557 "width=" 690 "alt=" 0061jclbzy6xjt4b54z27&690 "/>



Experimental steps:
1. Here Switch0 and SWTICH4 do not demonstrate, directly say configuration pvst+ and verify
650) this.width=650; "src=" http://s6.sinaimg.cn/mw690/0061jclBzy6XJR22QYd95&690 "Name=" Image_operate_ 60781449987611863 "height=" 578 "width=" 655 "alt=" 0061jclbzy6xjr22qyd95&690 "/>

650) this.width=650; "src=" http://s4.sinaimg.cn/mw690/0061jclBzy6XJRWedA743&690 "height=" 723 "width=" 655 "alt=" 0061jclbzy6xjrweda743&690 "/>

650) this.width=650; "src=" http://s5.sinaimg.cn/mw690/0061jclBzy6XJRWJQhu64&690 "Name=" Image_operate_ 70991449987190991 "height=" 728 "width=" 655 "alt=" 0061jclbzy6xjrwjqhu64&690 "/>

2. Close all the ports above the SWITCH1, view the spanning tree above the SWITCH2, and then open the interface above the SWITCH1 to view the spanning tree
650) this.width=650; "src=" http://s14.sinaimg.cn/mw690/0061jclBzy6XJSAg3Kdfd&690 "Name=" Image_operate_ 7071449987500028 "height=" 728 "width=" 655 "alt=" 0061jclbzy6xjsag3kdfd&690 "/>

650) this.width=650; "src=" http://s5.sinaimg.cn/mw690/0061jclBzy6XJSWfcigc4&690 "Name=" Image_operate_ 12951449988033176 "height=" 728 "width=" 655 "alt=" 0061jclbzy6xjswfcigc4&690 "/>




STP pvst+

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.