day 20/21 STP

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall with Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/57

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No study sessions yet.

58 Terms

1
New cards

Spanning tree’s purpose

a layer 2 protocol…

Prevents Network Loops:

In switched networks, multiple paths can create loops, causing broadcast storms that flood the network and bring it down. STP stops this by blocking redundant links. 

2
New cards

TTL is used to

prevent infinite loops at layer 3 (layer 2 uses STP)

3
New cards

switches from all vendors run

STP by default

4
New cards

STP prevents layer 2 loops by

placing redundant ports in a blocking state

5
New cards

Forwarding interfaces

  • send and receive all normal traffic

6
New cards

STP hello BPDU timer

2 seconds

7
New cards

All ports on the root bridge

  • are put in forwarding state

8
New cards

Default Bridge priority is

32768

9
New cards

The switch with the lowest becomes the root bridge

  • Mac address

10
New cards

PVST

Per-Vlan Spanning-tree

11
New cards

In Spanning Tree Protocol (STP), 32769 isn't the base priority but often the Bridge ID (BID) for VLAN 1 on a Cisco switch because the default priority (32768) is combined with the VLAN ID (1) using the System ID Extension (4 bits), making the default BID for VLAN 1 32768 + 1 = 32769. While the true default priority value is 32768, the addition of the VLAN ID for each instance (like in PVST) results in the 32769 seen in many default scenarios, where a lower number wins the root bridge election. 

In Spanning Tree Protocol (STP), 32769 isn't the base priority but often the Bridge ID (BID) for VLAN 1 on a Cisco switch because the default priority (32768) is combined with the VLAN ID (1) using the System ID Extension (4 bits), making the default BID for VLAN 1 32768 + 1 = 32769. While the true default priority value is 32768, the addition of the VLAN ID for each instance (like in PVST) results in the 32769 seen in many default scenarios, where a lower number wins the root bridge election. 

12
New cards

All interfaces on Root port in STP are

Designated

13
New cards

When a switch is powered on

it assumes it is the root bridge… until It gets a superior BPDU

14
New cards

Every switch that isn’t the root

elects a Root port with the lowest root cost

15
New cards

Root ports are also

in a forwarding state

16
New cards

10 mbps cost in STP

100

17
New cards

100 mbps cost in STP

19

18
New cards

1 gbps cost in STP

4

19
New cards

10 gbps cost in STP

2

20
New cards

STP selection order

  • Lowest Root Cost

  • Lowest Neighbor Bridge ID

  • Lowest NEIGHBOR Port ID

21
New cards

View spanning tree

show spanning-tree

22
New cards

How to find Port ID

  • show spanning-tree

  • look for Prio.nbr

23
New cards

Each link in STP is a

collision domain

24
New cards

word for blocking in STP

non-designated

25
New cards

STP port states

  • blocking (non designated)

  • learning

  • listening

  • forwarding (designated)

26
New cards

Interfaces in a blocking state

receive STP bpdu’s (the other side is designated) they need to receive to be ready to transition..

27
New cards

how long is the listening state in STP and what determines the time?

  • 15 seconds

    • Forward Delay Timer

28
New cards

Listening state does what?

  • only forwards/receives STP bpdu’s

  • doesn’t learn MAC

29
New cards

Learning state does what and how long is it?

  • 15 seconds

  • only sends/receive BPDU’s but not regular traffic

  • Learns MAC addresses

30
New cards

Forward delay timer is used for

listening and learning states

31
New cards

what’s the main difference between listening and learning STP states

Learning → learns MAC addresses

32
New cards

max age timer

20 seconds

33
New cards

Hello STP timer

sends BPDU’s every 2 seconds

34
New cards

purpose of max age timer

  • if it doesn’t Receive BPDU’s then the topology will change

35
New cards

why can Forwarding state move directly to blocking

  • there’s no forward delay or max age timer…. No risk of broadcast storm

36
New cards

ONLY Enabled on interfaces connected to end hosts

Portfast

37
New cards

what is the purpose of portfast

bypass the listen and learning stages to move immediately to forwarding state

38
New cards

configure portfast

  • int g0/2

    • spanning-tree portfast

39
New cards

command to enable portfast on all access ports (NOT TRUNK ports)

  • spanning-tree portfast default

40
New cards

used to prevent loops (enable it on end devices with port fast)

BPDUguard

41
New cards

BPDUguard does what?

shuts down the interface to prevent loop/broadcast storm

42
New cards

Configure Bpduguard

spanning-tree bpduguard enable

43
New cards

enable BPDUguard on all interfaces that have PORTFAST

spanning-tree bpduguard default

44
New cards

enable port that was disabled by bpduguard

  • shutdown

    • no shutdown

45
New cards

don’t use BPUguard or portfast

on interfaces connected to switch

46
New cards

Even if it receives a superior BPDU with this enabled, the switch won’t accept it as the Root Bridge

root guard

47
New cards

with this enabled, even if the interface stops receiving BPDUs, it will not start forwarding

loop guard

48
New cards

configure STP mode

spanning-tree mode ?

49
New cards

If current root bridge fails

  • this is why we configure a secondary root bridge

50
New cards

configure root bridge in STP

  • spanning-tree vlan # root primary

  • do show spanning-tree

51
New cards

set secondary root in STP

  • spanning-tree vlan # root secondary

52
New cards

STP load-balancing

configure different root bridges for different VLANs (that way in Vlan 1 the non designated port isn’t useless in vlan 2)

53
New cards

Cost and Port-priority are configured on a

per vlan basis (they change the result of the root or designated port status)

54
New cards

what is Cost

root cost (gigabit is 4)

55
New cards

Even if you configure portfast on a trunk port

it won’t be active

56
New cards

command to see STP

show spanning-tree interface g0/2 detail

57
New cards

Do Lab now

k

58
New cards

in STP it is better to have a higher or lower priority

Lower