Cisco 200-301: Ethernet Switching and Layer 2 Forwarding — Study Guide

Part of the Cisco CCNA 200-301 — Study Guide. Practice with verified answers in the Cisco exam hub, or take timed practice tests on ExamRoll.io.

Overview

Ethernet switches forward Layer 2 frames within a broadcast domain by learning and consulting a MAC address table (also called the CAM table). Switches make per-frame decisions based on destination MAC, VLAN, and the state of the egress interface. Correct behavior relies on accurate MAC learning, stable link parameters, and protections against loops and Layer 2 abuse. This section explains operational logic, design trade-offs, failure modes, and verification methods relevant to production switching.

MAC Learning, Forwarding, Filtering, and Flooding

Switches learn source MAC addresses by inspecting the source MAC and VLAN on ingress and associating that tuple with the receiving interface. Entries are dynamic by default and age out after an idle timer (commonly 300 seconds on Cisco campus switches). Aging removes unused entries, freeing space and helping mobility; too-short timers increase unknown-unicast flooding, while too-long timers risk stale forwarding and larger tables.

Forwarding logic per frame:

Static MAC entries can be configured for deterministic forwarding or to pin devices in high-security contexts. Overuse of static entries complicates operations; prefer dynamic learning with controls.

Common failure modes:

Useful commands:

Access Ports, Operational States, and Port Security

Access ports carry a single VLAN and connect to endpoints. Configure them explicitly to remove ambiguity and reduce trunk-related risk.

Examples: interface range gigabitEthernet1/0/1-24 switchport mode access switchport access vlan 10 spanning-tree portfast spanning-tree bpduguard enable

Operational link states reported by the switch:

Port security limits how many MAC addresses can appear on an access port and what to do on violation. This mitigates MAC-flooding, unauthorized hubs, and casual device moves.

Example with sticky learning: interface gigabitEthernet1/0/10 switchport mode access switchport access vlan 10 switchport port-security switchport port-security maximum 2 switchport port-security mac-address sticky switchport port-security violation restrict

Sticky MACs learned become secure MAC entries written to the running configuration; save the configuration to persist across reloads. You can also configure static secure MACs.

Violation modes:

Recovery and visibility:

Trade-offs: protect/restrict maintain link but may mask issues; shutdown is noisy but unmistakably enforces policy and stops all traffic from the compromised segment.

Forwarding Decisions, Counters, Duplex/Speed, and Troubleshooting

Forwarding correctness begins with accurate learning. When traffic is not delivered, verify whether the destination MAC actually exists in the table, matches the correct port and VLAN, and that the ingress and egress ports are operational.

Core troubleshooting steps:

Interface counters and what they indicate:

Duplex and speed negotiation:

CDP and LLDP neighbor discovery help identify what is connected, the remote port, VLANs, and sometimes IP addressing. Use them during turn-up and troubleshooting, and disable where security policy forbids device discovery leakage.

Examples:

Layer 2 Attack Awareness, Storm Control, and Loop Symptoms

Basic Layer 2 threats and mitigations:

Storm control limits broadcast, multicast, and unknown-unicast rates to cap storms while preserving normal traffic.

Example: interface gigabitEthernet1/0/20 storm-control broadcast level 1.00 0.50 storm-control multicast level 1.00 0.50 storm-control action shutdown

Levels are expressed as a percentage of link bandwidth or in pps, depending on platform. Configure a recovery plan if using shutdown as the action:

Loop symptoms and indicators:

Prevent loops with a resilient design (no unmanaged L2 interconnections), spanning tree features (PortFast on access, BPDU Guard to shut down ports receiving BPDUs), and technologies like UDLD on fiber to detect unidirectional failures. Verification commands:

Switch Verification and Troubleshooting Commands

Operational visibility is critical for Layer 2 health. Commonly used commands:

When a frame forwarding issue is suspected, reproduce the traffic and observe counters in real time with terminal monitor and successive show commands to pinpoint the fault domain (endpoint, cable, interface, VLAN, switch fabric).

Practical Problem Scenario

Contoso Health Labs experiences intermittent voice call drops and poor desktop performance on VLAN 20 after adding several IP phones and small unmanaged switches in cubicle areas.

Approach:

  1. Baseline and isolate the impact.
  1. Validate duplex/speed and cabling.
  1. Identify and contain loops.
  1. Implement storm control on access ports.
  1. Enforce port security with sticky MACs on user-facing ports.
  1. Constrain multicast flooding with IGMP snooping.
  1. Verify neighbor topology and clean up discovery exposure.
  1. Monitor and validate stability.

Network Fundamentals and Physical Infrastructure · All domains · VLANs

Practice these questions → · Timed practice on ExamRoll.io →

Pass the whole exam — not just this question

You found this answer. Get every verified question and explanation in one place, and save hours of prep. Free to start.

Pass your exam →

Related guides

All-in-one access

One subscription. Every exam.

Every plan unlocks unlimited answer search, practice tests, AI explanations, and the full resource library — in 20+ languages.

Monthly
24.87
Just €0.83/day
Everything included:
  • Unlimited answer search
  • Unlimited practice tests
  • AI-powered explanations
  • Full resource library
  • 20+ languages
  • Weekly content updates
  • Rewards & referrals
  • Priority support
Start free trial

No credit card required*

Best value
12 months
179.87
Just €0.49/daySave 40%
Everything included:
  • Unlimited answer search
  • Unlimited practice tests
  • AI-powered explanations
  • Full resource library
  • 20+ languages
  • Weekly content updates
  • Rewards & referrals
  • Priority support
Start free trial

No credit card required*

✓ Free plan included · ✓ Cancel anytime · ✓ All plans unlock the full product