ARP maps an IPv4 address to a MAC address on the local network. A host compares the destination with its own address and mask. If the destination is local, it ARPs for that host directly. If it is on another subnet, it ARPs for the default gateway instead and sends the frame to the gateway's MAC address, while the IP packet still carries the final destination. The router then repeats the process towards the next hop.
Why interviewers ask this
This question checks that you understand how layers two and three work together, which is essential for troubleshooting. Many problems come down to a wrong mask, a wrong gateway or stale ARP entries, and you cannot spot them without understanding this process. The interviewer wants to hear that MAC addresses change at every hop while IP addresses stay the same end to end, unless NAT rewrites them.
How to structure your answer
- Explain what ARP resolves and why it is needed.
- Describe the local versus remote decision using the mask.
- Explain what changes and what stays the same at each hop.
- Give common faults this explains.
Example answer
Ethernet delivers frames to MAC addresses, but applications use IP addresses, so ARP fills the gap on a local segment. A host broadcasts a request asking who has a given IP address, the owner replies with its MAC address, and the host caches the answer for a while. Before that, the host decides whether the destination is local by comparing it with its own address and subnet mask. If it is local, it ARPs for the destination directly. If it is remote, it ARPs for its default gateway and sends the frame to the gateway's MAC address, while the IP header still holds the real destination. The router strips the frame header, looks up the route and builds a new frame for the next hop with new MAC addresses. So MAC addresses change at every hop, while IP addresses stay the same end to end unless NAT is involved. That explains a lot of faults. A wrong mask makes a host think a remote device is local, so it ARPs and gets no answer. A duplicate IP address shows up as an ARP entry flapping between two MAC addresses.
Walking into this interview soon? GhostPilot listens to your live call, spots the question the moment it is asked, and puts a structured answer on your screen in real time. Try it on your next mock, or grab a $29 Session Pass, no subscription, for the real thing.
See how it worksFollow-up questions to expect
- What is gratuitous ARP used for?
- What replaces ARP in IPv6?
- How would you find a device with a duplicate IP address on your network?
Related network engineer questions
Your interviewer will ask their own version of this. Paste your actual job description into the free Question Predictor and get the 20 questions that role is most likely to ask, with what each one is really probing.
Predict my questions