Layer 2 Security: practice questions

Port security, DHCP snooping and dynamic ARP inspection on switches.

CCNA 200-301 v1.1, exam topic 5.7 · part of 5. Security Fundamentals, 15% of the exam

The same material in the CCNA 200-301 v2.0 exam: Layer 2 Security

What this topic covers

Port security
Limits which and how many MAC addresses may use a port, and shuts the port or drops frames on a violation.
DHCP snooping
Drops DHCP server messages on untrusted ports and records which address each host was leased.
Dynamic ARP inspection
Checks ARP messages on untrusted ports against the DHCP snooping bindings to stop ARP spoofing.

Sample question

Try it, then open the answer. Our questions are written by AI and checked independently before they are published.

Easy Single choice

Refer to the exhibit. What is the cause of the port security violation on interface GigabitEthernet0/1?

SW1# show port-security interface GigabitEthernet0/1
Port Security              : Enabled
Port Status                : Secure-down
Violation Mode             : Shutdown
Maximum MAC Addresses      : 1
Total MAC Addresses        : 1
Configured MAC Addresses   : 0
Sticky MAC Addresses       : 0
Last Source Address:Vlan   : 0050.7966.6802:10
Security Violation Count   : 12
  1. A. Dynamically learned secure MAC addresses aged out while traffic was active.
  2. B. An ARP reply packet failed inspection against the DHCP snooping binding database.
  3. C. The active source MAC address count exceeds the maximum secure limit.
  4. D. The switch detected an unpermitted DHCP server message on the port.
Show the answer

Answer: C. The active source MAC address count exceeds the maximum secure limit.

On Cisco IOS switches, port security enforces a limit on the number of source MAC addresses permitted on an interface. The exhibit shows that Maximum MAC Addresses is set to 1. When an additional device transmits traffic with a second source MAC address (0050.7966.6802), the count of active addresses exceeds the allowed limit, triggering a violation and placing the port into the Secure-down (err-disabled) state.

Further reading