AP Networking • IPv4 • Layer 2/Layer 3

ARP Explained for AP Networking

Learn exactly how ARP resolves local IPv4 next hops to MAC addresses, why remote traffic resolves the gateway instead of the destination server, and how ARP evidence exposes VLAN, subnet-mask, duplicate-IP, and security problems.

Independent AP Networking resource • Updated 2026-09-10 • Includes 24 free digital flashcards
ARP rule: first decide whether the destination is local or remote; that determines which IPv4 next hop must be resolved to a MAC address.
Practice with Flashcards
Core model

ARP answers one local question: which MAC address should receive this IPv4 packet next?

Address Resolution Protocol connects Layer 3 IPv4 addressing to Layer 2 Ethernet delivery. A host may know the IPv4 destination, but an Ethernet frame still needs a destination MAC address. ARP supplies that local next-hop mapping. The crucial phrase is local next hop: ARP does not discover the MAC address of a remote server several routers away.

ARP reasoning chain: Destination IP → Local or Remote? → Next-Hop IP → ARP Request → ARP Reply → Cache Entry → Ethernet Frame → Next Network Dependency.
Request and reply

ARP request is broadcast because the sender does not yet know the target MAC

Suppose a host at 192.168.1.25/24 wants to send to 192.168.1.1. It knows the target IPv4 address but not the Layer 2 address. The host sends an ARP request to the Ethernet broadcast MAC address, asking which device owns 192.168.1.1.

Ethernet destination: ff:ff:ff:ff:ff:ff ARP question: "Who has 192.168.1.1? Tell 192.168.1.25"

The device that owns 192.168.1.1 responds with its MAC address. The sender can then place the IPv4 packet inside an Ethernet frame addressed to that MAC.

Same-subnet path

For a local destination, ARP resolves the destination host itself

Host A is 192.168.10.20/24 and Host B is 192.168.10.50/24. Because both addresses fall inside 192.168.10.0/24, Host A treats Host B as local.

Host A: 192.168.10.20/24 Destination: 192.168.10.50 Local? YES Next-hop IP = 192.168.10.50 ARP target = 192.168.10.50 Ethernet destination = Host B MAC

The default gateway is not the forwarding target for ordinary same-subnet communication.

Remote-subnet path

For a remote destination, ARP resolves the gateway—not the remote server

Now Host A at 192.168.10.20/24 wants to reach 203.0.113.40. The host sees that 203.0.113.40 is outside its local /24, so it sends the packet to the default gateway, perhaps 192.168.10.1.

IPv4 destination: 203.0.113.40 Next hop: 192.168.10.1 ARP target: 192.168.10.1 Ethernet destination: gateway MAC Important: The IP destination remains 203.0.113.40.

This is one of the clearest ways to separate Layer 2 forwarding from Layer 3 routing.

ARP is local

Routers break the ARP domain because each routed link has its own Layer 2 next hop

An ARP broadcast is not forwarded across ordinary router boundaries. Each router removes the incoming Layer 2 frame, makes a Layer 3 forwarding decision, then constructs a new Layer 2 frame for the next local segment.

PC → Router A → Router B → Server PC ARPs for Router A Router A resolves next hop on its own link Router B resolves server or next hop on its own link PC never ARPs for the remote server MAC.
ARP cache

ARP caches improve efficiency but should not be treated as permanent truth

Hosts keep recently learned mappings so they do not broadcast an ARP request before every packet. Dynamic entries age or refresh according to operating-system behavior. Static entries can also exist.

Entry typeHow createdOperational meaning
DynamicLearned from ARP exchangeTemporary and refreshable
StaticManually configuredPersists until changed/removed
IncompleteResolution attemptedNo usable reply learned yet

Swipe horizontally to see the ARP-cache table.

Reading ARP evidence

An ARP table shows local neighbor knowledge—not the complete network path

Commands such as arp -a or modern neighbor-table commands can show IPv4-to-MAC mappings learned by the host. A remote Internet server will usually not appear because the client only needs the MAC address of its local gateway.

Example local table: 192.168.10.1 00-11-22-33-44-55 192.168.10.50 00-aa-bb-cc-dd-ee Interpretation: gateway and local host are known Layer 2 neighbors.
Wrong subnet mask

A wrong mask can make a host ARP for something that should have been routed

Suppose Host A is really on 192.168.10.64/27 but is mistakenly configured as /24. A destination at 192.168.10.100 should be remote under /27, yet the /24 configuration makes Host A believe it is local.

Correct /27: 192.168.10.70 → 192.168.10.100 Remote → send to gateway Wrong /24: 192.168.10.70 → 192.168.10.100 Believed local → ARP directly

If no direct Layer 2 path exists, the host can fail even though the gateway and remote destination are healthy.

No ARP reply

Missing ARP response is a Layer 2 clue, but not a complete diagnosis

If a client repeatedly ARPs for its gateway and receives no reply, check whether the gateway interface is up, the client is in the correct VLAN, the switch is forwarding the broadcast correctly, and the configured gateway address is valid.

Strong boundary: no reply proves the client did not learn the expected mapping from those attempts. It does not, by itself, prove the gateway hardware is dead.
Duplicate IPv4 address

One IPv4 address mapping to different MAC addresses over time can reveal a conflict

If two hosts claim 192.168.10.50, clients may alternately learn different MAC addresses for that same IP. Traffic can appear intermittent because packets go to whichever MAC is currently cached.

10:01 192.168.10.50 → 00-aa-aa-aa-aa-aa 10:03 192.168.10.50 → 00-bb-bb-bb-bb-bb Same IP, different MAC identities = duplicate-IP evidence worth investigating

Compare ARP tables, switch MAC tables, DHCP lease records, and physical endpoint identity to locate the conflict.

ARP vs. switch MAC table

ARP tables and switch forwarding tables answer different questions

ArtifactMapsUseful for
ARP/neighbor tableIPv4 address → MAC addressWho owns this local next-hop IP?
Switch MAC/CAM tableMAC address → switch port/VLANWhere did the switch learn this MAC?

Swipe horizontally to see the artifact comparison.

Used together, these tables can turn an IP symptom into a specific switch-port investigation.

VLAN evidence

ARP failure can expose wrong VLAN placement

A client can broadcast ARP only within its Layer 2 broadcast domain. If the client and gateway are in different VLANs because of a switchport or SSID mapping error, the request may never reach the intended gateway interface.

Client expected: VLAN 20 Actual port: VLAN 30 Client ARPs for VLAN 20 gateway Broadcast remains in VLAN 30 Expected gateway never sees request
DHCP interaction

Bad DHCP settings can lead to perfectly normal ARP behavior for the wrong next hop

A DHCP server can give a client the wrong default gateway or wrong subnet mask. ARP may then resolve exactly what the client was told to resolve—even though the overall configuration is wrong.

Important: a successful ARP reply proves the Layer 2 mapping worked. It does not prove the IP configuration itself is correct.
Gateway checkpoint

If the gateway resolves correctly, preserve that known-good boundary

Suppose a client has a valid ARP entry for 192.168.10.1 and can ping the gateway. The local link between client and gateway is known-good enough to move outward.

Internet failure now points more strongly toward routing, NAT, DNS, firewall policy, WAN state, or the remote service rather than local ARP.

ARP request fields

ARP carries enough information to identify both the requester and the target

Sender MAC: 00:11:22:33:44:55 Sender IP: 192.168.10.20 Target MAC: 00:00:00:00:00:00 Target IP: 192.168.10.1 Meaning: "192.168.10.20 at this MAC wants to know who owns 192.168.10.1."

Reading these fields in a packet capture can confirm whether the host is asking for the expected next hop.

★ Addressing Practice • ARP Explained for AP Networking

A five-minute warm-up for ARP Explained for AP Networking

Tomorrow’s opening question can pick up where this page leaves off: ask students to explain the idea in their own words and apply it to a real network. The 300 Bell Ringers give you short questions and teacher answers you can use without preparing a new starter each morning.

300 AP Networking Bell Ringers
$74.99
BUY TEACHER PACK → See what is included in the 300 Bell Ringers →
Instant Access • Full-Year Teacher Resource
Gratuitous ARP

A host can announce or probe its own address without first receiving a normal request

Gratuitous ARP can be used to update neighbor caches, announce a newly active address, or help detect address conflicts. High-availability systems may use such announcements when an IP moves from one device to another.

Seeing a gratuitous ARP is not automatically malicious. Interpret it in the context of the network design.

Security

Traditional ARP trusts local claims more than modern security designs would prefer

ARP does not strongly authenticate that the device claiming an IPv4 address is truly authorized to own it. An attacker on the same Layer 2 segment may attempt to poison neighbor caches by sending false mappings.

Premium Troubleshooting Lab • 120 Missions

Let students try ARP Explained for AP Networking for themselves

Reading the explanation is a start. In the browser simulator, students work through a broken network, choose what to test and see whether their fix worked. It gives them another chance to use what they learned about ARP Explained for AP Networking.

AP Networking Browser Troubleshooting Simulator
$29.99
120 Missions • 60 Failure Patterns • Offline Copy
GET THE SIMULATOR → See all 120 missions & features
Security boundary: ARP spoofing is primarily a local-segment problem because ordinary ARP broadcasts do not cross router boundaries.
Dynamic ARP Inspection

DAI can validate ARP claims against trusted bindings on supported enterprise switches

Dynamic ARP Inspection can compare ARP messages against trusted IP-to-MAC-to-port information, often derived from DHCP snooping. Invalid claims can be dropped rather than blindly trusted.

Trusted binding: IP 10.10.20.25 MAC 00:11:22:33:44:55 Port Gi1/0/7 VLAN 20 ARP claim from different MAC/port → validation fails → frame may be dropped
DAI evidence boundary

A security control can be enabled and still require correct trusted state

If DHCP snooping bindings are missing or static-address devices are not accounted for, a legitimate ARP can be rejected. Security features depend on accurate source-of-truth information.

Troubleshooting lesson: verify both the security policy and the binding database before concluding the endpoint is malicious.
Worked case 1

Client cannot reach gateway and has an incomplete ARP entry

The host is 10.10.20.25/24 with gateway 10.10.20.1. Repeated ARP requests for 10.10.20.1 receive no reply.

Addressing Exam Practice • ARP Explained Ap Networking

Check whether ARP Explained for AP Networking has really stuck

Once students have worked through this topic, give them questions mixed in with the rest of the course. The Exam Prep Vault includes practice exams, multiple-choice questions and artifact labs so they cannot rely on a chapter heading to tell them what to do.

AP Networking Complete Exam Prep Vault
$39.99
GET THE EXAM PREP VAULT → See the Exam Prep Vault contents →
4 Practice Exams • 320 MCQs • 60 Artifact Labs

Inference: investigate Layer 2 path, VLAN membership, gateway interface state, and gateway address. Do not jump directly to DNS or Internet routing.

Worked case 2

Client can ping gateway but not a remote server

The ARP table contains a valid gateway mapping and gateway ping succeeds. The remote server still cannot be reached.

Inference: local ARP and client-to-gateway Layer 2 reachability are known-good enough to continue with routing, firewall, NAT, or destination checks.

Worked case 3

One IP alternates between two MAC addresses

Users report intermittent reachability to 10.10.30.50. ARP evidence shows two different MAC addresses for that IP over a short period.

Premium Evidence-Grading Copilot

Spend less time marking explanations about ARP Explained for AP Networking

When students explain their answer, it takes more than a right-or-wrong check to see what they understand. The Grading Copilot helps you review how they used the clues, where their explanation falls short and what feedback to give next. You make the final grading decision.

AP Networking Artifact Analysis Grading Copilot
$49.99
8 Criteria • 5 Task Modes • Offline Premium Copy
GET THE GRADING COPILOT → See the free Copilot preview

Inference: duplicate address or failover behavior is plausible. Check DHCP leases, static assignments, high-availability design, and switch-port learning.

Worked case 4

Wrong subnet mask causes direct ARP for a remote host

A host at 192.168.1.70 should be /27 but is configured /24. It repeatedly ARPs for 192.168.1.100 instead of sending to the gateway.

Inference: local/remote classification is wrong because of the mask. Correct the prefix, then verify the host now resolves the gateway MAC for that remote destination.

Worked case 5

Camera is in the wrong VLAN

A camera expected in VLAN 30 cannot ARP for 10.10.30.1. Switch inspection shows the access port assigned to VLAN 20.

NEW • COMPLETE 180-DAY TEACHER CURRICULUM

Teach ARP Explained for AP Networking as part of a planned school year

This page gives you one topic. The 180-Day Teacher Curriculum puts it into a full course plan, with daily teaching notes, student activities and checks for understanding. Use it when you need to know what comes before this lesson and what to teach next.

AP Networking Complete 180-Day Teacher Curriculum
$199.99
180 Lessons • 180 Daily Simulators • 36 Teaching Weeks
GET THE 180-DAY CURRICULUM → See 3 free curriculum examples

Inference: fix VLAN placement, not the camera's gateway. After correction, confirm the camera learns the gateway MAC and receives the intended policy.

Evidence matrix

ARP artifacts become powerful when paired with another layer's evidence

ARP evidencePair withWhat it helps isolate
No gateway replySwitch MAC table + VLAN configLayer 2 placement/path
Two MACs for one IPDHCP leases + switch portsDuplicate IP
Gateway mapping validRoute table + ping/tracerouteMove beyond local Layer 2
ARP for unexpected hostIP/prefix configWrong subnet mask/locality
DAI dropDHCP snooping bindingsSecurity-binding mismatch

Swipe horizontally to see the evidence matrix.

Packet-capture lab

Use ARP traffic to verify what the host believes about the next hop

Capture traffic while a client tries to reach a remote IP. If the client correctly believes the destination is remote, you should expect ARP for the default gateway—not for the remote IP itself.

Client 192.168.10.25/24 Gateway 192.168.10.1 Destination 8.8.8.8 Expected ARP: Who has 192.168.10.1? Unexpected ARP: Who has 8.8.8.8? Unexpected result suggests local/remote classification is wrong.
Troubleshooting decision tree

Choose the next artifact from the ARP symptom

No ARP reply for gateway? → VLAN / port / gateway interface / local Layer 2 ARP reply exists but gateway unreachable? → interface filtering / host stack / local path Gateway reachable, remote host fails? → routing / NAT / firewall / DNS / destination Same IP changes MAC? → duplicate IP / HA / spoofing ARP for remote host instead of gateway? → subnet mask / prefix / route decision
Common exam traps

Most ARP mistakes come from confusing local Layer 2 delivery with end-to-end Layer 3 routing

  • ARP does not resolve domain names.
  • ARP does not discover every router on a path.
  • A remote server's MAC is normally not needed by the source host.
  • A valid ARP mapping does not prove DNS, routing, or Internet access works.
  • An empty or incomplete ARP entry is evidence to investigate, not proof a device is dead.
  • A wrong subnet mask can change which IP the host ARPs for.
AP response model

Build the answer from locality, next hop, Layer 2 evidence, and verification

Destination: identify the IPv4 target.

Local or remote: use the source prefix to classify it.

Next hop: destination host or default gateway.

ARP target: which local IPv4 address should be resolved?

Evidence: request, reply, cache entry, switch MAC table, or packet capture.

Boundary: state what ARP does not prove.

Verification: retry the original communication after the Layer 2 issue is corrected.

Free digital flashcards

24 ARP digital flashcards

Practice ARP requests and replies, same-subnet vs. remote traffic, gateway resolution, caches, wrong masks, duplicate IPs, VLAN failures, ARP tables, spoofing, DAI, DHCP snooping, and evidence boundaries.

All ARP cards
Click or press Enter/Space to reveal.
State the local next hop and what the evidence proves.
0 seen•24 cards
Continue studying

Connect ARP to addressing, duplicate IPs, subnet masks, switching, and CLI evidence

Related troubleshooting deep dive

For a narrower evidence-based scenario, use Same-Subnet Devices Cannot Communicate: A Layer 2 Troubleshooting Guide. It includes a free interactive reasoning activity and step-by-step diagnostic evidence.