Open the lab

[ YOUR LAB FILE ]

Download the starting topology, then work through the lesson in SwitchLab.

Download SwitchLab Lab (.swlab)

  1. Save the .swlab file without renaming its extension.
  2. Open SwitchLab. Import and export controls currently require a desktop-width window. On a smaller screen, Tools → Fit brings the topology into view.
  3. Select Import Sandbox (folder icon), choose the downloaded file, and confirm the device and cable counts below.
  4. Select a device, then choose Open device on desktop or its name in the bottom bar on smaller screens. Select CLI for switches/routers or Desktop → Terminal for PCs. Enter enable only when the prompt ends in >.
  5. Follow this page beside the simulator. Use a free account to export your work. Reimport the original download to restart; export any work you want to keep first.

Prerequisites

  • Open a SwitchLab device CLI and use enable to enter privileged EXEC mode.
  • Read the addressing and physical cabling tables before changing configuration.

Follow the CCNA study path · Browse all SwitchLab labs

Topology

Trace an Ethernet Link and MAC Learning: starting network imported into the SwitchLab sandbox.
Starting topology captured in SwitchLab. Select the image to view it at full size.

3 devices · 2 links

Scenario

A new technician needs to document how two workstations communicate on a small unsegmented LAN. Both links already work; your task is to connect CLI observations to the actual cable map.

Objectives

  • Map each physical host cable to its switch port.
  • Relate administrative state and dynamic MAC learning to observed delivery.

CCNA blueprint

200-301 v1.1 objectives — this lab covers the following specific skills, not every subtopic in the domain.

  • 1.4 — Observe interface administrative state; physical duplex and collision measurements are outside this lab.
  • 1.13.a — Observe source MAC learning on a switch.

Starting information

  • Both PCs use 192.168.1.0/24 in VLAN 1. No router or default gateway is needed.
  • PC1 connects to SW1 g0/1; PC2 connects to g0/2. Preserve this cabling.
  • This lab observes link state and MAC learning; it does not measure collisions, duplex faults or physical cable quality.
HostIPv4 addressMaskGateway
PC1192.168.1.10255.255.255.0None
PC2192.168.1.20255.255.255.0None
Device / portDevice / port
PC1 / eth0SW1 / g0/1
PC2 / eth0SW1 / g0/2

Tasks

  1. On SW1 run enable, show interfaces status and show mac address-table. Map g0/1 and g0/2 to the cable table; record what the switch knows before you generate traffic.
  2. On PC1 run ping 192.168.1.20; on PC2 run ping 192.168.1.10. These hosts share a subnet and need no default gateway for this exchange.
  3. Return to SW1 and run show mac address-table dynamic. Identify each learned address, VLAN 1 and its host-facing port. MAC learning records source addresses; it is not a list of configured IP routes.
  4. Label SW1 g0/1 with description DESK_PC1 using interface configuration mode. Re-run the interface configuration and both pings; export your annotated topology.

Useful commands

show interfaces status
show running-config interface g0/1
copy running-config startup-config

Progressive hints

Hint 1

Begin with the cable map and interface status; do not infer the cause from a failed ping alone.

Hint 2

A configured shutdown keeps an interface unavailable even when a cable is present. A working switch learns source MAC addresses as hosts transmit.

Hint 3

Use interface g0/1 on SW1; set description DESK_PC1, then inspect show mac address-table dynamic after the host pings.

Verification

  • PC1 and PC2 can ping each other in both directions.
  • SW1 g0/1 is enabled and remains an access port in VLAN 1.
  • After both PCs transmit, the dynamic MAC table identifies host entries on g0/1 and g0/2.
  • SW1 g0/1 has description DESK_PC1.

Solution / walkthrough

Show Solution

Use enable only from a > prompt; if already at #, begin with configure terminal.

SW1

Preserve the existing flat LAN while documenting or enabling the intended host-facing port. Generate host traffic before interpreting the MAC table.

enable
configure terminal
interface g0/1
description DESK_PC1
end
copy running-config startup-config

Run every verification check above after the changes. A saved configuration alone does not prove packet delivery.

Related labs

Related articles and tools

Next recommended lab

Restore a Shutdown Access Interface