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 command is used to configure sticky MAC address learning in port security?

  1. (config)#switchport port-security mac-address sticky

  2. (config)#switchport port-security mac-address dynamic

  3. (config)#switchport port-security

  4. (config)#switchport port-security mac-address permanent

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

The command to configure sticky MAC address learning in port security is indeed `(config)#switchport port-security mac-address sticky`. This command allows the switch to dynamically learn the MAC addresses of devices connected to its ports and then automatically save these learned addresses in the running configuration. When sticky MAC is enabled, a switch port can learn the MAC addresses of devices connected to it, and retains those MAC addresses even when the switch is restarted or the configuration is temporarily removed, as opposed to dynamic MAC addressing which does not save learned addresses. This feature is particularly useful in environments where devices frequently connect and disconnect, as it enhances security by ensuring that only known devices can communicate through the port after they have been learned. The other options provided are related to port security but serve different functions. For instance, some commands enable basic port security without specifying the sticky feature, while others refer to MAC addresses and modes that don't encapsulate the sticky learning capability.