150 CCNA Switch Configuration MCQS with Explanation

131. Which command is used to display the status of the Spanning Tree Protocol for all VLANs?

  • a) show spanning-tree
  • b) show stp
  • c) show spanning-tree all
  • d) show stp vlan

Answer: a) show spanning-tree

The show spanning-tree command provides the status of the Spanning Tree Protocol for all VLANs.

132. Fill in the blank: To configure an interface for access mode, use the command _____ mode access.

  • a) switchport
  • b) interface
  • c) vlan
  • d) port

Answer: a) switchport

The switchport mode access command configures an interface to operate in access mode, allowing traffic for a single VLAN.

133. Which command would you use to verify the IP configuration of a VLAN interface?

  • a) show ip interface vlan
  • b) show vlan ip
  • c) show interface vlan
  • d) show vlan

Answer: a) show ip interface vlan

The show ip interface vlan command displays the IP configuration of a VLAN interface.

134. Fill in the blank: The command show vlan brief displays a summary of all VLANs, including their _____ and associated ports.

  • a) Status
  • b) IP addresses
  • c) MAC addresses
  • d) Routing protocols

Answer: a) Status


The show vlan brief command provides a summary of VLANs, including their status and the ports assigned to each VLAN.

135. Which command shows the history of commands entered in the CLI?

  • a) show history
  • b) history
  • c) show commands
  • d) display history

Answer: b) history

The history command displays the list of commands entered during the current session.

136. Fill in the blank: The command switchport trunk native vlan is used to configure the native VLAN for a _____ port.

  • a) Access
  • b) Trunk
  • c) Routed
  • d) Dynamic

Answer: b) Trunk

The switchport trunk native vlan command configures the native VLAN for a trunk port, which handles untagged traffic.

137. Which command is used to verify the port security configuration on a switch?

  • a) show port-security
  • b) show security
  • c) show port
  • d) show security config

Answer: a) show port-security

The show port-security command displays the port security configuration and status.

138. The command ip access-list standard is used to create a _____ access list.

  • a) Named
  • b) Standard
  • c) Extended
  • d) Dynamic

Answer: b) Standard


The ip access-list standard command is used to create a named standard access list.

139. Which command displays the MAC address of a switch port?

  • a) show mac address-table
  • b) show mac-address
  • c) show interfaces mac
  • d) show port mac

Answer: a) show mac address-table

The show mac address-table command displays the MAC address table, including the MAC addresses associated with each port.

140. Fill in the blank: The _____ command displays the DHCP bindings for IP addresses assigned to devices.

  • a) show ip dhcp bindings
  • b) show dhcp
  • c) show ip dhcp
  • d) show dhcp bindings

Answer: a) show ip dhcp bindings

The show ip dhcp bindings command displays the DHCP bindings, showing which IP addresses have been assigned to devices.