Home > STP Questions 3

STP Questions 3

September 11th, 2017 in SWITCH 300-115 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. But maybe there is something different in the exam.

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”).

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.

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

In this question DSW2 is the root bridge because of lowest priority value (24576) so all traffic must pass through it. 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). Therefore the 1Gbps port on ASW1 will be chosen as Root port -> traffic will go from ASW1 -> DSW2 -> core.

Note: 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.

Question 11

Question 12

Comments
  1. BoZZ
    July 10th, 2017

    Please update the link to the questions

  2. Dee
    July 16th, 2017

    can someone kindly explain question 4 and 8?

  3. mikeSWE
    July 19th, 2017

    @Dee I have a seen different dumps saying diameter is correct.

    I am not sure on that one @Cetprepare anyone please help.

  4. CCNP boy
    July 24th, 2017

    In Q9 the answer is A ( 128 ) but if this value increase in 32 ( 0-32-64-128….) then why 0 value answer C is not correct ?

  5. jonathan
    July 30th, 2017

    On Question 6 why A. spanning-tree mstp 1 priority 0 is not correct answer

  6. Peter Pan
    August 20th, 2017

    Q5. why not D instead of B ? 0 is the lowest priority which can be configured in cisco switches.

  7. Peter Pan
    August 20th, 2017

    @ jonathan “mstp” instead of “mst” ?

  8. BoZZ
    August 24th, 2017

    Q4 explanation – Macro commands are a set of ordinary CLI commands combined together. Think of it as an alias or shortcut for a script – applying the macro command runs those normal commands in one go.

    Example Macro Command that changes priority to make switch the root as well as changes the timers:

    SWITCH> (enable) set spantree root 8 diameter 4 hello 2
    VLAN 8 bridge priority set to 8192.
    VLAN 8 bridge max aging time set to 14.
    VLAN 8 bridge hello time set to 2.
    VLAN 8 bridge forward delay set to 10.
    Switch is now the root switch for active VLAN 8.

  9. BoZZ
    August 24th, 2017

    Q8 is simply asking which commands can be used to configure LoopGuard.

    A will do it for all ports.
    B will do it for individual port.

    Other options are incorrect.

  10. CaCol
    September 9th, 2017

    Q4.

    Answer : Diameter.

    -You can configure the root bridge with the network diameter for a specific VLAN, and the timer values are computed accordingly. Cisco recommends that, if you must make changes, only configure the diameter and optional hello time parameters on the root bridge for the VLAN.

    spanning-tree vlan vlan-id [root {primary | secondary}] [diameter diameter-value [hello hello-time]]

    !— This command needs to be on one line.

    This macro makes the switch root for the specified VLAN, computes new timer values on the basis of the diameter and hello time specified, and propagates this information in configuration BPDUs to all other switches in the topology.

    https://www.cisco.com/c/en/us/support/docs/switches/catalyst-6500-series-switches/24330-185.html

  11. Anonymous
    October 3rd, 2017

    Q1.. The priority values are 0, 32, 64, 96, 128, 160, 192, and 224. All other values are rejected.(cisco) ..so definitely E .

    https://www.cisco.com/c/m/en_us/techdoc/dc/reference/cli/n5k/commands/spanning-tree-port-priority.html

  12. Anonymous
    October 7th, 2017

    Can someone explain Q1 to me please?
    I must be misunderstanding the topology.
    I thought port priority should be set on the up-stream switch.
    Thanks.

  1. No trackbacks yet.