Afrikaans
Akan
Albanian
Amharic
Arabic
Armenian
Azerbaijani
Basque
Belarusian
Bemba
Bengali
Bihari
Bosnian
Breton
Bulgarian
Cambodian
Catalan
Cebuano
Cherokee
Chichewa
Chinese (Simplified)
Chinese (Traditional)
Corsican
Croatian
Czech
Danish
Dutch
English
Esperanto
Estonian
Ewe
Faroese
Filipino
Finnish
French
Frisian
Ga
Galician
Georgian
German
Greek
Guarani
Gujarati
Haitian Creole
Hausa
Hawaiian
Hebrew
Hindi
Hmong
Hungarian
Icelandic
Igbo
Indonesian
Interlingua
Irish
Italian
Japanese
Javanese
Kannada
Kazakh
Kinyarwanda
Kirundi
Kongo
Korean
Krio (Sierra Leone)
Kurdish
Kurdish (Soranî)
Kyrgyz
Laothian
Latin
Latvian
Lingala
Lithuanian
Lozi
Luganda
Luo
Luxembourgish
Macedonian
Malagasy
Malay
Malayalam
Maltese
Maori
Marathi
Mauritian Creole
Moldavian
Mongolian
Myanmar (Burmese)
Montenegrin
Nepali
Nigerian Pidgin
Northern Sotho
Norwegian
Norwegian (Nynorsk)
Occitan
Oriya
Oromo
Pashto
Persian
Polish
Portuguese (Brazil)
Punjabi
Quechua
Romanian
Romansh
Runyakitara
Russian
Samoan
Scots Gaelic
Serbian
Serbo-Croatian
Sesotho
Setswana
Seychellois Creole
Shona
Sindhi
Sinhalese
Slovak
Slovenian
Somali
Spanish
Spanish (Latin American)
Sundanese
Swahili
Swedish
Tajik
Tamil
Tatar
Telugu
Thai
Tigrinya
Tonga
Tshiluba
Tumbuka
Turkish
Turkmen
Twi
Uighur
Ukrainian
Urdu
Uzbek
Vietnamese
Welsh
Wolof
Xhosa
Yiddish
Yoruba
Zulu
1
So in this topology, let’s determine why certain ports are set to forwarding
2
and why certain points are blocking
3
so we'll work through the Spanning Tree process.
4
The first decision that needs to be made is election of root bridge.
5
So 1 of the switches in the topology
6
needs to become the root of the Spanning Tree.
7
So on switch 1 as we saw previously
8
sh spanning-tree
9
shows us that this switch or bridge is the root of the Spanning Tree.
10
Switch 2 is not the root of this Spanning Tree.
11
So in the output here we can see
12
that it has a path cost to get to the root switch
13
it sees that the root bridge or root switch
14
has the root ID with priority of this
15
and MAC address of this which is different to the local switch MAC address.
16
So first decision, how is the root determined?
17
It's based on lowest bridge ID
18
which consist of the priority and MAC address.
19
Switch 1 has the same priority as switch 2, 32769
20
so that can't be used to determine the Spanning Tree root.
21
So the tie breaker is based on the MAC address.
22
so lowest MAC address will win
23
switch 1 has a lower MAC address when compared to switch 2
24
once again 0011 is the same on both switches
25
but notice c6ea is greater and c6ac in hexadecimal
26
so switch 1 becomes the root of the Spanning Tree.
27
So that’s the first decision determine who the root bridge is.
28
Once again priority 32768 is the default.
29
So we’ve now determined who the root bridge is or root switch is.
30
The next decision is that every non root switch needs to determine its root port
31
the root port is at its best port to get to the root bridge.
32
The root port is chosen based on lowest path cost.
33
If there’s a tie-breaker on that
34
then it's based on lowest neighbor bridge ID if path cost are the same.
35
if that can't be used to determine the root port
36
then the lowest port priority is used
37
the port priority is 128 by default
38
and if that can't be used then the lowest port ID is used as a tie-breaker.
39
So first decision is based on lowest path cost.
40
Here’s a table showing you the path cost of Cisco switches
41
they are either based on a 1998 IEEE cost or 2004 IEEE cost.
42
In the 1998 cost values, a 10 Meg link has a cost of 100, 100 Meg 19, I gig 4
43
and 10 gig 2 and the IEEE cost in 2004 and later the cost changed to the following.
44
So in our topology, we have gig interfaces on the switches
45
and if we look at the path cost of various ports
46
notice the value associated is 4
47
so these gigabit links have a path cost value of 4
48
which means that the switches are using the old path cost method
49
to determine the best path to a destination.
50
now the first decision is to determine the root port based on the path cost
51
in this topology, we have gigabit 0/0 connected directly to switch 1
52
gigabit 0/1 is also directly connected to switch 1
53
gigabit 0/3 is connected to a hub
54
which inturn connected to switch 1.
55
So the path cost of gigabit 0/3 would be 8
56
if there was a switch connected here
57
but at the moment the path cost is 4 because we have a hub instead of a switch.
58
So we have 3 ports with the same path cost to get to switch 1.
59
on switch 2 we can type sh spanning root as an example
60
and we can see that gigabit 0/0 was chosen as the root port to get to switch 1
61
but that couldn’t have been determined based on the path cost
62
it would need to be determined base on something else.
63
So once again sh spanning-tree
64
so on switch 2 its chosen gigabit 0/0 as its root port.
65
Can path cost be used to determined the best path to the root bridge
66
based on its port numbers and the answer is no
67
the path cost of this link is 4, the path cost of this link is 4
68
the path cost of this link is 4
69
but that can’t be used as the determining factor.
70
So the next choice is neighbor bridge ID.
71
Now in this example switch, 2 is connected to switch 1
72
on 2 ports that are directly connected to switch 1.
73
so the neighboring bridge ID on both this port is the same
74
so that cannot be used at as the tie-breaker
75
the next decision criteria is based on priority
76
but the priority of the ports are the same
77
so that can't be used as a tie-breaker.
78
So the port number is used as the tie-breaker.
79
1 is a lower number than 2
80
so hence gigabit 0/0 is chosen as the root port in this topology.
81
now once the root ports are chosen on a per segment basis
82
a designated port needs to be chosen.
83
The easiest way to work this out
84
is imagine that you have a PC in the middle of this cable
85
and it needs to get to the root bridge
86
using either the port on the left or the port on the right.
87
So if I had a PC in this topology
88
which port would it used to get to the root bridge
89
and hopefully, it's fairly obvious
90
that this port is closer to the root bridge than this port.
91
and hence on this segment gigabit 0/0 to gigabit 0/0
92
this port, port 0/0 on switch 1 is the designated port
93
a designated port is the best port to use
94
on a per segment basis to get to the root bridge.
95
So this port is the best port to use on this top segment
96
to get to the root bridge. What about this segment?
97
So on this segment imagine once again that you had a PC here
98
what's it's best port to use to get to the root bridge?
99
Well it would be this port here on switch 1
100
and once again on switch 1, we can see that by typing sh spanning-tree
101
notice gigabit 0/1 on switch 1 is the designated port for this segment.
102
The same it's true for this segment
103
which is the best port to use to get to the root bridge?
104
It's gonna be gigabit 0/3 on switch 1.
105
And on this segment looking at layer 2 switches running spanning 3
106
this port is the best port to use to get to the root bridge.
107
So we've now chosen a designated port for this top link
108
the 2nd link, these links through the hub as well as this link.
109
The last remaining link is this link
110
and the best port to use to get to the root bridge is this port on switch 2.
111
Any other ports on the network will go blocking.
112
So this port gigabit 0/1 is put in the blocking state
113
and so is gigabit 0/3 also put in the blocking state.
114
Now in Rapid Spanning Tree or Rapid PVST these are known as alternate ports.
115
In other words, on these hubs as an example, if we have a PC connected to it.
116
If this link went down
117
PCs could send traffic into the network using this alternate port
118
because it would now transition to the forwarding state when this link goes down.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.