Spanning tree Flashcards

1
Q
Default STP port costs for the following speeds:
10M
100M
1G
10G
A
10M = 100
100M = 19
1G = 4
10G = 2
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the 3 types of BPDUs?

A

Hello BPDU
CBDPU - Configuration BPDU
TCN BPDU - Topology Change Notification BPDU

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Command to configure a static etherchannel

A

conf t
interface int
channel-group group number mode on

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Command to show the status of an etherchannel

A

show etherchannel group number

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the 2 protocols that can be used to create dynamic etherchannels?

A

PAgP

LACP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does PAgP stand for?

A

Port Aggregation Protocol

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does LACP stand for?

A

Link Aggregation Control Protocol

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the IEEE standard for PAgP and LACP?

A

PAgP is Cisco proprietary

LACP is 802.1ad

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Syntax to enable PAgP on a interface

A

conf t
int gi1/0
channel-group group number mode {desirable | auto}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Syntax to enable LACP on a interface

A

conf t
int gi1/0
channel-group group number mode {active | passive}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

In PAgP configurations, what does the keyword desirable tell the switch to do vs auto?

A

It tells the switch “use this protocol and begin negotiations”versus “use this protocol and wait for the other switch to begin negotiations.”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

In LACP configurations, what does the keyword active tell the switch to do vs passive?

A

It tells the switch “use this protocol and begin negotiations”versus “use this protocol and wait for the other switch to begin negotiations.”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What happens with an etherchannel where both sides are set to either auto or passive?

A

It won’t come up, because both sides are waiting for the other to begin negotiations.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the IEEE standard for:
STP
PVST
RSTP

A

802.1D
Cisco Proprietary
802.1w

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What does RSTP stand for?

A

Rapid Spanning Tree Protocol

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What STP mode do Cisco switches generally default to?

A

802.1D with PVST

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Command to set a switch to use PVST

A

spanning-tree mode pvst

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What 3 fields make up the BID?

A
  1. Priority
  2. System ID Extension
  3. System ID
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

What is the range for priority?

A

0-65535

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

What is unusual about the priority value?

A

It’s in multiples of 4096.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

What is the value of an all 1’s priority field?

A

61140

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

What are the values of each bit in the priority field?

A

32768 16384 8192 4096

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

What is normally stored in the System ID extension field?

A

VLAN ID

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

How many bits in the System ID extension field?

A

12

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
How many bits in the priority field?
4
26
How many bits in the System ID field?
6 bytes
27
Command to set the priority for a given VLAN
spanning-tree vlan *vlan id* priority *priority*
28
Command to set a port cost.
Conf t interface gi1/0 spanning-tree [vlan *vlan id*] cost *cost*
29
What is the default BID priority?
32768
30
Is portfast or bpduguard enabled by default?
No
31
What are the 3 port types in STP?
1. Root port 2. Designated port 3. Blocking port
32
What is a Designated port vs other port types?
The Designated Port is the one that advertises lowest-cost hello onto the LAN segment.
33
What 4 fields are shown in a "show mac address-table" output?
1. VLAN 2. MAC address 3. Type (dynamic or static) 4. Output port to get to that MAC
34
What does "show interfaces status" show us (7 fields)?
1. Port 2. Description 3. Status (connect / notconnect/ disabled) 4. VLAN 5. Duplex 6. Speed 7. Type (10/100/1000 TX etc)
35
If a frame came into a switch and was either an unknown destination MAC or a broadcast mac, what ports would the switch forward it out of?
All forwarding ports for that VLAN, except the one on which it was received.
36
What makes a switch a designated switch for a given ethernet segment?
It's the switch (and therefor the port) that is forwarding the root's BPDU.
37
4 important fields in a Hello BPDU
1. Root BID 2. Sender's BID 3. Sender's root cost 4. Timers on the root switch
38
What are 3 of the timers on the root switch?
1. Hello timer 2. MaxAge timer 3. Forward Delay timer
39
What is the most common type of BPDU?
Hello BPDU
40
What does STA stand for?
Spanning Tree Algorithm
41
What is the root cost in a BPDU received directly from the root bridge?
0. The root bridge has a 0 cost to reach itself.
42
If a switch receives a BPDU with a root cost of 25 on a 1 gig port with default costing, what will it rewrite the root cost to be?
29 | 25 + 4 for the gig port
43
Which switch's BID would win? A: 32769:0200.0002.0002 B: 32769:0200.0003.0003
A, since it has the numerically lower System ID
44
If a switch is connected to a hub and hear's it's own BPDU's on multiple ports, what are the other 2 tiebreaker values?
1. Lowest interface STP priority | 2. If all interfaces are the same priority, lowest interface number.
45
What 2 items will a non-root switch change before forwarding out the hello BPDU received from the root's direction?
1. Root cost | 2. Sender ID
46
What is the default value of the 3 primary STP timers?
1. Hello - 2 seconds 2. MaxAge - 20 seconds 3. Forward Delay - 15 seconds
47
What is the calculation to get the MaxAge time?
MaxAge = 10*(Hello timer)
48
What does the forward delay timer control?
How long a port will transition through Listening and Learning before going to Forwarding. Each phase will take (fwddelay value) seconds.
49
What does the MaxAge timer control?
How long a switch will wait for a Hello BPDU before declaring the neighbor down and sending out a TCN BPDU.
50
How many interfaces can be included in an Etherchannel?
Up to 8.
51
What does PortFast do?
Allows a port to go immediately into Forwarding, without the normal interim stages of Listening and Learning.
52
What kinds of ports must PortFast be restricted to?
Access ports facing stubs only, never anything that could be cabled up to form a loop.
53
What does BPDUguard do?
When a port has it configured, it will immediately become disabled if a BPDU is received on that port.
54
In RSTP, what is the blocking state called?
Discarding
55
What is STP's convergence time vs RSTP?
STP - ~50 seconds | RSTP - max 10 seconds, usually much less
56
What does the command "spanning-tree vlan vlan-id root {primary | secondary}" do?
The switch on which this is configured will lower it's own priority to beat out any other switch to become the root bridge.
57
Command to enable portfast on gi1/0.
conf t int gi1/0 spanning-tree portfast
58
Command to enable BPDUguard on gi1/0
conf t int gi1/0 spanning-tree bpduguard enable
59
Command to make a switch root or secondary root.
spanning-tree vlan *vlan-id* root {primary | secondary}
60
Command to see the root BID.
show spanning-tree [vlan *vlan id*]
61
Command to list the root switches for all vlans.
show spanning-tree root
62
Command to show the BID broken out into it's component parts.
show spanning-tree vlan *vlan id* bridge
63
Command to debug STP
debug spanning-tree events
64
When using the root primary command, what is the value that the switch's priority will be set to if the current root is at 32768?
24576
65
When using the root primary command, what is the value that the switch's priority will be set to if the current root is less than 24576?
The highest multiple of 4096 that is still less than the priority of the current root.
66
What are the 3 port states of 802.1w?
1. Learning 2. Forwarding 3. Discarding
67
2 commands to see if a switch is in PVST or RPVST mode
show spanning-tree | show spanning-tree summary
68
Command to set either PVST or RPVST
conf t | spanning-tree mode [pvst | rapid-pvst]
69
If a switch has a root port, is it the root switch?
No. The root switch only has designated ports.
70
How many root ports will a switch have?
1 per vlan
71
What are the stable states in STP?
1. Forwarding | 2. Blocking
72
What are the states in STP that only occur during convergence?
1. Listening | 2. Learning
73
What is used to create the BID?
2 byte priority field + 6 byte system ID (BIA)