Cisco CCNA (200-301) free question 9 / 10 · Domain 4: Network Services and Security
Port security is enabled on an access port with every other setting at its default. The user connects a small switch and a second device sends traffic with a new source MAC address. What happens on the port?
- The port learns the second address, as two secure MAC addresses are allowed by default
- The port is error-disabled, as one secure address is allowed and shutdown is the default mode
- The port stays up and drops frames from the new address, without a syslog message or an SNMP trap
- The port stays up, drops frames from the new address and logs a syslog message and an SNMP trap
Show the answer and explanation
Answer: B
Why this is correct
With the default port security configuration, the maximum number of secure MAC addresses per port is one, and the violation mode is shutdown. A second source MAC address is therefore a violation, and the port shuts down and becomes error-disabled.
Why the other options are wrong
"The port stays up and drops frames from the new address, without a syslog message or an SNMP trap" … That is the protect behavior, which is not the default. The default violation mode is shutdown.
"The port stays up, drops frames from the new address and logs a syslog message and an SNMP trap" … That is restrict mode, which sends an SNMP trap and a syslog message and increments the violation counter but does not shut the port down. The default is shutdown.
"The port learns the second address, as two secure MAC addresses are allowed by default" … By default the maximum number of secure MAC addresses per port is one address.
Key points
An error-disabled secure port can be recovered with the errdisable recovery cause psecure-violation command, or by entering shutdown and no shutdown on the interface.
Go to the Cisco CCNA (200-301) practice app (10 free questions; purchase unlocks all questions)