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.
Best answer
shutdown
This is correct because shutdown mode places the port into an error-disabled state when a violation occurs.
Distractor review
protect
This is wrong because protect drops unauthorized traffic but does not usually error-disable the port.
Distractor review
restrict
This is wrong because restrict can log and count violations while keeping the port up.
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.
CCNA subnetting practice questions
Practise IPv4 subnetting, CIDR, masks, host ranges and subnet selection.
CCNA OSPF practice questions
Practise OSPF neighbours, router IDs, metrics, areas and routing-table interpretation.
CCNA VLAN practice questions
Practise VLANs, access ports, trunks, allowed VLANs and switching scenarios.
CCNA STP practice questions
Practise spanning tree, root bridge election, port roles and STP troubleshooting.
CCNA EtherChannel practice questions
Practise LACP, PAgP, port-channel behaviour and bundle requirements.
CCNA ACL practice questions
Practise standard and extended ACLs, permit/deny logic and traffic filtering.
CCNA NAT practice questions
Practise static NAT, dynamic NAT, PAT and inside/outside address translation.
CCNA DHCP practice questions
Practise DHCP scopes, relay, leases and troubleshooting.
CCNA show ip route practice questions
Practise routing-table output, longest-prefix match, AD and route selection.
CCNA show interfaces trunk practice questions
Practise trunk verification and VLAN forwarding across switches.
CCNA wireless security practice questions
Practise WLAN security, authentication and wireless architecture concepts.
CCNA IPv6 practice questions
Practise IPv6 addressing, routes, neighbour discovery and common IPv6 exam traps.
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.
Question 1
A router learns the same prefix from both OSPF and EIGRP. Which route is installed by default?
Question 2
A router shows this output: R1#show ip ospf neighbor Neighbor ID Pri State Dead Time Address Interface 10.1.1.2 1 FULL/DR 00:00:34 192.168.12.2 GigabitEthernet0/0 10.1.1.3 1 2WAY/DROTHER 00:00:39 192.168.12.3 GigabitEthernet0/0 Which statement is correct?
Question 3
What is the OSPF metric called?
Question 4
A non-root switch has two uplinks toward the root bridge. One path has a lower total STP cost than the other. What role will the lower-cost uplink have?
Question 5
A router interface applies this ACL inbound: 10 deny tcp any any eq 80 20 permit ip any any A user reports that web browsing to a server by IP address fails, but ping works. Which statement best explains the behavior?
Question 6
A router learns route 198.51.100.0/24 from OSPF with AD 110 and also has a static route to the same prefix configured with AD 150. Which route is installed?
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
Sign in to join the discussion.