mediummultiple choiceObjective-mapped

An engineer applies this command on an access interface connected to a user PC: switchport port-security violation restrict. What happens if a second unauthorized MAC address appears on the port?

Question 1mediummultiple choice
Full question →

An engineer applies this command on an access interface connected to a user PC: switchport port-security violation restrict. What happens if a second unauthorized MAC address appears on the port?

Answer choices

Why each option matters

Good practice is not just finding the correct option. The wrong answers often show the exact trap the exam wants you to fall into.

A

Distractor review

The port immediately goes err-disabled.

That behavior matches shutdown mode, not restrict.

B

Best answer

Frames from the unauthorized MAC are dropped and the violation is counted while the port stays up.

That is the defining behavior of restrict.

C

Distractor review

The switch forwards the traffic but logs a warning.

Port security does not continue forwarding violating traffic.

D

Distractor review

The port transitions to listening and learning states.

Those are STP states, not port-security actions.

Common exam trap

Common exam trap: answer the scenario, not the keyword

A frequent exam trap is mistaking the restrict violation mode for shutdown mode. Many candidates incorrectly believe that a violation in restrict mode causes the port to go err-disabled immediately, but this behavior only occurs with the shutdown mode. Another common confusion is between restrict and protect modes; protect silently drops unauthorized frames without incrementing violation counters or generating alerts, whereas restrict does both. Misunderstanding these differences can lead to incorrect answers about port behavior during security violations. Remember, restrict mode blocks unauthorized MAC addresses but keeps the port active and counts violations, which is a key distinction in Cisco port security.

Technical deep dive

How to think about this question

Port security is a fundamental Cisco feature used to secure switch access ports by limiting the number of MAC addresses that can be learned or statically assigned on a port. This prevents unauthorized devices from connecting to the network through that port. When port security is enabled, the switch monitors incoming frames and compares their source MAC addresses against the allowed list. If a frame arrives from a MAC address that is not permitted, the switch triggers a violation event. The violation mode configured by the command 'switchport port-security violation restrict' determines the switch's response to unauthorized MAC addresses. In restrict mode, the switch drops frames from the violating MAC address, increments the violation counter, and can send notifications such as SNMP traps or syslog messages. Importantly, the port remains operational for authorized devices, ensuring network availability. This contrasts with shutdown mode, where the port is disabled (err-disabled) upon violation, requiring manual intervention to re-enable it. A common exam trap is confusing restrict mode with shutdown mode. While shutdown immediately disables the port on violation, restrict mode only blocks unauthorized traffic but keeps the port up. Another confusion is with protect mode, which drops unauthorized frames silently without counting violations or alerting administrators. Understanding these subtle differences is crucial for configuring port security policies that balance security needs with network uptime. Practically, restrict mode is often preferred in environments where continuous connectivity is critical but unauthorized access must be controlled.

KKey Concepts to Remember

  • Port security on Cisco switches controls access by limiting the number of MAC addresses allowed on an access port to prevent unauthorized devices from connecting.
  • The 'switchport port-security violation restrict' command configures the port to drop frames from unauthorized MAC addresses while keeping the interface operational and counting violations.
  • In restrict mode, the switch increments a violation counter and can generate SNMP traps or syslog messages to alert administrators of security breaches.
  • Unlike shutdown mode, restrict mode does not disable the port, allowing legitimate traffic from authorized MAC addresses to continue flowing.
  • The protect violation mode silently drops unauthorized frames without incrementing violation counters or generating alerts, differing from restrict mode behavior.
  • Port security violations occur when a device with a MAC address not learned or allowed on the port attempts to send traffic.
  • Understanding port security violation modes is critical for maintaining network availability while enforcing security policies on access layer switches.
  • The restrict mode balances security enforcement and network uptime by blocking unauthorized traffic but avoiding complete port shutdown.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Related practice questions

Related 200-301 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

More questions from this exam

Keep practising from the same exam bank, or move into a focused topic page if this question exposed a weak area.

FAQ

Questions learners often ask

What does this 200-301 question test?

Port security on Cisco switches controls access by limiting the number of MAC addresses allowed on an access port to prevent unauthorized devices from connecting.

What is the correct answer to this question?

The correct answer is: Frames from the unauthorized MAC are dropped and the violation is counted while the port stays up. — With restrict mode, the switch drops frames from the violating MAC, increments the violation counter, and can generate notifications. Unlike shutdown mode, the interface stays up. Unlike protect mode, the switch records the violation.

What should I do if I get this 200-301 question wrong?

Then try more questions from the same exam bank and focus on understanding why the wrong options are tempting.

Discussion

Loading comments…

Sign in to join the discussion.