This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
icnd2:spanning-tree [2024/04/24 17:13] 114.119.141.71 old revision restored (2018/01/13 10:48) |
icnd2:spanning-tree [2024/05/15 02:53] (current) 114.119.138.183 old revision restored (2024/02/13 19:32) |
||
---|---|---|---|
Line 1: | Line 1: | ||
=====WHY===== | =====WHY===== | ||
- | Frame Loop Prevention Mechanism. Achieved by blocking all but one ROOT port to a ROOT switch. Redundant links are then blocked to create a loop-free environment. | + | Frame Loop Prevention Mechanism. Achieved by blocking all but one **'' |
=====CONCEPT===== | =====CONCEPT===== | ||
- | * It does this with Each Switch broadcasting a BPDU, made up of that SW's Priority + MAC. Default Priority is 32768. The SW with the lowest BPDU (superior) is elected the ROOT BRIDGE. | + | * It does this with Each Switch broadcasting a **'' |
- | * Each SW will then determine a ROOT PORT, one per SW. A DESIGNATED port is then elected on each segment. There can only be one DESIGNATED port per SEGMENT/ | + | * Each SW will then determine a **'' |
- | * Any port that is not DESIGNATED or a ROOT port, is then set to a BLOCKING state. | + | * There can only be **one DESIGNATED port per SEGMENT/ |
+ | * Any port that is **not** **'' | ||
+ | Note that once a ROOT Bridge is elected, all other bridges will only forward HELLO BPDU's **originating** from the **'' | ||
==TO DETERMINE A DESIGNATED PORT:== | ==TO DETERMINE A DESIGNATED PORT:== | ||
Line 13: | Line 16: | ||
=====COMMANDS: | =====COMMANDS: | ||
- | ==Quickly setting a PRIMARY and SECONDARY ROOT:== | + | ====Quickly setting a PRIMARY and SECONDARY ROOT:==== |
< | < | ||
SW1(config)# | SW1(config)# | ||
- | ==Manually set Bridge Priority for Root Election:== | + | |
+ | ====Manually set Bridge Priority for Root Election:==== | ||
< | < | ||
< | < | ||
Line 25: | Line 29: | ||
Vlan | Vlan | ||
---------------- --------------------------------- ----- --- --- -------- | ---------------- --------------------------------- ----- --- --- -------- | ||
- | VLAN0001 | + | VLAN0001 |
- | VLAN0002 | + | VLAN0002 |
- | + | ||
- | </code> | + | ====Manually Define Port Cost for Root Port Election: |
+ | < | ||
+ | SW2(config-if)# | ||
+ | SW2(config-if)# | ||
+ | |||
+ | SW2(config-if)# | ||
+ | Vlan Role Sts Cost Prio.Nbr Type | ||
+ | ------------------- ---- --- --------- -------- -------------------------------- | ||
+ | VLAN0001 | ||
+ | VLAN0002 |