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
In this topology, I have 2 switches which are configured to run PVST not Rapid PVST+
2
but simply PVST I'll show you that config in a moment.
3
Router 1 is connected to switch 1
4
and router 2 is connected to switch 2
5
and the routers are simply acting as edge devices or PCs in this topology.
6
I’ve also got a hub connected to switch 1 and switch 2.
7
Here’s switch 1, sh run | include span
8
as you can see at the moment the switches configured for PVST
9
I'll explain extended system IDs in more detail later
10
but essentially it means that the priority of the switches
11
based on the priority and VLAN number.
12
So as an example, sh Spanning Tree
13
this switch has a bridge ID consisting of the priority 32769
14
which is the default of 32768+ the extended system ID of 1
15
because we're looking at VLAN 1 and MAC address of the following.
16
this switch is currently the root
17
What I want you to see is that the Spanning Tree enabled here is IEEE
18
so in this output, it looks like you're running 802.1D
19
but actually, the switch is configured for Per-VLAN Spanning Tree.
20
Per-VLAN Spanning Tree is compatible with 802.1D switches
21
and therefore we can see IEEE in the output here.
22
Here switch 2 sh run | include span
23
switches configured to use PVST, extended system IDs are being used
24
on this switch, the brIDge ID consist of the priority 32769
25
which is 32768 the default + the VLAN number which is VLAN 1 in this example
26
this is the MAC address of the switch.
27
So we have 2 switches, one has this MAC address
28
one has this MAC address, switch 1 has become the root of the Spanning Tree
29
because it has a lower MAC address when compared to this switch.
30
So because of the lower MAC address
31
notice AC is lower than EA in hexadecimal
32
switch 1 became the root of the Spanning Tree.
33
What you’ll also notice is that on switch 1
34
all ports are forwarding in the topology
35
the ports that are currently connected are those ports
36
and they're all forwarding on switch 2, however, port 1
37
which is gigabit 0/0 is the root port
38
and it's forwarding has path cost of 4, gigabit 0/1 is blocking
39
or discarding to use the industry standard term.
40
Port 2 is forwarding, port 3 is blocking.
41
So this port is also blocking.
42
Root switches forward on all ports.
43
Before I show you how port status were determined
44
let’s have a look at the BPDUs
45
So I'll start capture on that link
46
and what we can see here in Wireshark is a Spanning Tree BPDU.
47
So it’s using 802.3 Ethernet frames
48
notice the destination address is the well-known MAC address for Spanning Tree
49
it is a multicast/broadcast address from this MAC address.
50
Here’s switch 1
51
notice the MAC address of the switch 00:11:c6:ac:dd:
52
and we're currently looking at port 3 on the switch
53
so notice dd00 but this is dd03
54
because in Spanning Tree that’s the port that we're currently looking at.
55
if we went and look at port 2 as an example
56
notice the MAC address ends in 02
57
we’ve got port 00 01 02 and 03
58
so back in Wireshark here’s our capture sent out of port 3
59
in Spanning Tree we can see the spanning 3 version
60
so this is Spanning Tree 0
61
because in this port its actually using 802.1D
62
or the original version of Spanning Tree.
63
The root identifier is 32768, there’s the VLAN number
64
and there’s the MAC address of the switch, which we can see clearly here
65
so notice root identifier, there’s the information of 32768 VLAN 1
66
there is the MAC address of the switch.
67
The root path cost is 0 because this switch is the root
68
so there’s no cost to get to the root.
69
There’s the port identifier and here are some timers used in Spanning Tree.
70
Now when a switch boots up all ports are put into a blocking state
71
they're then moved to other states based on timers in 802.1D
72
When the Spanning Tree switch boots up all ports are put into the blocking state
73
after 20 seconds called the max age timer ports moved
74
to what’s called the listening state.
75
if a switch is already up and you connect your cable to the port
76
in other words, the links goes up
77
it starts at the listening state
78
ports will then move to the learning state
79
based on the forward delay which is 15 seconds in duration
80
and after 15 seconds ports transition from the learning state to the forwarding state.
81
So an 802.1D or PVST it can take 50 seconds
82
for ports to start forwarding on switches
83
because they move from blocking to listening to learning to forwarding.
84
Now in the listening state, they are sending BPDUs
85
but not updating their MAC address tables.
86
in the learning state, BPDUs are sent
87
and the MAC address tables of switches are updated.
88
So only if based on the Spanning Tree calculation
89
it’s determined that a port can be opened
90
a port is set to the forwarding state after 50 secs.
91
when the switch comes up or typically if the switch is already up
92
and you plug in a cable into that switch after 30 secs.
93
The port will start forwarding.
94
So in the BPDU we can see the max age timer
95
and the forwarding delay timer.
96
this is determined by the root bridge
97
so on switch 1 which is the root bridge
98
we can see that the hello timer
99
in other words, BPDU hellos are sent out every 2 seconds
100
the max age time is 20 seconds
101
and the forwarding delay timer is 15 seconds
102
and that’s what we see in the BPDUs as captured in our topology.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.