Switching Basics lab practice
How a switch learns MAC addresses, how to read interface status, and how to fix speed, duplex and administratively down ports.
8 labs · 10 lessons · 6 commands · 3 projects
A switch forwards Ethernet frames by MAC address. It learns which address lives behind which port from the source of every frame it receives, forwards known destinations out of one port, and floods unknown ones within the VLAN.
Most switching problems are physical or administrative before they are anything else: a port that is shut, err-disabled, cabled to the wrong place, or negotiating the wrong speed or duplex. The commands here are the ones that find those.
Hands-on labs
- Assigning Access Ports to a VLAN (free)
- Hard-Coding Interface Speed and Duplex (free)
- Configure an Entire Floor (Router + Switch) (free)
- Administratively Shutting an Interface (Pro)
- Restoring an Administratively Down Port (Pro)
- Interface Duplex & Speed Errors (Pro)
- Fixing a Duplex Mismatch (Pro)
- Re-Cabled Uplink Lands on an Unconfigured Port (Pro)
Lessons, in order
- Layer 2 Switching (2. Network Access, 19 min)
- Read show interfaces status for link, VLAN and speed (2. Network Access, 12 min)
- Describe ports and read one interface's configuration (2. Network Access, 12 min)
- Shut down and re-enable a port (2. Network Access, 11 min)
- Repair a disabled port with no shutdown (2. Network Access, 13 min)
- Configure a range of ports at once and shut the unused ones (2. Network Access, 12 min)
- Read detailed interface output and set speed and duplex (2. Network Access, 14 min)
- Follow one ping through its Ethernet frame (2. Network Access, 11 min)
- Predict whether a switch forwards, floods or filters (2. Network Access, 11 min)
- See ARP resolve before the first ping (2. Network Access, 10 min)
Commands
- show ip interface brief — Lists every interface with its IPv4 address and its Layer 1 and Layer 2 status in one line each.
- show interfaces status — Shows each switch port’s link state, VLAN, duplex, speed and media type in one table.
- show interfaces — Shows the full detail for an interface: line status, MAC address, MTU, duplex and speed, traffic rates and error counters.
- show interfaces description — Lists every interface with its status, protocol and the description configured on it.
- show mac address-table — Shows which MAC addresses the switch has learned, in which VLAN, on which port.
- show ip arp — Shows the router’s ARP cache: which MAC address it has resolved for each IPv4 address, and on which interface.
Related projects
- Small Office / Home Office Network — Hollis & Fane, a two-person bookkeeping practice, is moving into a converted shop with a fibre line and no network. Give them the smallest network that works: one router, one switch, the two staff PCs, addresses handed out automatically, and a route to the internet.
- Small Enterprise Office — Corran Surveyors has outgrown its single 24-port switch: twelve staff, a plotter and a file server on one floor. Add a second switch, join the two without creating a loop, and keep everyone, including the file server, on one addressed subnet behind the router.
- Reception and Back-Office VLANs on a Single Access Switch — A small practice has one access switch, PRACTICE-SW, and needs its public reception machines kept away from the back-office systems holding client records. REC-PC1 and REC-PC2 sit on jacks 1 and 2, BO-PC1 and BO-PC2 on jacks 3 and 4. Build VLAN 10 (RECEPTION, 192.168.10.0/24) and VLAN 20 (BACKOFFICE, 192.168.20.0/24) on that single switch and prove they are separate. Pick the platform: the canvas opens on a Cisco Catalyst; for Junos, Arista EOS or ArubaOS-CX, delete PRACTICE-SW, place that vendor's switch and cable the four PCs to its jacks 1-4 (ge-0/0/0-3, Ethernet1-4 or 1/1/1-4). The checks follow the PCs, so every platform is graded the same way. The VLAN model is the same on all four; only the syntax changes.