Cisco CCNA mock exam questions sample test – Question 369

.Which of the following commands will let you see the current operating mode for a switch port?

A. show interface fastethernet0/1 detail
B. show controllers fastethernet0/1
C. show interface fastethernet0/1 status
D. show interfaces fastethernet0/1 switchport

Correct Answer: D

Explanation:
The show interfaces switchport command is used to verify the operational and configured status of a switch port. The output of the command is follows:
switch# show interfaces fastethernet0/1 switchport
Name: Fa0/1
Switchport: Enabled
Administrative Mode: static access
Operational Mode: static access
Administrative Trunking Encapsulation: dot1q
Operational Trunking Encapsulation: dot1q
Negotiation of Trunking: Off
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 1 (default)
Voice VLAN: none
<>
This output indicates that the operational mode of the port is “static access,” which means the port is currently operating as an access port.
The show controllers command is used to view hardware-related information on router and switch interfaces. It is useful for troubleshooting and diagnosing issues with interfaces. It
does not display the operational status of the switch port.
The show interface fastethernet0/1 detail and show interface fastethernet0/1 status commands are incorrect because they are not valid Cisco IOS commands.
Objective:
Infrastructure Management
Sub-Objective:
Use Cisco IOS tools to troubleshoot and resolve problems
References: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/interface/command/ir-cr-book.html