350-701 · Question #797
Refer to the exhibit. A network security engineer must enable and configure port security on a Cisco Catalyst switch. Up to 20 secure MAC addresses must be support below the threshold and a syslog…
The correct answer is B. switchport port-security violation restrict. To configure port security to support up to 20 secure MAC addresses and log a syslog message upon violation, the switchport port-security violation restrict command is required.
Question
Refer to the exhibit. A network security engineer must enable and configure port security on a Cisco Catalyst switch. Up to 20 secure MAC addresses must be support below the threshold and a syslog message is logged. Which command completes the configuration? Switch(config)#interface gigabitethernet1/0/ Switch(config-if)#switchport mode access Switch(config-if)#switchport port-security Switch(config-if)#switchport port-security in
Options
- Aswitchport port-security violation disable
- Bswitchport port-security violation restrict
- Cswitchport port-security vidlation protect
- Dswitchport port-security violation shutdown
How the community answered
(52 responses)- A15% (8)
- B71% (37)
- C8% (4)
- D6% (3)
Why each option
To configure port security to support up to 20 secure MAC addresses and log a syslog message upon violation, the `switchport port-security violation restrict` command is required.
The `switchport port-security violation disable` command is not a valid port security violation mode; the correct options are protect, restrict, and shutdown.
The `switchport port-security violation restrict` command causes the interface to drop packets from unauthorized MAC addresses once the maximum number of secure MAC addresses has been reached, logs a syslog message, and increments the violation counter, fulfilling the requirement to log a message.
The `switchport port-security violation protect` command drops packets from unauthorized sources but does not log a syslog message or increment the violation counter, which fails to meet the requirement.
The `switchport port-security violation shutdown` command puts the interface into an error-disabled state upon violation, which is a more severe action than just logging a message and fails to specify the MAC address limit.
Concept tested: Cisco Port Security violation modes
Source: https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst3750/software/release/12-2_55_se/configuration/guide/scg/swethsec.html#wp1026075
Topics
Community Discussion
No community discussion yet for this question.