ARP in a packet capture

An ARP request, its reply and the ping that follows, read field by field from a packet capture between two routers.

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

  1. R1 to R2: ARP request: who has 192.168.10.2? (broadcast)
  2. R2 to R1: ARP reply: 192.168.10.2 is at R2's MAC
  3. R1 to R2: ICMP echo request, sent to R2's MAC
  4. R2 to R1: ICMP echo reply

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.

FieldValueWhat it means
Ethernet destinationff:ff:ff:ff:ff:ffThe broadcast address. R1 does not know R2's MAC yet, so every device on the link receives this frame.
Ethernet source7e:9e:da:24:25:a7R1's MAC address on this interface.
Opcoderequest (1)This is a question.
Sender MAC7e:9e:da:24:25:a7R1 includes its own MAC, so R2 can answer without asking back.
Sender IP192.168.10.1R1's IPv4 address.
Target MAC00:00:00:00:00:00Unknown. This is the value R1 is asking for.
Target IP192.168.10.2The address R1 wants to reach.

Frame 2: ARP reply

R2 answers R1 directly. Values from one run of this lab.

FieldValueWhat it means
Ethernet destination7e:9e:da:24:25:a7R1's MAC, learned from the request. The reply is unicast, not broadcast.
Opcodereply (2)This is the answer.
Sender MACce:e5:4f:91:4e:45R2's MAC address: the value R1 asked for.
Sender IP192.168.10.2The 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.

FieldValueWhat it means
Ethernet destinationce:e5:4f:91:4e:45R2's MAC, the sender MAC from the ARP reply.
Ethernet typeIPv4 (0x0800)The frame now carries an IPv4 packet.
IPv4 destination192.168.10.2The same address R1 asked about in the ARP request.
ICMP type8 (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.

Related learning resources

Sources