AP Networking • IPv4 Addressing & Forwarding

AP Networking IP Addressing Guide

Master IPv4 addressing by predicting what a host actually does: calculate the local network, classify destinations, choose the Layer 2 target, recognize addressing failures, and verify the required path.

Independent AP Networking resource • Updated 2026-10-01 • Includes IPv4 lab + 24 free digital flashcards
Key rule: never decide “local or remote” from how an address looks—calculate the boundary from the prefix.
Practice with Flashcards
Core model

An IPv4 address becomes operationally meaningful only when you pair it with its prefix

A host does not look at an address such as 192.168.10.34 and automatically know which destinations are local. It combines the address with a subnet mask or CIDR prefix, derives its local network, and applies that boundary to every destination it considers.

AP Networking decision chain: source IP + prefix → derive local network → compare destination → local peer or gateway → Layer 2 destination → routed path if needed → requirement-matched verification.
Four fields

Address, prefix, gateway, and DNS answer four different questions

FieldQuestion it answersTypical failure
IPv4 addressWhich IP identity is assigned to this interface?Duplicate, wrong subnet, or unusable source address
Prefix / subnet maskWhich destinations should this host treat as local?Incorrect local-versus-remote decision
Default gatewayWhich local next hop should receive ordinary remote traffic?Local traffic may work while remote traffic fails
DNS serverWhere should the host send name-resolution queries?Numeric-IP paths may work while names fail

Swipe horizontally to see the full addressing table.

Bitwise boundary

The network boundary comes from bits—not from decimal addresses that merely look similar

For 192.168.10.34/24, the first 24 bits identify the network. The resulting network is 192.168.10.0/24. A destination such as 192.168.10.90 is local under that prefix; 192.168.11.90 is remote.

192.168.10.34 = host address 255.255.255.0 = /24 mask ---------------------------- 192.168.10.0 = network 192.168.10.90 → inside 192.168.10.0/24 → local 192.168.11.90 → outside 192.168.10.0/24 → remote

This becomes especially important with prefixes such as /25, /26, or /27, where “same first three octets” is no longer enough to prove two hosts share a subnet.

Interactive local/remote lab

Test a host, prefix, and destination before choosing the next hop

Enter IPv4 values to model the first host decision. The calculator intentionally focuses on the local-versus-remote boundary rather than trying to replace a full subnetting lesson.

Enter a host, prefix, and destination.
Local delivery

For a local destination, the host needs the endpoint's Layer 2 address

When the destination belongs to the local subnet, the host does not normally send the packet to its default gateway. On an IPv4 Ethernet LAN, it commonly uses ARP to learn the MAC address associated with the destination IPv4 address, then builds an Ethernet frame directly for that peer.

Host A: 192.168.10.34/24
Host B: 192.168.10.90/24

IP destination:       192.168.10.90
Ethernet destination: MAC of Host B
Default gateway:      not needed for this direct local delivery
Remote delivery

For a remote destination, the packet keeps the remote IP while the frame targets a local next hop

Suppose 192.168.10.34/24 sends to 10.50.20.8. The host classifies 10.50.20.8 as remote and sends the first Ethernet frame to its gateway. The IP packet still names 10.50.20.8 as the destination.

Source host:          192.168.10.34/24
Default gateway:      192.168.10.1
Remote destination:   10.50.20.8

IP destination:       10.50.20.8
First Ethernet dest:  MAC of 192.168.10.1

This distinction connects IP addressing to Router vs. Switch and ARP.

Gateway requirement

The normal default gateway must itself be reachable on the host's local network

A gateway is useful only if the host can deliver frames to it. If a client is 192.168.10.34/24 but its gateway is configured as 192.168.20.1, the host's own prefix says that gateway is outside 192.168.10.0/24. That is a strong configuration warning.

Symptom pattern: a wrong gateway can leave same-subnet communication working while ordinary remote destinations fail. See Wrong Default Gateway Symptoms.
Wrong subnet mask

A mask error changes the host's forwarding decision before a router ever sees the packet

Consider 192.168.10.130. With /24, 192.168.10.20 is local. With /25, 192.168.10.130 belongs to 192.168.10.128/25 while 192.168.10.20 belongs to 192.168.10.0/25. The same two decimal addresses can therefore be treated differently depending on the prefix.

A wrong mask can make the host ARP for a destination it should have sent to a gateway, or send a truly local destination toward a router. Use Wrong Subnet Mask Symptoms when the evidence points there.

Worked prefix case

192.168.10.130/25 and 192.168.10.20/25 are not in the same subnet

192.168.10.130/25 → network 192.168.10.128/25 192.168.10.20/25 → network 192.168.10.0/25 Result: remote relative to each other under /25

This is exactly why visual similarity is unreliable. The prefix defines the boundary. For more practice calculating boundaries, use the AP Networking Subnetting Guide.

DHCP vs. static

Static and DHCP configuration can produce identical packet-forwarding behavior

A host does not forward differently merely because its values came from DHCP. If two hosts have the same valid address, prefix, gateway, and DNS configuration, their forwarding decisions can be the same. The operational difference is how the configuration is assigned, renewed, documented, and changed.

DHCP Explained covers the dynamic assignment path, including DORA, scopes, leases, and options.

Private IPv4

Private addresses describe address scope; they do not automatically explain Internet reachability

Private blockCIDRExample
10.0.0.0 – 10.255.255.25510.0.0.0/810.25.4.18
172.16.0.0 – 172.31.255.255172.16.0.0/12172.20.8.9
192.168.0.0 – 192.168.255.255192.168.0.0/16192.168.50.22

Swipe horizontally to see the private-address table.

These ranges are commonly used internally. Internet-edge designs often use NAT, but seeing a private source address alone does not prove that NAT is correctly configured or that an Internet path exists.

APIPA

169.254/16 is not just another private LAN range

A client showing a 169.254 address on a network that normally uses DHCP is giving you a different clue: normal IPv4 assignment did not complete. That can result from client state, VLAN or relay failure, scope exhaustion, filtering, or server-side problems.

Use APIPA Address 169.254 Explained to diagnose that branch without overclaiming.

Duplicate IPv4

Two interfaces claiming the same IPv4 address can make delivery appear intermittent

If two devices use the same IPv4 address, neighboring systems can learn changing Layer 2 mappings for that IP. Traffic may reach one device and later the other, creating symptoms that look random until ARP/neighbor evidence and address ownership are compared.

This is different from a duplicate IP address versus a duplicate MAC condition: the evidence and repair must match the identity conflict actually observed.

★ Addressing Practice • IP Addressing Guide

A five-minute warm-up for AP Networking IP Addressing Guide

Tomorrow’s opening question can pick up where this page leaves off: have students explain where the addresses come from and what they would check when a device cannot connect. 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
DNS boundary

DNS does not decide whether an already-known IP destination is local or remote

If a user can reach 203.0.113.25 by numeric address but not by hostname, the IP forwarding path has succeeded far enough for that tested destination. DNS becomes a plausible unresolved dependency. But if the client cannot even reach its local gateway, changing DNS is unlikely to repair that lower-level failure.

The troubleshooting value comes from preserving what already works rather than restarting every layer.

Worked case 1

Local printer works, Internet fails after a gateway typo

A client has 192.168.10.34/24 and can reach a printer at 192.168.10.80, but its gateway is 192.168.1.1 instead of 192.168.10.1. The local printer path does not require the gateway, so local success is expected. Remote traffic fails at the next-hop requirement.

Addressing & Subnetting Lab • 120 Missions

Let students try AP Networking IP Addressing Guide 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 AP Networking IP Addressing Guide.

AP Networking Browser Troubleshooting Simulator
$29.99
120 Missions • 60 Failure Patterns • Offline Copy
GET THE SIMULATOR → See all 120 missions & features

Smallest justified change: correct the gateway, then retest the same remote destination.

Worked case 2

A /25 mask makes a visually similar address remote

Host A is 192.168.10.130/25 and Host B is 192.168.10.20/25. Their first three decimal octets match, but their network addresses are 192.168.10.128/25 and 192.168.10.0/25. Host A should treat Host B as remote and use a router if communication between those subnets is intended.

Worked case 3

Numeric IP works while hostname fails

A client reaches the application server by numeric IPv4 address and reaches its gateway normally, but the hostname does not resolve. The known-good evidence moves the first unresolved dependency toward DNS rather than the subnet mask or default gateway.

Addressing Exam Practice • Ap Networking IP Addressing Guide

Check whether AP Networking IP Addressing Guide 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

Next artifact: configured DNS resolver and a name-resolution query/result.

Worked case 4

A DHCP client receives the wrong mask even though the address looks correct

A client receives 10.20.30.50 with /16 when the intended subnet is 10.20.30.0/24. It may incorrectly treat other 10.20.x.x destinations as local and ARP for them rather than sending them to the gateway. The address itself looks plausible; the prefix creates the forwarding error.

Premium Routing Feedback

Spend less time marking explanations about AP Networking IP Addressing Guide

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

Compare the full lease against a known-good peer and correct the DHCP option or scope configuration that supplied the wrong mask.

Worked case 5

A 169.254 address narrows the branch but does not identify the root cause

A new laptop shows 169.254.77.12/16 while established devices remain online. That pattern is consistent with scope exhaustion, but it could also be client-specific or path-specific. Scope availability and DORA evidence are the discriminating artifacts.

Do not write “DHCP server down” until the evidence actually supports a shared server failure.

Troubleshooting matrix

Match the symptom to the addressing field most capable of producing it

SymptomInspect earlyWhy
Same-subnet peer failsAddress, prefix, VLAN, ARPGateway is not required for direct local delivery
Local works, remote failsGateway, route, policyRemote delivery adds next-hop/routing dependencies
Numeric IP works, hostname failsDNSTested IP forwarding already works
169.254 appearsDHCP path and dependenciesNormal assignment did not complete
Intermittent ownership of one IPARP/neighbor evidence, duplicate IPTwo devices may claim the same Layer 3 identity

Swipe horizontally to see the diagnostic matrix.

Evidence boundaries

Successful tests prove less than students often claim

EvidenceSupportsDoes not alone prove
Local peer respondsTested local path worksGateway or remote routing works
Gateway respondsTested first-hop reachabilityRemote route, return path, DNS, application
Remote numeric IP respondsTested routed IP pathDNS or every application port
Hostname resolvesName resolution returned an answerApplication service is reachable
DHCP lease receivedLease transaction completedEvery supplied option is correct for the requirement

Swipe horizontally to see the evidence table.

NEW • COMPLETE 180-DAY TEACHER CURRICULUM

Teach AP Networking IP Addressing Guide 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
Exam traps

Eight IPv4 addressing shortcuts that lead to weak answers

  • Assuming matching decimal octets prove two hosts are local.
  • Ignoring the prefix when evaluating a gateway.
  • Changing DNS when the client cannot reach a numeric IP.
  • Assuming a private address automatically proves NAT works.
  • Assuming 169.254 proves the DHCP server is offline.
  • Assuming a successful gateway ping proves the full remote path.
  • Calling every intermittent address symptom “DHCP.”
  • Fixing several addressing fields at once instead of preserving diagnostic evidence.
AP response model

Use a repeatable addressing decision instead of guessing from symptoms

1. Read the full configuration: IP, prefix, gateway, DNS, assignment source.

2. Calculate the local network: do not rely on visual similarity.

3. Compare the destination: local or remote?

4. Identify the Layer 2 target: endpoint MAC or next-hop MAC?

5. Preserve known-good evidence: local, gateway, remote numeric IP, DNS, application.

6. Change only the first unresolved dependency.

7. Verify the original requirement under the same conditions.

Verification

A corrected address is not enough—the forwarding behavior must now match the design

After an addressing repair, confirm the interface has the intended address and prefix. Test a same-subnet peer when relevant, verify the configured gateway is locally reachable, test the required remote numeric destination, then test DNS and the original application if those are part of the requirement.

Strong closeout: configuration is correct, local-versus-remote decisions are correct, the intended next hop works, and the original service succeeds.
Free digital flashcards

24 IPv4 addressing digital flashcards

Practice prefixes, masks, local-versus-remote decisions, gateways, ARP, DHCP, private ranges, APIPA, DNS boundaries, duplicate addresses, and verification.

All IPv4 addressing cards
Click or press Enter/Space to reveal.
Explain the forwarding decision before moving on.
0 seen•24 cards
Continue studying

Move from addressing into subnetting, DHCP, routing, and troubleshooting

Next: apply what you learned

Read the evidence. Make a decision. Check your reasoning.

Use these connected resources to move from an explanation to a real networking decision.