WalkOnAWireNetworking labs
Interactive packet lab · Layer 2

ARP fundamentals, packet by packet

Follow one resolution from start to finish: Host A broadcasts a request, SW1 floods it and learns from the source MAC, Host B answers by unicast, and the data frame follows. The last stage shows what changes when the destination is on another subnet.

  • Why requests are flooded and replies are unicast
  • What a switch learns, and from which field
  • How a remote destination uses the gateway’s MAC

Lab addressing

Host A
10.10.10.11/24 · AA:AA:AA:AA:AA:11
Host B
10.10.10.22/24 · BB:BB:BB:BB:BB:22
Gateway
10.10.10.1/24 · CC:CC:CC:CC:CC:01
Remote
10.20.20.55 (off-subnet)

Live ARP packet walkthrough

Follow each Ethernet frame across the topology. Watch the broadcast flood, unicast reply and routed next hop while the ARP and MAC tables change.

LIVE ARP WALKTHROUGH

Follow the packet

Stage 1 of 5
Gi0/1Gi0/2Gi0/24 Host A10.10.10.11 Host B10.10.10.22 Switch SW1VLAN 10 · learns src MAC Gateway10.10.10.1
ARP request (broadcast)ARP reply or data (unicast)Frame to gateway

Switch decision

Takeaway

Frame on the wire

What happens

01

Broadcast domain

ARP requests stay in their Layer 2 VLAN; a router does not forward the broadcast to another subnet.

02

Two separate tables

The switch FDB maps MAC → port. A host ARP cache maps IPv4 address → MAC. Neither replaces the other.

03

Next-hop resolution

For a remote IP, the host resolves its gateway MAC; routers rewrite the Ethernet header on the next segment.

Three cases worth knowing

These are the points engineers most often mix up. Each button jumps the simulator to the matching stage.

Same subnet, MAC unknown

Host A broadcasts a request for 10.10.10.22. SW1 floods it to every other port in the VLAN and learns Host A’s MAC on the ingress port.

The reply is unicast

The request carries Host A’s sender MAC, so Host B replies straight to it. SW1 learns Host B’s MAC only when that reply arrives on Gi0/2.

Remote destination

For 10.20.20.55 Host A never ARPs for the remote host. It resolves the gateway’s MAC and sends the frame there, with the IP destination unchanged.

Quiz

Advanced packet-level scenarios and troubleshooting decisions. Choose one answer per question, then inspect the technical explanation.