The lab
Two devices, R1 and R2. The capture is on the GigabitEthernet0/0 link between R1 and R2.
R1 and R2 share one Ethernet link: R1 is 192.168.10.1 and R2 is 192.168.10.2. Neither router has an ARP entry for the other yet.
R1 pings R2. Before R1 can put the echo request in an Ethernet frame, it needs R2's MAC address, so the first frames on the link are ARP, not ICMP.
The exchange
Reading the frames
Frame 1: ARP request
R1 asks every device on the link who owns 192.168.10.2. Values from one run of this lab.
| Field | Value | What it means |
|---|---|---|
| Ethernet destination | ff:ff:ff:ff:ff:ff | The broadcast address. R1 does not know R2's MAC yet, so every device on the link receives this frame. |
| Ethernet source | 7e:9e:da:24:25:a7 | R1's MAC address on this interface. |
| Opcode | request (1) | This is a question. |
| Sender MAC | 7e:9e:da:24:25:a7 | R1 includes its own MAC, so R2 can answer without asking back. |
| Sender IP | 192.168.10.1 | R1's IPv4 address. |
| Target MAC | 00:00:00:00:00:00 | Unknown. This is the value R1 is asking for. |
| Target IP | 192.168.10.2 | The address R1 wants to reach. |
Frame 2: ARP reply
R2 answers R1 directly. Values from one run of this lab.
| Field | Value | What it means |
|---|---|---|
| Ethernet destination | 7e:9e:da:24:25:a7 | R1's MAC, learned from the request. The reply is unicast, not broadcast. |
| Opcode | reply (2) | This is the answer. |
| Sender MAC | ce:e5:4f:91:4e:45 | R2's MAC address: the value R1 asked for. |
| Sender IP | 192.168.10.2 | The address that owns that MAC. |
Frame 3: ICMP echo request
With the MAC resolved, R1 sends the ping. Values from one run of this lab.
| Field | Value | What it means |
|---|---|---|
| Ethernet destination | ce:e5:4f:91:4e:45 | R2's MAC, the sender MAC from the ARP reply. |
| Ethernet type | IPv4 (0x0800) | The frame now carries an IPv4 packet. |
| IPv4 destination | 192.168.10.2 | The same address R1 asked about in the ARP request. |
| ICMP type | 8 (Echo (ping) request) | A ping. |
What to take away
The MAC address in the ARP reply is the destination MAC of the echo request that follows.
Run it yourself
Open the same lab, run the commands and read the capture on the GigabitEthernet0/0 link between R1 and R2 yourself.
Open this lab Free. Sign in to start.
