nerdexam
Cisco

300-420 · Question #376

Refer to the exhibits. An engineer is troubleshooting an issue in which the Gig0/2 interface on a Cisco switch named SW2 fails to become the root port. Which two commands must be run on SW2 to resolve

The correct answer is A. SW2(config-if)# no spanning-tree cost 4 D. SW2(config)# interface Fa0/3. To make Gig0/2 the root port on SW2, the path cost of the currently preferred port (Fa0/3) must be increased by removing its artificially low spanning-tree cost.

Advanced Enterprise Campus Networks

Question

Refer to the exhibits. An engineer is troubleshooting an issue in which the Gig0/2 interface on a Cisco switch named SW2 fails to become the root port. Which two commands must be run on SW2 to resolve this issue? (Choose two.)

Exhibits

300-420 question #376 exhibit 1
300-420 question #376 exhibit 2

Options

  • ASW2(config-if)# no spanning-tree cost 4
  • BSW2(config)# interface Gig0/2
  • CSW2(config-if)# spanning-tree cost 4
  • DSW2(config)# interface Fa0/3
  • ESW2(config-if)# spanning-tree cost 5

How the community answered

(34 responses)
  • A
    79% (27)
  • B
    12% (4)
  • C
    6% (2)
  • E
    3% (1)

Why each option

To make Gig0/2 the root port on SW2, the path cost of the currently preferred port (Fa0/3) must be increased by removing its artificially low spanning-tree cost.

ASW2(config-if)# no spanning-tree cost 4Correct

When applied to the Fa0/3 interface, the 'no spanning-tree cost 4' command removes a manually configured spanning-tree cost of 4 from that interface. This reverts Fa0/3 to its default higher cost (e.g., 19 for FastEthernet), making Gig0/2 (with a default cost of 4 or 2 for Gigabit Ethernet) the more preferred root port.

BSW2(config)# interface Gig0/2

Entering configuration for Gig0/2 would be necessary if we wanted to change its cost, but the most effective solution here is to address the competing port's configuration.

CSW2(config-if)# spanning-tree cost 4

Setting Gig0/2's cost to 4 would only be beneficial if its current cost was higher, but it might not resolve the issue if another port has an even lower or artificially configured low cost.

DSW2(config)# interface Fa0/3Correct

The 'interface Fa0/3' command is necessary to enter interface configuration mode for Fa0/3, allowing the engineer to apply the 'no spanning-tree cost 4' command specifically to that competing interface.

ESW2(config-if)# spanning-tree cost 5

Setting Gig0/2's cost to 5 would make it less preferred than its default cost (typically 2 or 4 for GigE), thus preventing it from becoming the root port, which is contrary to the objective.

Concept tested: Spanning-Tree Protocol (STP) root port election and cost configuration

Source: https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst3750/software/release/12-2_55_se/configuration/guide/scg/swstp.html#wp1089304

Topics

#Spanning Tree Protocol#Root Port Election#STP Cost#Troubleshooting

Community Discussion

No community discussion yet for this question.

Full 300-420 Practice