On a user access port, port security is configured with a maximum of 2 MAC addresses and violation mode restrict. A third unauthorized device is connected through a small unmanaged switch. What happens?
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.
Distractor review
The port goes err-disabled immediately.
That behavior matches shutdown mode, not restrict.
Best answer
Traffic from the unauthorized MAC is dropped, but the interface stays up.
That is the expected behavior in restrict mode.
Distractor review
The switch learns the third MAC after aging out the first one instantly.
Aging does not occur instantly just because a new device appears.
Distractor review
All traffic from the port is flooded to the VLAN for analysis.
Port security does not work that way.
Common exam trap
Common exam trap: answer the scenario, not the keyword
A common exam trap is confusing the restrict violation mode with shutdown mode. Candidates often mistakenly believe that any violation causes the port to go err-disabled immediately. However, restrict mode only drops unauthorized traffic and keeps the interface up, allowing legitimate devices to continue communicating. This misunderstanding can lead to selecting the wrong answer, especially when the question specifies restrict mode. Remember that shutdown mode is the one that disables the port on violation, not restrict mode. Misreading the violation mode or assuming default behavior without verification is a frequent pitfall.
Technical deep dive
How to think about this question
Port security is a Layer 2 feature on Cisco switches that restricts input to an interface by limiting and identifying MAC addresses of the stations allowed to access the port. It helps prevent unauthorized devices from connecting to the network by controlling which MAC addresses can send traffic through a user access port. When port security is enabled, the switch learns and stores allowed MAC addresses, either dynamically or statically, and enforces limits on the number of MAC addresses per port. The violation mode determines the switch's response when an unauthorized MAC address is detected. In restrict mode, the switch drops traffic from unauthorized MAC addresses but keeps the interface operational. It also increments a violation counter and can generate syslog messages or SNMP traps for network monitoring. This contrasts with shutdown mode, where the port is immediately disabled (err-disabled) upon violation. The maximum MAC address limit is strictly enforced, so connecting a third device through an unmanaged switch does not allow learning beyond the configured limit. A common exam trap is confusing restrict mode with shutdown mode. Many candidates incorrectly assume that any violation causes the port to shut down immediately. However, restrict mode is designed to maintain network availability by dropping unauthorized traffic without disabling the port. Practically, this allows network administrators to monitor violations and respond without disrupting legitimate users. Understanding this distinction is crucial for correctly answering questions about port security behavior under different violation modes.
KKey Concepts to Remember
- Port security on a user access port limits the number of MAC addresses that can be learned or allowed on that interface to prevent unauthorized access.
- When port security violation mode is set to restrict, the switch drops traffic from unauthorized MAC addresses but keeps the interface operational.
- In restrict mode, the switch increments a violation counter and can generate syslog messages or SNMP traps for network monitoring.
- Shutdown violation mode causes the port to go err-disabled immediately upon detecting an unauthorized MAC address, unlike restrict mode.
- Connecting multiple devices through an unmanaged switch does not bypass the maximum MAC address limit configured on a port security-enabled interface.
- Port security violation modes determine how the switch reacts to unauthorized MAC addresses, affecting network availability and security monitoring.
- The switch does not instantly age out learned MAC addresses to accommodate new ones when the maximum limit is reached on a port security-enabled interface.
- Understanding the difference between restrict and shutdown violation modes is essential to correctly predict port security behavior in Cisco networks.
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 a user access port limits the number of MAC addresses that can be learned or allowed on that interface to prevent unauthorized access.
What is the correct answer to this question?
The correct answer is: Traffic from the unauthorized MAC is dropped, but the interface stays up. — In restrict mode, frames from unknown MAC addresses are dropped, the violation counter increments, and logging or SNMP traps can be generated. Unlike shutdown mode, the interface does not go err-disabled.
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.