71. Which command is used to set a switch port as a member of VLAN 10?
- a)
vlan 10
- b)
switchport mode vlan 10
- c)
switchport access vlan 10
- d)
vlan access 10
Answer: c) switchport access vlan 10
The
switchport access vlan 10
command assigns the port to VLAN 10.
72. The command no switchport
is used to configure an interface as a _____ interface.
- a) Routed
- b) Access
- c) Trunk
- d) Layer 2
Answer: a) Routed
The
no switchport
command converts a Layer 2 switch port into a Layer 3 routed port.
73. What is the function of the spanning-tree
protocol in a switched network?
- a) To forward traffic to multiple VLANs
- b) To block loops in the network
- c) To provide IP address resolution
- d) To encrypt network traffic
Answer: b) To block loops in the network
The Spanning Tree Protocol (STP) is used to prevent loops in a switched network by blocking redundant paths.
74. Which of the following commands is used to view the MAC address table on a switch?
- a)
show mac-address-table
- b)
show mac table
- c)
show arp
- d)
show interfaces mac
Answer: a) show mac-address-table
The
show mac-address-table
command displays the MAC addresses that the switch has learned and the ports they are associated with.
75. Fill in the blank: The _____ command is used to configure an IP address on a switch’s management interface.
- a)
ip address
- b)
interface ip
- c)
vlan ip address
- d)
set ip address
Answer: a) ip address
The
ip address
command is used within the interface configuration mode to set an IP address on the switch’s management interface.
76. What is the purpose of the show interfaces status
command?
- a) To display the interface status and settings
- b) To show IP address configuration
- c) To list the MAC addresses associated with each interface
- d) To display VLAN membership
Answer: a) To display the interface status and settings
The
show interfaces status
command provides a summary of each interface’s operational status, speed, duplex settings, and VLAN assignment.
77. Which command is used to enable port security on a switch port?
- a)
switchport mode access
- b)
switchport security
- c)
switchport port-security
- d)
switchport secure
Answer: c) switchport port-security
The
switchport port-security
command is used to enable port security, which helps control access to the network by limiting the number of MAC addresses on a port.
78. Fill in the blank: The _____ command is used to configure a static route on a Layer 3 switch.
- a)
ip route
- b)
route static
- c)
static route
- d)
set route
Answer: a) ip route
The
ip route
command is used to configure static routes on a Layer 3 switch.
79. Which of the following is the correct command to view the current VLANs configured on a Cisco switch?
- a)
show vlan
- b)
show vlan-config
- c)
show vlan-brief
- d)
show vlan-list
Answer: a) show vlan
The
show vlan
command provides a detailed view of the VLANs configured on the switch, including their status and associated ports.
80. What does the spanning-tree portfast
command do when applied to a switch port?
- a) Enables faster IP address assignment
- b) Prevents the port from causing loops
- c) Immediately transitions the port to forwarding state
- d) Converts the port into a trunk port
Answer: c) Immediately transitions the port to forwarding state
The
spanning-tree portfast
command is used to immediately transition the port to the forwarding state, bypassing the usual STP listening and learning states. It is typically used on access ports to prevent delays in connecting end devices.