nerdexam
Cisco

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.

Submitted by yuki_2020· Mar 30, 2026N/A

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)
  • A
    15% (8)
  • B
    71% (37)
  • C
    8% (4)
  • D
    6% (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.

Aswitchport port-security violation disable

The `switchport port-security violation disable` command is not a valid port security violation mode; the correct options are protect, restrict, and shutdown.

Bswitchport port-security violation restrictCorrect

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.

Cswitchport port-security vidlation protect

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.

Dswitchport port-security violation shutdown

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

#Cisco Port Security#Port Security Violation Modes#Switch Security

Community Discussion

No community discussion yet for this question.

Full 350-701 Practice