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
What you’ll notice is Spanning Tree convergence is very quick
2
and that’s because we’re running Rapid PVST+
3
I didn’t make any changes on these switches from the Spanning Tree point of view.
4
So the command sh run | include span shows the default config
5
and notice the Spanning Tree used is Rapid PVST.
6
in the output, it shows us RSTP or Rapid Spanning Tree
7
but this is actually Rapid Per-VLAN Spanning Tree.
8
We can change the mode of spanning Tree
9
but before I do that just to make the point again.
10
at the moment sh spanning-tree on switch 3
11
shows that the root port is gigabit 0/1 this port.
12
If I shut that port down and then type sh spanning-tree again
13
what you’ll notice is gigabit 0/0 is the root port.
14
convergence is very quick with Rapid Spanning Tree
15
because it doesn’t use timers.
16
So the max age and forward delay timers are not used for convergence.
17
The switches send messages to each other
18
with Rapid Spanning Tree to enable quick convergence.
19
So now if we change the Spanning Tree type or mode to PVST
20
we should see that Spanning Tree takes a lot longer to converge.
21
So I’ll change that on all switches; switch 3, switch 4, switch 5.
22
So back on switch 3 sh spanning-tree
23
notice we can see that the switch is still learning
24
which ports are the root port
25
designated port or blocking port, when in the learning state
26
traffic will be block
27
user traffic will only be forwarded
28
when ports transition to the forwarding state.
29
At the moment you can see that the Spanning Tree
30
protocol used are shown here is IEEE
31
but once again you need to be careful
32
because on Cisco switches even though it displays IEEE
33
we're actually using PVST
34
PVST is once again backward compatible
35
so it will be able to talk to an 802.1D switch
36
from another vendor as an example
37
so we can see IEEE in the output here.
38
So once again sh spanning-tree
39
the root port, in this case, is now gigabit 0/0.
40
So what happened because previously we had switch 1 as the root.
41
It still has our command sh spanning-tree
42
shows us that the switch is the root of the topology
43
but gigabit 0/1 is not shown in the output here
44
because I need to no shut that port.
45
So conf t interface g0/1 no shut
46
sh spanning-tree
47
notice that port is a listening port
48
gigabit 0/0 is a blocking port.
49
So this port is blocking, this port is listening
50
and what you’ll notice is it will take it a while to converge
51
I'll put an IP address on this switch
52
I’ll be waiting and then I'll demonstrate this again.
53
Put an IP address on switch 1.
54
I’ll no shut the interface
55
so ping 10.1.1.1 it can ping itself
56
switch 3 no shut the interface
57
Ping 10.1.1.1 ping succeeds so I'll just do that again.
58
Notice the ping from switch 3 to switch 1 succeeds.
59
sh spanning-tree convergence has taken place
60
because gigabit 0/1 is the root port
61
and it's forwarding but now if I shut down gigabit 0/1
62
and then try and ping switch 1, the port has gone down
63
but pings are failing even though we have a redundant link.
64
sh spanning-tree
65
shows me that root port is still learning.
66
Still learning, pings failed, PVST takes a long time to converge
67
and take 30 seconds for that convergence take place.
68
As you can see there, it's just happened
69
sh spanning-tree
70
shows us now that gigabit 0/1 is forwarding.
71
But once again if I no shut gigabit 0/1
72
and did the ping again, the ping would fail
73
because it now needs to learn that this is the better path.
74
sh spanning-tree
75
notice the root port gigabit 0/1 is in the listening state.
76
So we have listening, then we have learning
77
and after while it should go to forwarding
78
but that can take 30 seconds
79
so it’s still learning, now it's gone to forwarding
80
and now pings will succeed.
81
So ports have different states.
82
in a blocking state, user traffic is not forwarded
83
the switch doesn’t learn MAC addresses based on frames received.
84
This is a stable state for a port.
85
A listening and learning port do not forward frames either
86
listening ports don’t learn MAC address based on frames received
87
In other words, they don’t update the MAC address table.
88
A learning port does update the MAC address table.
89
This is a temporary state or transitionary state
90
while the switch has learned the topology.
91
In a forwarding state frames are forwarded
92
MAC addresses are learned and this is a stable state
93
in other words, this is not a transitionary state
94
this state will stay that way until there's change in the topology.
95
A disabled port doesn’t receive6:01 PM 6/21/2017 frames, doesn’t forward frames
96
doesn’t learn about MAC addresses on a port
97
and this port will stand at state until you enable the port.
98
Now if we change that to Rapid Spanning Tree
99
So spanning-tree mode rapid-pvst
100
what we should notice is that convergence takes place a lot quicker.
101
I’ll only enable Rapid Spanning Tree on switch 1, 2 and 3
102
sh spanning-tree rather sh spanning-tree
103
shows us that the Spanning Tree mode now enabled
104
is Rapid Per-VLAN spanning Tree
105
we’ve got a path cost using gigabit 0/1
106
so as you can see gigabit 0/1 is the root port.
107
The switch can ping switch 1
108
I'll shut that port down and when we do a ping again
109
it instantly can ping switch 1
110
even though we’ve just seen the interface go down in the output here
111
because Spanning Tree converge is a lot quicker when using Rapid Spanning Tree.
112
So the moral of the story is that in the real world
113
you wanna use Rapid PVST rather than PVST.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.