exam questions

Exam 350-401 All Questions

View all questions & answers for the 350-401 exam

Exam 350-401 topic 1 question 405 discussion

Actual exam question from Cisco's 350-401
Question #: 405
Topic #: 1
[All 350-401 Questions]


Refer the exhibit. Which configuration elects SW4 as the root bridge for VLAN 1 and puts G0/2 on SW2 into a blocking state?

  • A. SW4(config)#spanning-tree vlan 1 priority 0 ! SW2(config)#int G0/2 SW2(config-if)#spanning-tree cost 128
  • B. SW4(config)#spanning-tree vlan 1 priority 0 ! SW2(config)#interface G0/2 SW2(config-if)#spanning-tree vlan 1 port-priority 64
  • C. SW4(config)#spanning-tree vlan 1 priority 32768 ! SW2(config)#int G0/2 SW2(config-if)#spanning-tree cost 128
  • D. SW4(config)#spanning-tree vlan 1 priority 32768 ! SW2(config)#interface G0/2 SW2(config-if)#spanning-tree vlan 1 port-priority 0
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
dragonwise
Highly Voted 2 years ago
A. SW4(config)#spanning-tree vlan 1 priority 0 ! SW2(config)#int G0/2 SW2(config-if)#spanning-tree cost 128 B. SW4(config)#spanning-tree vlan 1 priority 0 ! SW2(config)#interface G0/2 SW2(config-if)#spanning-tree vlan 1 port-priority 64 C. SW4(config)#spanning-tree vlan 1 priority 32768 ! SW2(config)#int G0/2 SW2(config-if)#spanning-tree cost 128 D. SW4(config)#spanning-tree vlan 1 priority 32768 ! SW2(config)#interface G0/2 SW2(config-if)#spanning-tree vlan 1 port-priority 0
upvoted 8 times
...
HungarianDish_111
Highly Voted 2 years, 1 month ago
Selected Answer: A
https://community.cisco.com/t5/routing/spanning-tree-with-port-priority/td-p/1815059 "You just configure "port priority" on upstream switches on designated ports or modify "port cost" on downstream switches on root ports" https://packetlife.net/blog/2008/sep/5/spanning-tree-port-costs/ The default cost of the 1 Gig link would be 4. Changing the cost to 128 makes the link less preferred.
upvoted 5 times
...
zbeugene7
Most Recent 6 months ago
The key here is to remember that the cost doesn't have to be set on the far end like priority, because it's the cost , hence setting g0/2 cost to 128 on SW2 is OK in order to select g0/3 as a root and blok g0/2 on SW2.
upvoted 2 times
...
[Removed]
11 months, 1 week ago
Selected Answer: A
A is correct
upvoted 1 times
...
IgorLVG
1 year ago
They have differences though: If you want to affect how to the local switch elects the root port change the cost on the links. Cost is cumulative throughout the STP domain. The higher cost is the less preferred. If you want to affect how downstream switch elects its root port change the priority. This is only local significant between the two directly connected switches. Highest priority is less preferred. Going away from the root of the tree use priority whereas, when going towards the root of the tree use cost. ref: https://community.cisco.com/t5/switching/stp-port-priority-vs-cost/td-p/1274612#:~:text=Highest%20priority%20is%20less%20preferred,of%20the%20tree%20use%20cost.&text=have%20differences%20though%3A-,If%20you%20want%20to%20affect%20how%20to%20the%20local%20switch,cumulative%20throughout%20the%20STP%20domain. so: ANS: A
upvoted 1 times
...
danman32
1 year, 9 months ago
Answers C and D can be eliminated as they would make SW2 root since it has priority 4096. Answer B can also be eliminated on the surface because first it isn't specifying STP for VLAN 1, and port priority affects the port decision for the neighboring switch (SW4), not the local switch. But SW4 is root so both of its ports will be designated. I goofed misinterpreted cost as priority, also bothered that it wasn't setting cost on STP instance for VLAN1.
upvoted 1 times
...
Colmenarez
1 year, 9 months ago
Selected Answer: A
La respuesta correcta es A. SW4 spanni vlan 1 priority 0 <---- esto fuerza al SW4 ser el root para vlan 1 SW2 int G 0/2 SW2 spann cost 128 <--- este comando realmente no esta haciendo nada, ya que el costo por default de casa puerto es 128. pero igual el puerto G0/2 por orden de preferencia
upvoted 3 times
...
x3rox
2 years, 3 months ago
Selected Answer: A
This is the correct explanation of why option A is correct: *spanning-tree vlan 1 priority 0 is hardcoding SW4 to be the root as it has the lowest priority *By changing the cost of the link (which is first looked at before the sender Port-ID) on SW2 causes SW2 to elect the other port as a RP as the other link has lowest cost then 128.
upvoted 4 times
...
nushadu
2 years, 4 months ago
Selected Answer: A
! root switch, 2 links to fat-end: spanning-tree mode rapid-pvst spanning-tree extend system-id spanning-tree vlan 1 priority 0 sw2(config-if)#do s spann vl 1 VLAN0001 Spanning tree enabled protocol rstp Root ID Priority 1 Address aabb.cc00.4000 This bridge is the root Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 1 (priority 0 sys-id-ext 1) Address aabb.cc00.4000 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 300 sec Interface Role Sts Cost Prio.Nbr Type ------------------- ---- --- --------- -------- -------------------------------- Et0/3 Desg FWD 100 128.4 Shr Po2 Desg FWD 100 128.65 Shr sw2(config-if)#
upvoted 1 times
nushadu
2 years, 4 months ago
far-end, lower STP port cost (99 in this case) wins: sw1(config-if)#do s spann vl 1 VLAN0001 Spanning tree enabled protocol rstp Root ID Priority 1 Address aabb.cc00.4000 Cost 99 Port 65 (Port-channel2) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 4097 (priority 4096 sys-id-ext 1) Address aabb.cc00.1000 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 300 sec Interface Role Sts Cost Prio.Nbr Type ------------------- ---- --- --------- -------- -------------------------------- Et0/0 Desg FWD 100 128.1 Shr Et0/3 Altn BLK 100 128.4 Shr Po2 Root FWD 99 128.65 Shr <<<<<<<<<<<<<<<<<<<< current root port sw1(config-if)#
upvoted 1 times
nushadu
2 years, 4 months ago
removing cost and root port has been changed: sw1(config-if)#no spanning-tree cost 99 sw1(config-if)#do s spann vl 1 VLAN0001 Spanning tree enabled protocol rstp Root ID Priority 1 Address aabb.cc00.4000 Cost 100 Port 4 (Ethernet0/3) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 4097 (priority 4096 sys-id-ext 1) Address aabb.cc00.1000 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 300 sec Interface Role Sts Cost Prio.Nbr Type ------------------- ---- --- --------- -------- -------------------------------- Et0/0 Desg BLK 100 128.1 Shr Et0/3 Root FWD 100 128.4 Shr <<<<<<<<<<<<<<<<<<<<< Po2 Altn BLK 100 128.65 Shr sw1(config-if)#
upvoted 1 times
...
...
...
forccnp
2 years, 5 months ago
Selected Answer: A
A is correct
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago