Turbocharge Your IT Journey: Ace the Cisco Certified Network Pro Test 2026 – Network Ninja Style!

Question: 1 / 655

What command is used to configure port security on a switch?

ip access-list standard

switchport port-security

The command used to configure port security on a switch is "switchport port-security." This command enables port security on a specific interface, allowing the switch to control access to the network by limiting the number of devices that can connect to a given port.

When port security is enabled, administrators can set parameters such as the maximum number of MAC addresses allowed on the port, specify secure MAC addresses, and configure actions for security violations (e.g., shutting down the port, dropping packets, or generating alerts). This feature is critical for preventing unauthorized access and mitigating potential network threats, enhancing overall network security.

The other options are related to different functionalities. The command for configuring access lists is not relevant to port security. "Interface mode trunk" pertains to setting a port as a trunk link for VLANs, which does not involve security capabilities over device connections. Lastly, the command "enable switchport" is not a standard command used in the Cisco IOS and therefore does not apply to port security configurations.

Get further explanation with Examzify DeepDiveBeta

interface mode trunk

enable switchport

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy