AP Networking • IPv4 • Addressing Foundations

IPv4 Addressing for AP Networking

Learn IPv4 from the bits upward and connect every address fact to subnet boundaries, ARP behavior, gateway use, DHCP evidence, routing decisions, and troubleshooting.

Independent AP Networking resource • Updated 2026-10-01 • Includes 24 free digital flashcards
IPv4 rule: the address tells you the value; the prefix tells you what the value means on the network.
Practice with Flashcards
IPv4 foundation

IPv4 is 32 bits, but the prefix determines how those bits are interpreted

An IPv4 address is not complete network information by itself. The 32-bit address identifies a value, while the prefix length tells the host which bits define the local network and which bits identify a host within that network. That one distinction drives network-address calculation, broadcast boundaries, host capacity, ARP behavior, gateway use, connected routes, and many troubleshooting decisions.

Core reasoning chain: Address → Prefix → Network Boundary → Local/Remote Decision → ARP or Gateway → Routing/Policy → Application.
32-bit structure

Four decimal octets are just a human-readable view of 32 binary bits

IPv4 displays 32 bits as four groups of 8 bits. Each 8-bit group is called an octet. Because eight binary bits can represent values from 0 through 255, every displayed octet stays inside that range.

IPv4: 192.168.25.14 Octets: 192 | 168 | 25 | 14 Binary: 11000000 10101000 00011001 00001110

Subnetting becomes easier when you remember that dotted decimal is only a readable representation of the underlying binary structure.

Binary weights

One octet uses eight place values: 128 through 1

Bit values: 128 64 32 16 8 4 2 1 Example: 192 = 128 + 64 192 = 11000000₂ Example: 224 = 128 + 64 + 32 224 = 11100000₂

You do not need to convert every IPv4 question fully into binary, but understanding these place values explains why masks such as 192, 224, 240, and 248 create familiar subnet block sizes.

Prefix lengths

The prefix marks the network portion from left to right

/24

24 network bits, 8 host bits. Mask: 255.255.255.0.

/26

26 network bits, 6 host bits. Mask: 255.255.255.192.

/28

28 network bits, 4 host bits. Mask: 255.255.255.240.

A longer prefix means more network bits and fewer host bits. That creates smaller subnets.

Same IP, different prefix

The same IPv4 address can belong to different networks

Consider 192.168.25.70. Under /24, its network is 192.168.25.0/24. Under /26, 70 falls in the 64–127 block, so the network becomes 192.168.25.64/26. Under /27, 70 falls in the 64–95 block, so the network is 192.168.25.64/27.

192.168.25.70/24 → network 192.168.25.0 192.168.25.70/26 → network 192.168.25.64 192.168.25.70/27 → network 192.168.25.64 → smaller block than /26

The decimal address did not change. The interpretation changed because the prefix changed.

Address roles

Network, host, and broadcast addresses have different jobs

In conventional IPv4 subnetting, the network address is the first address in the subnet and has all host bits set to zero. The broadcast address is the last address and has all host bits set to one. Ordinary host assignments sit between those boundaries.

Subnet: 192.168.25.64/26 Network: 192.168.25.64 Traditional host range: 192.168.25.65 - 126 Broadcast: 192.168.25.127

That /26 contains 64 total addresses and 62 traditional usable host addresses.

Host-capacity math

Host bits determine how many addresses exist in the subnet

If a prefix leaves h host bits, the subnet contains 2^h total addresses. In conventional subnetting, subtract two for the network and broadcast addresses.

PrefixHost bitsTotal addressesTraditional usable
/248256254
/257128126
/2666462
/2753230
/2841614

Swipe horizontally to see the host-capacity table.

Local versus remote

The prefix tells the host whether to deliver locally or use the gateway

A host applies its prefix to its own address and the destination. If both produce the same network, the destination is local. If the networks differ, the destination is remote and normal communication goes through a router.

Host: 192.168.25.70/26 network 192.168.25.64 Destination A: 192.168.25.90/26 network 192.168.25.64 → local Destination B: 192.168.25.150/26 network 192.168.25.128 → remote
ARP behavior

Local IPv4 delivery and remote IPv4 delivery use ARP differently

For a local destination, the host normally resolves the destination's IPv4 address to the destination's MAC address. For a remote destination, the host resolves the default gateway's IPv4 address to the gateway's MAC address and sends the Ethernet frame there.

Local destination
ARP for the destination → frame to destination MAC.
Remote destination
ARP for the gateway → frame to gateway MAC.

This is why a wrong subnet mask can create very specific ARP behavior.

Wrong-mask evidence

A mask that is too broad can make a remote destination look local

Suppose the intended client configuration is 10.10.10.50/24, but the client is mistakenly configured as /16. Destination 10.10.20.8 should be remote under /24, but under /16 the host treats it as local and ARPs directly for it.

Correct /24: 10.10.10.0 vs 10.10.20.0 → remote → gateway Wrong /16: both inside 10.10.0.0/16 → appears local → ARP directly

The router can be perfectly healthy while the client makes the wrong forwarding decision before the packet ever reaches it.

Default gateway

The gateway is the first Layer 3 hop for remote destinations

A client normally needs a default gateway when it must reach other IP networks. The gateway itself should be reachable on the client's local subnet.

Client: 10.20.30.77/24 Valid local gateway: 10.20.30.1 Remote destination: 10.50.0.25 Client decision: send frame to gateway MAC

If same-subnet traffic works but remote networks fail, the gateway value and gateway reachability become high-value checks.

DHCP configuration

IPv4 configuration is a bundle of dependent values

DHCP can provide an IPv4 address, subnet mask or prefix, default gateway, DNS server addresses, lease timing, and other options. Receiving a lease does not guarantee that every value is correct.

★ Addressing Practice • IPv4 Addressing for AP Networking

A five-minute warm-up for IPv4 Addressing for AP Networking

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

Wrong scope

Client receives a valid address from the wrong logical network.

Wrong gateway

Local traffic may work while remote traffic fails.

Wrong DNS

Numeric IP traffic may work while names fail.

Link-local IPv4

169.254.0.0/16 is a clue that expected DHCP configuration was not obtained

A client using an IPv4 link-local/APIPA address has local addressing, but it usually does not have the expected enterprise or home-network configuration. That should send troubleshooting toward DHCP reachability, scope state, VLAN placement, relay behavior, or endpoint configuration.

Do not overclaim: APIPA does not automatically mean the DHCP server itself is down.
Private IPv4 space

RFC 1918 space is reusable because it is not globally routed on the public Internet

Private blockCommon shorthandAddress span
10.0.0.0/810/810.0.0.0 – 10.255.255.255
172.16.0.0/12172.16/12172.16.0.0 – 172.31.255.255
192.168.0.0/16192.168/16192.168.0.0 – 192.168.255.255

Swipe horizontally to see the private-address table.

Organizations can reuse these blocks internally because public Internet routers do not treat them as globally unique public destinations.

Addressing & Subnetting Lab • 120 Missions

Let students try IPv4 Addressing 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 IPv4 Addressing 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
NAT context

Private addressing and public Internet communication are separate design concerns

A client can use a private IPv4 address internally and still reach the Internet when an edge device translates the source address as intended. NAT does not define the client's local subnet; the prefix does. NAT operates later in the packet path.

Client: 10.20.30.77 private Local forwarding: determined by /24 prefix Internet edge: translates source to public-facing address Return traffic: mapped back to client
Public documentation ranges

Not every non-private address in an example should be treated as a real Internet endpoint

Networking examples often use documentation-only ranges so the examples do not imply ownership of a live public service. The important skill is recognizing the address role from the context instead of assuming every non-RFC-1918 address is an active Internet destination.

Addressing Exam Practice • IPv4 Addressing For Ap Networking

Check whether IPv4 Addressing 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
Study habit: separate the address category from whether a particular example endpoint is actually reachable.
Broadcast behavior

IPv4 subnet boundaries also limit ordinary Layer 2 broadcast reach

ARP requests and many other Layer 2 broadcasts remain inside the local broadcast domain. Routers do not normally forward ordinary Ethernet broadcasts between IP subnets. That is why dividing a network into VLANs and subnets changes both addressing and broadcast scope.

Layer boundary: IP subnetting is Layer 3 logic, but it directly affects which Layer 2 domain a client considers local.
Connected route

An interface prefix normally creates a directly connected route for its network

Configuring 192.168.25.70/26 normally creates an on-link route for 192.168.25.64/26. That connected route is more specific than a default route and controls traffic to addresses inside that subnet.

Premium Evidence-Grading Copilot

Spend less time marking explanations about IPv4 Addressing 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
Interface: 192.168.25.70/26 Connected: 192.168.25.64/26 on-link Default: 0.0.0.0/0 via 192.168.25.65 Destination: 192.168.25.90 → connected /26 wins
Troubleshooting evidence

Addressing artifacts should be interpreted as limited evidence

ObservationWhat it provesWhat remains unproven
Gateway ping worksUseful local Layer 3 reachabilityDNS, remote routing, application
Remote numeric IP worksUseful routed IP pathName resolution, application port
DNS returns expected IPName resolutionTCP/TLS/application success
Valid DHCP leaseAddress configuration obtainedCorrect VLAN or policy

Swipe horizontally to see the evidence table.

Case 1

Same-subnet peer works, but remote traffic fails

Client: 192.168.60.70/27 Peer: 192.168.60.80 works ✓ Gateway: 192.168.60.1 /27 local block: 64 - 95 Gateway .1: outside local subnet ✕

The local peer works because no router is needed. Remote traffic fails because the configured gateway is not local to the client's /27 network.

Case 2

Remote numeric IP works, but hostname access fails

Gateway: works ✓ 203.0.113.20: reachable ✓ portal.example: fails to resolve ✕ Strong branch: DNS/resolver configuration

The successful remote-IP test is important because it preserves useful routing evidence and prevents an unnecessary subnet-mask change.

Case 3

A client receives a valid address from the wrong subnet

Expected Staff: 10.30.0.0/24 Observed: 10.70.0.55/24 Guest subnet: 10.70.0.0/24 Strong branch: VLAN / SSID mapping / DHCP relay or scope selection

The lease itself becomes evidence of logical placement.

NEW • COMPLETE 180-DAY TEACHER CURRICULUM

Teach IPv4 Addressing 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
Case 4

A wrong mask creates selective rather than total failure

Wrong masks often confuse students because the client may still reach some devices. That is expected: destinations classified correctly can still work while destinations on the other side of the mistaken boundary fail.

Client intended: 10.10.10.50/24 Configured: 10.10.10.50/16 10.10.10.20: works 10.10.20.8: client treats as local instead of using gateway
Subnet-size intuition

Longer prefixes create smaller address blocks

/24

256 total addresses.

/26

64 total addresses.

/28

16 total addresses.

Every additional network bit cuts the remaining address block in half. This gives you a useful mental check before doing exact math.

What to calculate

IPv4 questions become easier when you always derive the same five facts

Once those are known, gateway placement, DHCP scope design, and many troubleshooting questions become easier to reason about.

Exam transfer

Turn every IPv4 fact into a forwarding prediction

Do not stop at “the mask is /26.” Ask what that /26 makes local, where the broadcast boundary falls, which addresses are assignable, whether the gateway is valid, and which MAC address the client should resolve for a destination.

Strong answer: state the calculated boundary, then explain the packet behavior that follows from it.
Free digital flashcards

24 IPv4 Addressing digital flashcards

Practice 32-bit structure, binary weights, CIDR prefixes, network/broadcast roles, host capacity, same-subnet logic, ARP, gateways, DHCP, private addressing, link-local behavior, NAT context, and troubleshooting evidence.

All IPv4 cards
Click or press Enter/Space to reveal.
Connect the address fact to the forwarding behavior it creates.
0 seen•24 cards