exam questions

Exam 350-401 All Questions

View all questions & answers for the 350-401 exam

Exam 350-401 topic 1 question 198 discussion

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


Refer to the exhibit. How was spanning-tree configured on this interface?

  • A. By entering the command spanning-tree portfast trunk in the interface configuration mode.
  • B. By entering the command spanning-tree mst1 vlan 10,20,30,40 in the global configuration mode.
  • C. By entering the command spanning-tree portfast in the interface configuration mode.
  • D. By entering the command spanning-tree vlan 10,20,30,40 root primary in the interface configuration mode.
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
zzmejce
Highly Voted 2 years, 10 months ago
Selected Answer: A
Provided answer is correct. Since there are multiple VLANs on the port, the port is in trunk mode. If you leave the trunk keyword (answer C), the following message is shown: %Portfast has been configured on GigabitEthernet0/10 but will only have effect when the interface is in a non-trunking mode.
upvoted 15 times
...
Mimimimimi
Highly Voted 3 years, 2 months ago
Answer is C. All ports have a p2p edge status. Edge indicates that they are connected to a host, not a switch. If the status would be p2p, they would be a trunkport. In which case, spanning-tree portfast trunk could be used. Quote from Ciscopress ENCOR 350-401 book, page 66: "The portfast feature is enabled on a specific access port with the command spanning-tree portfast or globally on all access ports with the command spanning-tree portfast default."
upvoted 10 times
kipson
3 days, 16 hours ago
The P2p Edge type in the output confirms that PortFast is enabled on this interface, making Option C the correct answer.
upvoted 1 times
...
Neil101
2 years, 5 months ago
I'm saying answer is A. Reason is a trunk port can go to a client and doesn't have to go to a switch. As it's a trunk, the word 'trunk' needs to be included in the spanning-tree portfast command, otherwise its not a trunk port by definition. Graphic shows the port is carrying multiple VLANs to an end client, hence 'trunk' is required.
upvoted 3 times
bendarkel
2 years, 4 months ago
Perfect case is a hypervisor.
upvoted 1 times
...
...
...
BMP078
Most Recent 5 months, 1 week ago
DSW1()# interface f1/0/7 DSW1(config-int)# switchport trunk encapsulation dot1q DSW1(config-int)#Switchport mode trunk DSW1(config-int)#spanning-tree portfast trunk DSW1(config-int)#end DSW1# sh spanning-tree interface f1/0/7 Answer correct is A
upvoted 1 times
...
[Removed]
6 months, 2 weeks ago
Selected Answer: A
A is correct there are multiple vlans configured, it must be trunk.
upvoted 1 times
...
mgiuseppe86
1 year, 3 months ago
Selected Answer: A
"spanning-tree portfast trunk"is a hidden Cisco command. Because they dont want you to use it. This question is stupid Sw1(config-if)#spanning-tree portfas ? disable Disable portfast for this interface edge Enable portfast edge on the interface network Enable portfast network on the interface Sw1(config-if)#spanning-tree portfast trunk %Warning: portfast should only be enabled on ports connected to a single host. Connecting hubs, concentrators, switches, bridges, etc... to this interface when portfast is enabled, can cause temporary bridging loops. Use with CAUTION Sw1(config-if)#spanning-tree portfast? portfast
upvoted 2 times
...
HungarianDish_111
1 year, 9 months ago
Trunk port: sw1#sh span int g0/0 Vlan Role Sts Cost Prio.Nbr Type ------------------- ---- --- --------- -------- -------------------------------- VLAN0001 Root FWD 4 128.1 P2p Edge VLAN0002 Root FWD 4 128.1 P2p Edge VLAN0003 Root FWD 4 128.1 P2p Edge VLAN0004 Root FWD 4 128.1 P2p Edge VLAN0005 Root FWD 4 128.1 P2p Edge sw1# sw1#sh run **** interface GigabitEthernet0/0 switchport trunk encapsulation dot1q switchport mode trunk negotiation auto spanning-tree portfast edge trunk P.S.: "spanning-tree portfast trunk" is not available in CML in IOSvL2
upvoted 2 times
...
HungarianDish_111
1 year, 9 months ago
Access port (could have used spanning-tree link-type point-to-point, but it was not needed thanks to the duplex link to the server): sw1#sh span int g0/1 Vlan Role Sts Cost Prio.Nbr Type ------------------- ---- --- --------- -------- -------------------------------- VLAN0001 Desg FWD 4 128.2 P2p Edge sw1# sw1#sh run **** interface GigabitEthernet0/1 switchport mode access switchport nonegotiate negotiation auto spanning-tree portfast edge
upvoted 2 times
...
HungarianDish_111
1 year, 9 months ago
Selected Answer: A
You can get P2p Edge displayed under "show spanning-tree interface ..." in many ways, but only a trunk port is going to show more than one vlan. Thus, we need to use " spanning-tree portfast edge trunk" or " spanning-tree portfast trunk" depending on the IOS version. I labbed it up in CML to confirm the result.
upvoted 3 times
rogi2023
1 year, 4 months ago
perfectly explained, thx.
upvoted 1 times
...
...
nushadu
1 year, 12 months ago
Selected Answer: A
sw2#show runn int e0/0 Building configuration... Current configuration : 194 bytes ! interface Ethernet0/0 description to_e0/0_r2 switchport trunk encapsulation dot1q switchport trunk allowed vlan 30,50 switchport mode trunk duplex auto spanning-tree portfast trunk end sw2# sw2# sw2#show spanning-tree vlan 50 | i Edge Et0/0 Desg FWD 100 128.1 Shr Edge sw2#
upvoted 2 times
nushadu
1 year, 12 months ago
sw2#show spanning-tree int e0/0 Vlan Role Sts Cost Prio.Nbr Type ------------------- ---- --- --------- -------- -------------------------------- VLAN0030 Desg FWD 100 128.1 Shr Edge VLAN0050 Desg FWD 100 128.1 Shr Edge sw2#
upvoted 2 times
...
...
forccnp
2 years ago
Selected Answer: D
D is correct answer
upvoted 1 times
danman32
1 year, 5 months ago
That can't be correct. You don't designate bridge (switch) priority in interface configuration mode, you'd do so in global configuration mode.
upvoted 1 times
...
...
M_Abdulkarim
2 years, 4 months ago
Selected Answer: A
Provided answer is correct, however the command should include edge if it's required to have the exact same output like this: spanning-tree portfast edge trunk on the interface
upvoted 1 times
...
Aldebeer
2 years, 7 months ago
Selected Answer: A
look at the .. "Edge" port display.. The command is true. Ans: A
upvoted 3 times
...
Eddgar0
2 years, 7 months ago
Selected Answer: A
Is a trunk port because Multiple VLANs are in the same port and are edge type that means that the "spanning-tree portfast trunk" command has been issued. without the trunk option porfast command does not work on trunk ports
upvoted 5 times
...
Marving
2 years, 10 months ago
Selected Answer: C
the commands used with answer A,B and D are invalid commands. run a test on all of the in CML. the correct answer is C.
upvoted 3 times
hybl2467
2 years, 9 months ago
From ENCORE book, STP Portfast section: Portfast can be enabled on trunk links with the command spanning-tree portfast trunk. However, this command should be used only with ports that are connecting to a single host (such as a server with only one NIC that is running a hypervisor with VMs on different VLANs). Running this command on interfaces connected to other switches, bridges, and so on can result in a bridging loop.
upvoted 4 times
...
iGlitch
2 years ago
I abslotly agree with you, it has the same output in the question with addition to a warning msg. but cisco mentioned this in the OCG, and they want to confuse us with this, although both A and C are aplicable and have the same output, but most ppl chose to go with A.
upvoted 1 times
...
...
hybl2467
2 years, 10 months ago
There are more than 1 VLAN configured on the Edge port and that tell us that the port is a trunk, the correct answer is A
upvoted 3 times
...
diegodavid82
3 years, 1 month ago
Well They are two reasons for a port will state in DESG role: 1. When is a root bridge for a VLAN, the ports for this specific VLAN will be DESG ports. 2. After SPT calc the port result in DESG. Now, the output shows a specific port that has many VLANs, in this way is a trunk port but at the same time have "p2p EDGE" under column Type. So, the correct answer is "A", for sure.
upvoted 2 times
...
Hugh_Jazz
3 years, 2 months ago
Answer is A. This is a valid switch IF config: sw2(config-if)#spanning-tree portfast trunk %Warning: portfast should only be enabled on ports connected to a single host. Connecting hubs, concentrators, switches, bridges, etc... to this interface when portfast is enabled, can cause temporary bridging loops. Use with CAUTION sw2(config-if)# Now look at output based on my config: sw2#sh spanning-tree int G0/1 Vlan Role Sts Cost Prio.Nbr Type ---------------- ---- --- --------- -------- -------------------------------- VLAN0001 Altn FWD 4 128.25 P2p VLAN0010 Altn LRN 4 128.25 P2p VLAN0020 Altn LRN 4 128.25 P2p VLAN0030 Altn LSN 4 128.25 P2p VLAN0040 Altn LSN 4 128.25 P2p sw2#
upvoted 3 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