350-401 · Question #488
Refer to the exhibit. How was spanning-tree configured on this interface?
The correct answer is A. By entering the command spanning-tree portfast trunk in the interface configuration mode.. Explanation Option A is correct because when a switch interface is configured as a trunk port, the standard spanning-tree portfast command alone is rejected by IOS - you must explicitly append the trunk keyword (spanning-tree portfast trunk) to enable PortFast on a trunk interfac
Question
Exhibits
Options
- ABy entering the command spanning-tree portfast trunk in the interface configuration mode.
- BBy entering the command spanning-tree portfast in the interface configuration mode
- CBy entering the command spanning-tree mst1 vlan 10,20,30,40 in the global configuration mode
- DBy entering the command spanning-tree vlan 10,20,30,40 root primary in the interface
How the community answered
(67 responses)- A87% (58)
- B3% (2)
- C1% (1)
- D9% (6)
Explanation
Explanation
Option A is correct because when a switch interface is configured as a trunk port, the standard spanning-tree portfast command alone is rejected by IOS - you must explicitly append the trunk keyword (spanning-tree portfast trunk) to enable PortFast on a trunk interface, which is what the exhibit's output reflects.
Option B is wrong because spanning-tree portfast (without trunk) only applies to access ports; using it on a trunk port generates a warning and may not take effect, and the exhibit clearly shows a trunk configuration. Option C is incorrect because spanning-tree mst1 vlan 10,20,30,40 is not a valid IOS command syntax - MST instance-to-VLAN mapping uses spanning-tree mst configuration mode. Option D is wrong because spanning-tree vlan ... root primary is a global configuration command used to set the root bridge priority, not an interface-level PortFast command.
Memory Tip: Think "Trunk needs the trunk keyword" - any time PortFast is applied to a trunk port, IOS demands you explicitly acknowledge it by adding
trunkto the command, preventing accidental misconfigurations.
Topics
Community Discussion
No community discussion yet for this question.

