Cisco Certified Network Associate (CCNA) Practice Exam

Disable ads (and more) with a membership for a one time $4.99 payment

Prepare for the Cisco Certified Network Associate (CCNA) Practice Exam. Test your knowledge with our interactive quizzes featuring multiple choice questions, hints, and explanations. Equip yourself for success!

Practice this question and more.


What is the command to enable port security?

  1. (config)#switchport port-security

  2. (config)#enable port-security

  3. (config)#interface port-security

  4. (config)#access port-security

The correct answer is: (config)#switchport port-security

The command to enable port security is indeed "switchport port-security." This command is utilized in the configuration mode of a switch interface to activate the port security feature. By using this command, you can set policies such as limiting the number of MAC addresses that can be learned on a port, defining what happens when a violation occurs (like shutting down the port), and specifying which MAC addresses are allowed to connect. This command is essential for enhancing the security of a network by preventing unauthorized access at the switch port level. Using it correctly can help secure a network by allowing only devices with recognized MAC addresses to communicate through the switch, ensuring that rogue devices cannot simply connect and gain access to the network. The other options do not represent valid configurations for enabling port security in Cisco switches, making them unsuitable for this task.