150 CCNA Switch Configuration MCQS with Explanation

61. Fill in the blank: The _____ command is used to remove an interface from a VLAN.

  • a) no switchport access vlan
  • b) no vlan
  • c) remove vlan
  • d) delete vlan

Answer: a) no switchport access vlan

The no switchport access vlan command removes an interface from the specified VLAN.

62. What is the purpose of the switchport mode dynamic auto command?

  • a) To set a port as an access port
  • b) To set a port as a trunk port
  • c) To negotiate trunking if the other end is set to trunk
  • d) To disable port trunking

Answer: c) To negotiate trunking if the other end is set to trunk

The switchport mode dynamic auto command configures a port to automatically negotiate trunking if the connected device also supports trunking.

63. Which command would you use to view the IP address assigned to a VLAN on a Cisco switch?

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

Answer: c) show interface vlan

The show interface vlan command displays information about the VLAN interface, including its IP address.

64. What is the role of a Layer 2 switch in a network?

  • a) To route packets between different networks
  • b) To switch packets within a single network
  • c) To filter IP addresses
  • d) To perform NAT

Answer: b) To switch packets within a single network


A Layer 2 switch operates at the Data Link layer, forwarding packets based on MAC addresses within a single network.

65. Fill in the blank: The command show ip interface brief is used to display a summary of the _____ and IP addresses on a switch.

  • a) VLANs
  • b) Interfaces
  • c) MAC addresses
  • d) Routes

Answer: b) Interfaces

The show ip interface brief command provides a summary of the interfaces and their corresponding IP addresses on a switch.

66. Which command would you use to erase the startup configuration on a Cisco switch?

  • a) erase config
  • b) erase running-config
  • c) erase startup-config
  • d) delete config

Answer: c) erase startup-config

The erase startup-config command removes the saved configuration from the switch’s NVRAM.

67. What does the no ip domain-lookup command accomplish?

  • a) It prevents the switch from resolving hostnames.
  • b) It disables IP address resolution.
  • c) It blocks DNS queries from the switch.
  • d) It removes the IP address from the switch.

Answer: a) It prevents the switch from resolving hostnames.

The no ip domain-lookup command stops the switch from attempting to resolve unknown hostnames into IP addresses.

68. Which protocol is used to securely access a switch over a network?

  • a) HTTP
  • b) Telnet
  • c) FTP
  • d) SSH

Answer: d) SSH


SSH (Secure Shell) is used to securely access a switch over a network, encrypting the communication.

69. Fill in the blank: The _____ command is used to configure a switch to forward traffic to multiple VLANs.

  • a) switchport mode access
  • b) switchport mode trunk
  • c) vlan trunking
  • d) vlan forwarding

Answer: b) switchport mode trunk

The switchport mode trunk command allows a switch port to forward traffic to and from multiple VLANs.

70. What is the purpose of the ip dhcp snooping feature on a switch?

  • a) To provide DHCP services
  • b) To prevent unauthorized DHCP servers
  • c) To monitor DHCP traffic
  • d) To filter IP addresses

Answer: b) To prevent unauthorized DHCP servers

ip dhcp snooping is a security feature that prevents unauthorized (rogue) DHCP servers from distributing IP addresses on the network.
We will be happy to hear your thoughts

Leave a reply