PracticeLabs
Week 1Lesson 4Required14 min estimated0% progress

Ethernet, MAC Addresses & ARP

Read an Ethernet frame's addresses, trace how ARP resolves an IP to a MAC before delivery, watch a switch learn where everything is, and find out what ping actually sends.

Lesson orientation

What you'll learn (5 objectives)~14 min: video → lesson → check → apply → lab prep

Learning objectives

  • Identify the fields of an Ethernet frame and state what the FCS protects against
  • Explain the structure of a 48-bit MAC address and tell unicast from broadcast
  • Trace an ARP request and reply, and say when a host resolves a gateway instead of a destination
  • Describe how a switch builds its MAC address table and when it floods rather than forwards
  • Explain what ping sends, what a reply proves, and what a timeout does not prove

Terms you will see

Ethernet frameEtherTypeFCSOUIUnicastBroadcastARPARP cacheMAC address tableUnknown unicastFloodingIngress portICMPEcho RequestEcho Reply

Time breakdown

  • Read the notes8 min
  • Encapsulation Lab tool4 min
  • Review and retain2 min

Assigned video

Opens on YouTube
Recommended video

Ethernet LAN Switching (Day 5)

By Jeremy's IT Lab · Opens externally on YouTube

Watch time not yet confirmed for this video — the notes below cover everything this lesson requires.

The link opens in a new browser tab. Return here when you finish watching.

Watch for these concepts

  • The Ethernet frame drawn out field by field
  • How a switch fills in its MAC address table as traffic arrives
  • What happens to a frame whose destination the switch has not learned yet
  • ARP shown running on real devices before the first ping succeeds

Go beyond the video

The assigned video introduces the idea. CCNA Practice Labs completes the learning path: clarify core concepts, explore how each device behaves, visualize the communication path, check your understanding, and prepare for hands-on lab work.

Watch the concept → understand it → visualize it → practice it → apply it.

The Ethernet frame

In Lesson 2 the packet got wrapped in a frame before it went out on the wire. This is that frame. Ethernet keeps it deliberately small and fixed: a handful of fields, each with one job.

Ethernet frame fields
FieldWhat it holdsWhy it is there
Destination MACThe address of the next device to receive this frameTells every device on the segment whether this frame is for them
Source MACThe address of the device that sent itLets the receiver reply — and lets a switch learn where the sender is
EtherTypeA code for what is inside — 0x0800 for IPv4, 0x0806 for ARPTells the receiver which protocol should unwrap the payload
PayloadThe packet being carriedThe actual cargo
FCSA checksum calculated over the whole frameDetects corruption in transit

The FCS — frame check sequence — is worth a moment. The sender calculates it from the frame's contents and appends it. The receiver recalculates it and compares. If the two do not match, something changed in transit, and the frame is silently discarded. Nothing asks for it to be resent at this layer; Ethernet simply drops corrupt frames and lets a higher layer notice the gap. This is the only circumstance in which a switch discards a frame outright.

The MAC address

A MAC address is 48 bits long, conventionally written as six pairs of hexadecimal digits — for example 00:1A:2B:3C:4D:5E. It splits cleanly in half. The first three octets are the OUI, the organizationally unique identifier, which is assigned to the manufacturer of the interface. The last three identify the specific adapter that manufacturer built. Together they are meant to be globally unique, and the address is burned into the interface rather than configured.

Two kinds of destination matter right now. A unicast MAC addresses exactly one interface, and only that interface accepts the frame. The broadcast MAC, written FF:FF:FF:FF:FF:FF — every bit set to one — is accepted by every device on the local network at once. That is the address you use when you need to reach everybody because you do not yet know who you are looking for, which is exactly the situation ARP is built for.

Why a router rewrites it every hop
Lesson 2 said Layer 2 addresses are replaced at every hop while Layer 3 addresses survive. Now the reason is visible: a MAC address identifies one interface on one local network. It has no meaning anywhere else, so it cannot possibly describe a device several networks away. That is what the IP address is for.

ARP fills the gap between IP and MAC

A sending host has a problem. It knows the destination's IP address — that is what the application gave it — but the frame it has to build needs a destination MAC address, and nothing has told it what that is. ARP, the Address Resolution Protocol, closes that gap.

  1. The host checks its ARP cache, a table of the IP-to-MAC mappings it has already learned. If the address is there, it uses it and sends immediately.
  2. If it is not, the host broadcasts an ARP request — destination MAC FF:FF:FF:FF:FF:FF — asking, in effect, “whoever owns this IP address, tell me your MAC.” Every device on the local network receives it.
  3. Every device except the owner examines the request, sees a different IP address, and discards it. The owner answers with a unicast ARP reply, sent directly back to the asker, carrying its MAC address.
  4. The host stores the mapping in its cache and builds the frame it wanted to send in the first place. Later sends to the same address skip straight to step 1 until the cache entry expires.
The two ARP messages
MessageFrame typeDestination MACWho sees it
ARP requestBroadcastFF:FF:FF:FF:FF:FFEvery device on the local network
ARP replyUnicastThe requester's MACOnly the device that asked
ARP only ever resolves local addresses
This is the rule people get wrong. An ARP broadcast reaches the local network and stops there — routers do not forward it. So when the destination is on another network, the host does not ARP for the far-away host at all. It ARPs for its default gateway, and hands the frame to the router. The router then repeats the whole process on the next network along. If you remember one thing about ARP, remember that it never leaves the local network.

How a switch learns where everything is

A switch is not told what is plugged into it. It works that out from the traffic, and it does so using the one field guaranteed to be correct: the source MAC address of every frame it receives.

When a frame arrives, the switch reads its source MAC and records that address against the port the frame came in on. That entry goes into its MAC address table. After a device has sent even a single frame, the switch knows exactly where it lives. Nothing needs to be configured for this to happen.

Then the switch looks at the destination MAC and makes one of three decisions:

  • The destination is in the table — the switch forwards the frame out that one port and no others. This is the normal case, and it is why a switched network does not waste bandwidth the way a hub did.
  • The destination is not in the table — this is an unknown unicast frame, and the switch floods it out every port except the one it arrived on, on the reasonable assumption that the destination is somewhere and will answer. When it does answer, the switch learns its port from that reply and stops flooding.
  • The destination is the broadcast address FF:FF:FF:FF:FF:FF — the switch floods it out every port except the one it arrived on, because that is precisely what a broadcast is supposed to reach.
Why the arrival port is always excluded
In both flooding cases the switch sends the frame everywhere except the port it came in on — the ingress port. The reason is simple: the device on that port is the one that just sent the frame, so it already has it. Echoing it back would be pure waste, and on a network with more than one path between switches it is how loops begin. Excluding the ingress port is a rule with no exceptions.

That is the whole of switch behaviour you need this week — enough to predict what a switch will do with any given frame, and enough for the lab. Week 3 picks it up again and adds how long entries survive, what happens when the table fills, and the commands for inspecting it.

ICMP, and what ping actually sends

Everything so far has been about carrying application data. ICMP — the Internet Control Message Protocol — is different: it is how devices report problems and test reachability. It is not a transport protocol and it has no port numbers; an ICMP message is carried directly inside an IP packet, which makes it a Layer 3 protocol, sitting alongside IP rather than on top of it.

Its most familiar use is ping. When you ping an address, your device sends an ICMP Echo Request to it. A device that receives one and is willing to answer sends back an ICMP Echo Reply. That is the entire exchange — a question and an answer, with nothing else attached.

What a reply proves, and what a timeout does not
A successful ping proves something quite specific and quite strong: the packet reached the destination and the reply found its way back. Both directions work at Layer 3. A timeout is weaker evidence than people assume. It tells you a reply did not arrive — but that could mean the destination is switched off, or that the request got there and the return path is broken, or that a firewall along the way is configured to discard ICMP. Plenty of perfectly healthy servers do not answer pings on purpose. Treat a failed ping as a reason to investigate, never as proof that a host is down.

One detail matters for the lab. On a local network, before the very first ping can be sent at all, the host has to resolve the destination's MAC address — so ARP runs first, and the Echo Request only goes out once the reply comes back. That is why the first ping in a sequence sometimes times out while the rest succeed: the first one was waiting for ARP. You are about to watch exactly that happen, one frame at a time.

What you should retain

  • Frame fields: destination MAC, source MAC, EtherType, payload, FCS. A failed FCS is the one reason a frame is silently dropped.
  • A MAC address is 48 bits: the OUI half identifies the vendor, the rest identifies the adapter. FF:FF:FF:FF:FF:FF is the broadcast address.
  • ARP: broadcast request, unicast reply, cached result. It resolves local addresses only.
  • Remote destination? The host resolves the default gateway's MAC, never the far host's.
  • A switch learns from source MACs, forwards known unicast to one port, and floods unknown unicast and broadcast out every port except the one the frame arrived on.
  • ping sends an ICMP Echo Request and expects an Echo Reply. A reply proves both directions work; a timeout proves much less than it seems to.
Interactive tool
Required~4 min

Encapsulation Lab

Expand the Ethernet header on a same-network scenario and find the destination MAC, source MAC, and EtherType fields you just read about — on a real frame rather than in a table.

Section quiz

Check this section before moving on

Required8 questions~8 min

Local Delivery: Cabling, Ethernet & ARP

The quiz opens on its own page so you can focus on it. It is a Week 1 milestone, tracked separately from this lesson's own completion.

Topics covered

  • Cable selection and interface status pairs
  • Ethernet frame fields and MAC address structure
  • ARP request, reply, and the local-only rule
  • When a switch floods rather than forwards
Start the quiz
Lab preparation

Prepare for the lab

Available nowWeek 1

Week 1 Lab 1 — ARP & ICMP on the LAN

You now know every protocol this lab asks you to identify. In Packet Tracer's Simulation mode you will watch ARP resolve a local host, then follow the ICMP Echo Request and Echo Reply across the switch, one frame at a time.

This lesson prepares you to:

  • Recognising the broadcast address on a real ARP request
  • Identifying which host replies to ARP and which discard it
  • Watching the switch learn source MAC addresses and stop flooding
  • Explaining why the arrival port is excluded from flooding
  • Tracing ICMP Echo Request and Echo Reply after ARP resolves

Take the Local Delivery quiz first — it checks the exact material the lab assumes. The lab walkthrough is subscriber content; its overview and objectives are open to everyone.

Open the lab

Study deeper

Topic guides extend this lesson — they do not replace the first-party walkthrough above.

OSI Model & Packet Flow

For the complete Ethernet frame field reference and the frames-versus-packets comparison