CCNA lab 4 of 46
How a switch learns MAC addresses and floods frames
Watch two switches build their MAC address tables, catch flooded broadcasts and unknown unicasts with a packet capture, tune aging and pin a printer with a static entry.
Run this lab
It needs Lite: its 6 nodes are set to 6 vCPU and 5,632 MB in total. That fits the free demo too.
In your workspace: Shared, then CCNA 200-301 guided labs, then 04 - How a switch learns MAC addresses and floods frames
- Level
- Beginner
- Time
- About 45 minutes
- Nodes need
- 6 vCPU, 5,632 MB
- Smallest plan
- Lite
The scenario
Lakeside Library has two switches on one floor: S1 by the front desk and S2 in the study area, joined by one cable. Every device is in VLAN 1 and the subnet 10.4.1.0/24. A label printer (H1, a small Linux box) is about to be installed on S2.
The IT volunteer wants to understand what the switches actually do with frames before anyone starts adding VLANs. You'll watch the MAC address tables fill up, prove flooding with a packet capture on the printer, change the aging timer and pin the printer to its port.
| Device | Port | Address | Notes |
|---|---|---|---|
| PC1 | S1 Gi0/1 | 10.4.1.11/24 | front desk |
| PC2 | S1 Gi0/2 | 10.4.1.12/24 | catalogue terminal |
| PC3 | S2 Gi0/1 | 10.4.1.13/24 | study area |
| H1 | S2 Gi0/2 | 10.4.1.14/24, MAC 02:00:00:00:04:44 (you set both) | label printer |
| S1 Gi0/0 | S2 Gi0/0 | – | inter-switch link |
Topology: PC1, PC2 — S1 Gi0/1, Gi0/2 · S1 Gi0/0 — S2 Gi0/0 · PC3, H1 — S2 Gi0/1, Gi0/2.
What you’ll practise
- Read and clear the MAC address table and explain each column
- Predict which port learns which MAC address across two switches
- Prove broadcast and unknown-unicast flooding with a packet capture
- Change the aging time and explain why entries expire
- Add a static MAC entry and explain the forward, filter and flood decisions
The tasks
- Look at an empty MAC address table
- Watch the tables fill up
- Catch flooding in the act
- Change the aging time
- Install the label printer and pin it to its port
- Summarise what the switch decides
The Lab Tasks pane has the scenario, these tasks, the checks to run, hints and the full solution.
Topology and devices
The network as it opens in EVE-NG, drawn from the lab’s own canvas, and the image each node runs.
Every link, as text
- S1
Gi0/0to S2Gi0/0 - S1
Gi0/1to PC1eth0 - S1
Gi0/2to PC2eth0 - S2
Gi0/1to PC3eth0 - S2
Gi0/2to H1eth0
| Node | Device | Image in Add Node | Set to |
|---|---|---|---|
| S1 | Cisco IOSvL2 | viosl2-adventerprisek9-m.ssa.high_iron_20200929 | 1 vCPU, 1,024 MB |
| S2 | Cisco IOSvL2 | viosl2-adventerprisek9-m.ssa.high_iron_20200929 | 1 vCPU, 1,024 MB |
| PC1 | VPCS host | Built in to EVE-NG | Counted as 1 vCPU, 1,024 MB |
| PC2 | VPCS host | Built in to EVE-NG | Counted as 1 vCPU, 1,024 MB |
| PC3 | VPCS host | Built in to EVE-NG | Counted as 1 vCPU, 1,024 MB |
| H1 | Alpine Linux | clbalpinebase-alpine-base-3-20-3 | 1 vCPU, 512 MB |
How to open this lab
Sign in to your workspace at
lab.cloudlabbox.com.In File Manager, open Shared, then the folder
CCNA 200-301 guided labs.Open
04 - How a switch learns MAC addresses and floods framesand start its nodes, then open Lab Tasks for the scenario and the steps.
The lab is read-only. You can start the nodes and configure the devices, but changes to the topology can’t be saved. To change it, rebuild it in your own folder.
More CCNA labs
Related labs in other courses
CloudLabBox is independent of Cisco. The lab follows exam topics and isn’t vendor training material; vendor names identify the exams and the images in the workspace.