mediummultiple choiceObjective-mapped

A switchport should automatically disable itself if too many MAC addresses are learned beyond the configured secure limit. Which port-security violation mode causes that behavior?

Question 1mediummultiple choice
Full question →

A switchport should automatically disable itself if too many MAC addresses are learned beyond the configured secure limit. Which port-security violation mode causes that behavior?

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

Best answer

shutdown

This is correct because shutdown mode places the port into an error-disabled state when a violation occurs.

B

Distractor review

protect

This is wrong because protect drops unauthorized traffic but does not usually error-disable the port.

C

Distractor review

restrict

This is wrong because restrict can log and count violations while keeping the port up.

D

Distractor review

dynamic

This is wrong because dynamic is not the standard violation mode that causes error-disable behavior.

Common exam trap

Common exam trap: answer the scenario, not the keyword

A frequent exam trap is mistaking the restrict violation mode for shutdown because both modes react to security violations by dropping unauthorized traffic. However, restrict mode only drops the frames and logs the violation while keeping the port operational, which can mislead candidates into thinking the port is disabled. The key difference is that shutdown mode error-disables the port, requiring manual or automatic recovery. Confusing these modes can lead to incorrect answers, especially since shutdown is the default and most severe violation response in Cisco port security.

Technical deep dive

How to think about this question

Port security is a Layer 2 security feature on Cisco switches that restricts input to an interface by limiting and identifying MAC addresses of the stations allowed to access the port. The core concept is to prevent unauthorized devices from connecting to the network by controlling which MAC addresses can send traffic through a switchport. This is essential in environments where physical access to switch ports is possible, such as in enterprise LANs. The switch learns MAC addresses dynamically or can be configured with static secure MAC addresses, and it enforces a maximum number of secure MAC addresses per port. The violation mode configured on a port determines the switch’s response when the number of learned MAC addresses exceeds the configured limit or when an unauthorized MAC address attempts to access the port. The shutdown mode is the default and most restrictive violation mode. When a violation occurs under shutdown mode, the switchport immediately transitions into an error-disabled state, effectively disabling the port and stopping all traffic. This behavior ensures a strong security posture by preventing any further unauthorized access until the port is manually re-enabled or automatically recovered via errdisable recovery mechanisms. Other modes like protect and restrict allow the port to remain operational but differ in how they handle unauthorized traffic and logging. A common exam trap is confusing the restrict and shutdown modes because both respond to violations but with different severity. Restrict mode drops unauthorized frames and logs the event but keeps the port active, which might mislead candidates into thinking it disables the port. Shutdown mode, however, disables the port entirely, which is a more visible and impactful security response. Practically, shutdown mode is used when administrators want immediate and clear notification of security violations, requiring manual intervention to restore service, thus preventing potential security breaches from continuing unnoticed.

KKey Concepts to Remember

  • Port security on Cisco switches limits the number of MAC addresses learned on a switchport to prevent unauthorized access and enhance network security.
  • The shutdown violation mode causes the switchport to enter an error-disabled state, effectively disabling the port when the secure MAC address limit is exceeded.
  • The protect violation mode silently drops unauthorized frames without generating a log or disabling the port, allowing normal traffic from secure MAC addresses to continue.
  • The restrict violation mode drops unauthorized frames and generates a syslog message and SNMP trap but keeps the port operational.
  • Port security violation modes differ in severity and response, with shutdown being the most severe by disabling the port to prevent further unauthorized access.
  • When a port is error-disabled due to shutdown mode, manual intervention or errdisable recovery is required to re-enable the port.
  • Understanding port security violation modes is critical for designing secure Layer 2 access networks and responding appropriately to security breaches.
  • Cisco switches learn MAC addresses dynamically on access ports, and port security enforces limits to mitigate MAC flooding attacks and unauthorized device connections.

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 limits the number of MAC addresses learned on a switchport to prevent unauthorized access and enhance network security.

What is the correct answer to this question?

The correct answer is: shutdown — Shutdown is the violation mode that error-disables the port. In plain language, when the switch sees a port-security violation under shutdown mode, it reacts by taking the interface out of service rather than simply dropping frames quietly. That behavior is useful when the administrator wants a clear and strong response to unauthorized devices. This matters because port security has several violation modes and they do not behave the same way. Restrict and protect can keep the interface up, while shutdown is the mode associated with the most visible response.

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.