You wish to configure port security on your switch allowing
You wish to configure port security on your switch, allowing the switch to learn which MAC address is connected to each port. After setting the interfaces in switchport mode access and turning on port security with switchport port-security, which command should be entered next?
A. switchport port-security mac-address
B. switchport port-security mac-address address
C. switchport port-security mac-address learn
D. switchport port-security mac-address sticky
Solution
D is correct. The sticky parameter allows the switch to learn and save the source MAC address from the first received frame as the only MAC allowed to use the port.
A, B, and C are incorrect. A is incorrect because this command is missing a parameter after mac-address. B is incorrect because this command manually configures an address as the secured MAC. C is incorrect because this command does not exist.
