151. Which command is used to configure the maximum number of MAC addresses allowed on a port?
- a)
switchport port-security maximum
- b)
port-security max-mac
- c)
switchport max-mac-address
- d)
port-security max-addresses
Answer: a) switchport port-security maximum
The
switchport port-security maximum
command configures the maximum number of MAC addresses allowed on a port.
152. To enable SSH access to a switch, you must first configure a _____ domain name.
- a) Host
- b) Network
- c) DNS
- d) VLAN
Answer: a) Host
To enable SSH access, you need to configure a domain name for the switch, which is typically done using the
ip domain-name
command.
153. Which command is used to configure the native VLAN for a trunk port?
- a)
switchport trunk native vlan
- b)
switchport trunk vlan
- c)
switchport vlan native
- d)
trunk vlan native
Answer: a) switchport trunk native vlan
The
switchport trunk native vlan
command sets the native VLAN for a trunk port.
154. Fill in the blank: The command show ip access-lists
displays the configured _____ lists on a switch.
- a) ACL
- b) VLAN
- c) Route
- d) Security
Answer: a) ACL
The
show ip access-lists
command displays the configured IP access control lists (ACLs) on the switch.
155. Which command is used to enable SSH on a switch?
- a)
ip ssh version 2
- b)
enable ssh
- c)
ssh enable
- d)
configure ssh
Answer: a) ip ssh version 2
The
ip ssh version 2
command enables SSH version 2 on the switch.
156. Fill in the blank: The _____ command is used to check the current switch port status and VLAN assignments.
- a)
show vlan
- b)
show interfaces
- c)
show port status
- d)
show port vlan
Answer: b) show interfaces
The
show interfaces
command provides detailed status information about switch ports and their VLAN assignments.
157. Which command is used to display the status of the Spanning Tree Protocol for a specific VLAN?
- a)
show spanning-tree vlan
- b)
show stp vlan
- c)
show vlan stp
- d)
show spanning-tree
Answer: a) show spanning-tree vlan
The
show spanning-tree vlan
command displays the Spanning Tree Protocol status for a specific VLAN.
158. Fill in the blank: The command show ip interface brief
displays a summary of all _____ interfaces and their IP addresses.
- a) Physical
- b) VLAN
- c) Routed
- d) Virtual
Answer: b) VLAN
The
show ip interface brief
command provides a summary of all interfaces, including VLAN interfaces, and their IP addresses.
159. Which command would you use to display the MAC address table with VLAN information?
- a)
show mac address-table
- b)
show vlan mac-address
- c)
show interfaces mac
- d)
show mac-address
Answer: a) show mac address-table
The
show mac address-table
command displays the MAC address table along with VLAN information.