200-301 · Question #727
Which command can you enter in a network switch configuration so that learned mac addresses are saved in configuration as they connect ?
The correct answer is B. Switch(confg-if)#Switch port-security Mac-address sticky. The switchport port-security mac-address sticky command saves dynamically learned MAC addresses to the running configuration as sticky MAC addresses.
Question
Which command can you enter in a network switch configuration so that learned mac addresses are saved in configuration as they connect ?
Options
- ASwitch(confg-if)#Switch port-security
- BSwitch(confg-if)#Switch port-security Mac-address sticky
- CSwitch(confg-if)#Switch port-security maximum 10
- DSwitch(confg-if)#Switch mode access
How the community answered
(47 responses)- A4% (2)
- B94% (44)
- C2% (1)
Why each option
The `switchport port-security mac-address sticky` command saves dynamically learned MAC addresses to the running configuration as sticky MAC addresses.
The `switchport port-security` command enables port security but does not, by itself, configure learned MAC addresses to be saved in the configuration.
The `switchport port-security mac-address sticky` command dynamically learns MAC addresses connected to the port and converts them into sticky secure MAC addresses, which are then saved in the running configuration and can persist across reboots if saved to startup configuration.
The `switchport port-security maximum 10` command sets the maximum number of secure MAC addresses allowed on a port but does not configure the learning or saving method.
The `switchport mode access` command configures an interface as an access port, but it is unrelated to port security or learning/saving MAC addresses.
Concept tested: Configuring sticky MAC addresses with port security
Source: https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst3750x_3560x/software/release/12-2_55_se/configuration/guide/3750x_cg/swportsec.html#wp1010377
Topics
Community Discussion
No community discussion yet for this question.