Home > STP Questions 3

STP Questions 3

November 21st, 2019 Go to comments

Question 1

Explanation

The command “spanning-tree port priority 0” is better than the command “spanning-tree port priority 16” as interface G1/0 is preferred over other interfaces with lowest priority port ID. So answer E is better than B.

Question 2

Question 3

Explanation

If you configure “spanning-tree portfast” then it will only takes effect on access ports (portfast is still disabled on trunk ports). To enable portfast on a trunk port you need the trunk keyword (“spanning-tree portfast trunk”).

Note: The command “spanning-tree portfast default” can only be configured under global configuration mode but this question requires to “apply on the interfaces”.

Question 4

Explanation

The full macro command is “spanning-tree vlan <vlan-id> root primary”. This command will adjust its priority to a lower value (than the value of the current root bridge), so it will become the new root bridge for the specified VLAN, so this command basically generates a macro. But this keyword does not adjust STP timers so maybe this requirement does not exist in the exam.

If the question asks about “automatically adjust STP timers” only then the answer should be “diameter”:

Use the diameter keyword to specify the Layer 2 network diameter (that is, the maximum number of switch hops between any two end stations in the Layer 2 network). When you specify the network diameter, the switch automatically sets an optimal hello time, forward-delay time, and maximum-age time for a network of that diameter, which can significantly reduce the convergence time. You can use the hello keyword to override the automatically calculated hello time.

Reference:

https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst3560/software/release/12-2_50_se/configuration/guide/scg/swstp.html

Question 5

Question 6

Explanation

From the second command output (show spanning-tree mst) we learn that MST1 includes VLANs 10 & 20. Therefore if we want DSW1 to become root bridge for these VLANs we need to set the MST 1 region to root -> The command “spanning-tree mst 1 root primary” can do the trick. In fact, this command runs a macro and sets the priority lower than the current root.

Also we can see the current root bridge for these VLANs has the priority of 32769 (default value + sysid) so we can set the priority of DSW1 to a specific lower value. But notice that the priority must be a multiple of 4096. Therefore D is a correct answer.

Question 7

Explanation

By calculating and assigning the port cost of the switch ports, you can ensure that the shortest (lowest cost) distance to the root switch is used to transmit data. You can calculate and assign lower path cost values (port costs) to higher bandwidth ports by using either the short method (which is the default) or the long method. The short method uses a 16-bit format that yields values from 1-65535. The long method uses a 32-bit format that yields values from 1-200,000,000.

Reference: http://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst4000/8-2glx/configuration/guide/spantree.html

The port cost depends on the port speed; the faster interface speeds indicate smaller costs. MST always uses long path costs.

Reference: http://www.cisco.com/c/m/en_us/techdoc/dc/reference/cli/nxos/commands/l2/spanning-tree-mst-cost.html

Question 8

Question 9

Question 10

Explanation

We suppose there is no Etherchannel configured between ASW1 and DSW1.

For STP, the cost of 10Gbps is 2 while the cost of 1Gbps is 4 so the paths from ASW1 -> DSW1 -> DSW2 and ASW1 -> DSW2 have the same accumulate STP Path cost (= 4). If multiple paths are available to reach the Root Bridge (Root Switch) with the same accumulated Spanning Tree Path Cost in a Non-Root Switch, select the port connected to the neighbor switch which has the lowest Switch ID value as the Root Port. Therefore the 1Gbps port on ASW1 will be chosen as Root port (as DSW2) has the lowest Switch ID value -> traffic will go from ASW1 -> DSW2 -> core. 

Question 11

Explanation

From the output we see DSW2 is running in RSTP mode (in fact Rapid PVST+ mode as Cisco does not support RSTP alone). When a new switch running PVST+ mode is added to the topology, they keep running the old STP instances as RSTP (in fact Rapid PVST+) is compatible with PVST+.

Question 12

Question 13

Explanation

Use the diameter keyword to specify the Layer 2 network diameter (that is, the maximum number of switch hops between any two end stations in the Layer 2 network). When you specify the network diameter, the switch automatically sets an optimal hello time, forward-delay time, and maximum-age time for a network of that diameter, which can significantly reduce the convergence time. You can use the hello keyword to override the automatically calculated hello time.

Reference: https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst3560/software/release/12-2_50_se/configuration/guide/scg/swstp.html

Comments
  1. polleke
    January 11th, 2020

    Q5: Should be A and B.
    A. DSW2: change bridge priority to 61440 (highest)
    B. DSW1: change bridge priority to 4096 (lowest)
    E. “change bridge priority but command is “priority root” is wrong since the command is “spanning-tree vlan 10 root primary”

  2. Ridiculiculous
    January 18th, 2020

    @polleke – I agree about Q5 100%

  3. Anonymous
    January 25th, 2020

    @Cerprepare

    SO many confusions about Question 1 and 5.

    Please help with answers ?

  4. flkang
    February 6th, 2020

    Q3 i think is poorly explained.

    #spannig-tree portfast default —> will be applied in all ports that do not receive BPDUs

    # spanning-tree uplinkfast –> will learn mac address on ALT port to faster convergence in Switch-to-switch links, so it skips the STP timers

    I think this to options would be better, is E option is missing it may be UPLINKFAST

    Question 3
    Your manager asked you to make every port on your switch bypass the normal spanning-tree timers which includes your uplink to other switches. What two commands can you apply on the interfaces? (Choose two)

    A. spanning-tree portfast
    B. spanning-tree portfast default
    C. spanning-tree portfast access
    D. spanning-tree portfast trunk
    E. ?

  5. Q5 wrong answers
    February 8th, 2020

    @Certprepare, please, Could you modify the indicated answers? Should be A and B

  6. Q5 Wrong
    February 9th, 2020

    Answer should be D and E.
    B is incorrect because 4096 is not the lowest. 0 is.

    sw-office(config)#spanning-tree vlan 100 priority ?
    bridge priority in increments of 4096

  7. Q5 Wrong
    February 9th, 2020

    A is correct also correct. as DSW1 would then have the lowest Bridge Priority. While it would work, the down side is, the access switches would be the next highest if DSW1 failed, so it would be a bad life choice.

  8. Romain
    February 10th, 2020

    Q1 This question is stupid, PC1 doesn’t participate in spanning-tree… it’s a computer, so why would you change the spanning-tree priority on those links? This is non-sense…

  9. Peter Pan
    February 19th, 2020

    The only correct answers are A and D.

    A – Priority of 61440 would make it impossible to be the root. (CORRECT)
    B – Priority of 4096 (INCORRECT) The value can be set as “0”.
    C – Totally wrong
    D – Yes, 0 can be set. (CORRECT)
    E – Priority Root – (INCORRECT) NO such command

  10. suntzu
    February 22nd, 2020

    Q5, the options are wrong no matter how you read it.

    If you set either switch to bridge priority of 0, the other switch could be set to 0.
    If you set either switch to 61440, both switches could be set to 61440.

    The only real way is to use the spanning-tree vlan # root primary command and spanning-tree vlan # priority command.

    But, if THESE are the only possible answers then YES set to 0 and set other switch to highest possible priority.

    But, again, the question asks about VLAN 10. Setting the other switch to 61440 will cause it to lose all roots to vlan 10 and 20.

    So either this is a dumb ass cisco tricky question or this is the right question with the wrong answer choices.

  1. No trackbacks yet.