Today, we pick a network with switches and see step by step how the final tree is formed. Steps will be
- Selecting Root Bridge in the network
- Selecting Root Port for every switch
- Selecting Designated Port for every segment/link
- Selecting Alternate Ports
- Forwarding/Blocking/Tree
Topology
Selecting Root Bridge
Selecting Root Ports in Every Switch
- Lowest Root path cost
- Lowest Sender Bridge ID
- Lowest Sender Port Priority Value
- Lowest port priority value within the switch
- Fast Ethernet 100Mbps costs 19
- Gigabit Ethernet 1000Mbps costs 4
Root Port of Switch B
- A.Fa0/1 - B.Fa0/1
- A.Fa0/2 - C.Fa0/2 - C.Ga0/1 - B.Ga0/1
- A.Fa0/3 - C.Fa0/3 - C.Ga0/1 - B.Ga0/1
- A.Fa0/2 - C.Fa0/2 - C.Fa0/4 - D.Fa0/4 - D.Fa0/3 - B.Fa0/3
- A.Fa0/3 - C.Fa0/3 - C.Fa0/4 - D.Fa0/4 - D.Fa0/3 - B.Fa0/3
Root Port of Switch C
Root Port of Switch D
Selecting Designated Port for every link/segment
- Lowest Root path cost
- Lowest Bridge ID
- Lowest Port Priority Value
Selecting Alternate Port
Forwarding/Blocking/Tree
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | switch-A#show spanning-tree VLAN0001 Spanning tree enabled protocol ieee Root ID Priority 32769 Address 0001.439C.7B5E This bridge is the root Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 32769 (priority 32768 sys-id-ext 1) Address 0001.439C.7B5E Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 20 Interface Role Sts Cost Prio.Nbr Type ---------------- ---- --- --------- -------- -------------------------------- Fa0/3 Desg FWD 19 128.3 P2p Fa0/1 Desg FWD 19 128.1 P2p Fa0/2 Desg FWD 19 128.2 P2p switch-B#show spanning-tree VLAN0001 Spanning tree enabled protocol ieee Root ID Priority 32769 Address 0001.439C.7B5E Cost 19 Port 1(FastEthernet0/1) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 32769 (priority 32768 sys-id-ext 1) Address 000B.BE33.284A Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 20 Interface Role Sts Cost Prio.Nbr Type ---------------- ---- --- --------- -------- -------------------------------- Fa0/3 Desg FWD 19 128.3 P2p Fa0/1 Root FWD 19 128.1 P2p Gi0/1 Desg FWD 4 128.25 P2p switch-C#show spanning-tree VLAN0001 Spanning tree enabled protocol ieee Root ID Priority 32769 Address 0001.439C.7B5E Cost 19 Port 2(FastEthernet0/2) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 32769 (priority 32768 sys-id-ext 1) Address 00D0.58CE.8C09 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 20 Interface Role Sts Cost Prio.Nbr Type ---------------- ---- --- --------- -------- -------------------------------- Fa0/4 Desg FWD 19 128.4 P2p Fa0/2 Root FWD 19 128.2 P2p Fa0/3 Altn BLK 19 128.3 P2p Gi0/1 Altn BLK 4 128.25 P2p switch-D#show spanning-tree VLAN0001 Spanning tree enabled protocol ieee Root ID Priority 32769 Address 0001.439C.7B5E Cost 38 Port 3(FastEthernet0/3) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 32769 (priority 32768 sys-id-ext 1) Address 0001.C717.DA66 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 20 Interface Role Sts Cost Prio.Nbr Type ---------------- ---- --- --------- -------- -------------------------------- Fa0/3 Root FWD 19 128.3 P2p Fa0/4 Altn BLK 19 128.4 P2p |