2.6 CompTIA A+ · Core 1 (220-1201) · Domain 2 — Networking

Configure Basic Wired/Wireless
SOHO Networks — IP Addressing

Objective 2.6 Domain weight: 20% IP addressing fundamentals

OVERVIEWIntroduction

Objective 2.6 moves from naming hardware (2.5) to actually making a small office/home office network function — and the foundation of "function" is correct IP addressing. Every device on a network needs a unique address to send and receive traffic, a way to know which addresses are "local" versus "remote," and a way to reach the outside world. This guide covers the addressing portion of 2.6: IPv4 (public and private), IPv6, APIPA, static versus dynamic assignment, subnet masks, and the default gateway.

This is one of the most heavily scenario-tested areas on the exam. You will be given a symptom — "the PC has an address starting with 169.254," "two computers on the same switch can't reach each other," "a device can reach the LAN but not the internet" — and asked to identify the addressing concept responsible. Understanding why each piece of an IP configuration exists, not just memorizing definitions, is what gets these questions right under time pressure.

The Four Pieces of a Basic IP Configuration

Every properly configured device needs four pieces of information to communicate normally on a network and reach the internet: an IP address (its own identity), a subnet mask (which part of that address is the network vs. the host), a default gateway (where to send traffic destined for outside the local network), and usually a DNS server (to resolve names to addresses — covered in a later objective). This guide focuses on the first three.

CONCEPT 01IPv4 Addressing

IPv4 (Internet Protocol version 4) is the addressing scheme that has underpinned the internet and most local networks since the 1980s. An IPv4 address is a 32-bit number, almost always written in dotted decimal notation — four numbers ("octets") from 0–255, separated by periods, such as 192.168.1.105. Each octet represents 8 bits, and 4 × 8 = 32 bits total.

Because IPv4 addresses are only 32 bits long, there are a finite number of them — roughly 4.3 billion. That number sounds large, but it was exhausted years ago relative to the number of internet-connected devices in the world, which is the entire reason private addressing, NAT, and ultimately IPv6 exist.

Private Addresses

Private IP addresses are reserved address ranges defined in RFC 1918 that are not routable on the public internet. Any organization or home network can use these ranges internally without coordinating with anyone else, because traffic using these addresses is never supposed to leave the local network directly — it's translated by NAT at the router before going out to the internet (see the Router discussion in objective 2.5).

ClassPrivate RangeTypical Use
Class A10.0.0.0 – 10.255.255.255Large enterprise networks; huge address space
Class B172.16.0.0 – 172.31.255.255Mid-sized networks
Class C192.168.0.0 – 192.168.255.255Home and small office networks (most common default)

Exam Angle

Memorize all three private ranges cold: 10.x.x.x, 172.16.x.x–172.31.x.x, and 192.168.x.x. The exam will show you an IP address and expect you to instantly identify it as private (and therefore non-routable on the internet) versus public. The vast majority of consumer routers default to the 192.168.1.x or 192.168.0.x subnet out of the box.

Public Addresses

Public IP addresses are globally unique addresses that are routable across the internet. Your ISP assigns a public address to your router's WAN/internet-facing interface. Every device on the public internet that wants to be reachable directly needs a public address — web servers, mail servers, and the WAN interface of your home router are common examples.

In a typical home network, there is exactly one public IP address (assigned to the router by the ISP) and many private IP addresses (assigned by the router to internal devices via DHCP). NAT on the router translates between the many private addresses inside and the single public address outside, so that dozens of devices can all share one internet connection.

Loopback address 127.0.0.1 always refers to "this device" — used for testing the local TCP/IP stack itself. The entire 127.0.0.0/8 range is reserved for loopback, though 127.0.0.1 is what's actually used in practice.
Public vs. private — the core distinction Private = usable only inside a local network, reused by millions of different networks worldwide simultaneously. Public = globally unique, routable on the internet, assigned by regional internet registries down through ISPs.

CONCEPT 02IPv6 Addressing

IPv6 (Internet Protocol version 6) was created to solve IPv4's address exhaustion problem. Instead of 32 bits, an IPv6 address is 128 bits long, providing an astronomically larger address pool — large enough that private addressing and NAT are no longer strictly necessary (though IPv6 has its own concept of private/local addressing too).

IPv6 Format

An IPv6 address is written as eight groups of four hexadecimal digits, separated by colons, for example:

2001:0db8:85a3:0000:0000:8a2e:0370:7334

Two shorthand rules make these addresses easier to write and read, and both are testable:

Full AddressCompressed Form
2001:0db8:0000:0000:0000:0000:1428:57ab2001:db8::1428:57ab
0000:0000:0000:0000:0000:0000:0000:0001::1 (this is the IPv6 loopback address)
fe80:0000:0000:0000:0202:b3ff:fe1e:8329fe80::202:b3ff:fe1e:8329

Key IPv6 Address Types

Global unicast The IPv6 equivalent of a public IPv4 address — globally unique and routable across the internet. Typically begins with 2000::/3 (in practice, most start with 2).
Link-local Automatically assigned to every IPv6-enabled interface, always begins with fe80::. Valid only on the local network segment, never routed beyond it — conceptually similar in role to IPv4's APIPA address, except link-local addresses are normal and expected on every IPv6 interface, not a sign of failure.
Unique local The IPv6 equivalent of private IPv4 addressing (RFC 1918 ranges) — used for internal addressing not meant to be routed on the public internet. Begins with fc00::/7 (commonly seen as fd in practice).
Loopback ::1 — the IPv6 equivalent of IPv4's 127.0.0.1, referring to the local device itself.

Why IPv6 Exists

IPv4's 32-bit address space (~4.3 billion addresses) was exhausted years ago given the explosion of internet-connected devices. IPv6's 128-bit address space provides roughly 340 undecillion addresses — for all practical purposes, an inexhaustible supply, eliminating the need for the workarounds (NAT, private addressing) that IPv4 has relied on for decades. Most modern networks run IPv4 and IPv6 simultaneously, a configuration called dual stack.

CONCEPT 03Automatic Private IP Addressing (APIPA)

Automatic Private IP Addressing (APIPA) is a fallback mechanism in Windows (and supported elsewhere) that automatically assigns a device an IP address from the 169.254.0.0 – 169.254.255.255 range when the device is configured for DHCP but cannot reach a DHCP server. It is the operating system's way of saying "I expected to get an address automatically, and that process failed."

Why a Device Ends Up With an APIPA Address

DHCP server is down or unreachableMost common cause
Faulty/disconnected cable or switch portPhysical layer failure
NIC driver issueLess common, but possible
VLAN/switch misconfiguration blocking DHCP trafficNetwork-side issue

What APIPA Means in Practice

A device with an APIPA address can typically communicate with other devices on the same local segment that also have APIPA addresses (since they're all in the same 169.254.x.x range), but it cannot reach the default gateway, the internet, or any device outside the local broadcast domain — because APIPA never assigns a gateway address. Seeing 169.254.x.x is one of the single most recognizable troubleshooting signals on the entire exam.

Exam Angle — Recognize This Instantly

If a question describes a computer that "can't access the internet or any network resources" and gives you an IP address starting with 169.254, the answer is almost always: the device failed to obtain an address from DHCP, and a logical next troubleshooting step is to check the physical connection, the DHCP server's availability, or release/renew the lease (ipconfig /release then ipconfig /renew on Windows).

CONCEPT 04Static vs. Dynamic Addressing

Every device needs to get its IP address from somewhere. There are two fundamental approaches: an administrator manually types in a fixed address (static), or the device automatically requests and receives an address from a server on the network (dynamic, via DHCP).

FactorStatic IP AddressingDynamic (DHCP) Addressing
How it's assignedManually entered by an administrator on each deviceAutomatically leased from a DHCP server on the network
ConsistencyNever changes unless manually editedCan change when the lease expires/renews (though often stays the same in practice)
Administrative effortHigh — must be configured and tracked per device, and conflicts must be manually avoidedLow — DHCP server handles assignment and avoids duplicate addresses automatically
Best used forServers, printers, network devices (routers/switches/APs), anything that needs a predictable, unchanging addressEnd-user workstations, laptops, phones, guest devices — anything that doesn't need a fixed address
Risk if misconfiguredIP address conflicts if two devices are manually given the same addressVery low conflict risk; DHCP server tracks leases and avoids duplicates

How DHCP Assigns an Address (DORA)

DHCP Lease Process — "DORA"
01
Discover. The client broadcasts a DHCPDISCOVER message onto the local network, since it has no IP address yet and doesn't know where the DHCP server is.
02
Offer. The DHCP server responds with a DHCPOFFER, proposing an available IP address along with the subnet mask, default gateway, DNS servers, and lease duration.
03
Request. The client broadcasts a DHCPREQUEST, formally asking to accept the offered address (broadcast so any other DHCP servers on the segment know the offer was accepted).
04
Acknowledge. The server responds with a DHCPACK, finalizing the lease. The client now configures its NIC with the assigned address and begins using it.

If this process fails at any point — most commonly because no DHCP server responds — the device falls back to APIPA, as discussed above. This is the direct link between the DORA process and the 169.254.x.x symptom: APIPA only kicks in when DORA never completes.

DHCP Reservation — A Middle Ground

A DHCP reservation lets an administrator configure the DHCP server to always hand out the same IP address to a specific device, identified by its MAC address. This gives the predictability of a static address (the device always gets the same IP) while retaining the centralized management of DHCP (the address is still defined and tracked on the server, not manually typed into every client). This is a very common best practice for network printers and similar devices.

CONCEPT 05Subnet Mask

A subnet mask is a 32-bit value, written in the same dotted-decimal format as an IPv4 address, that defines which portion of an IP address represents the network and which portion represents the host (the individual device). Without a subnet mask, a device would have no way of knowing whether another IP address is on its own local network or somewhere else that requires going through the gateway.

How a Subnet Mask Works

In a subnet mask, a binary 1 means "this bit is part of the network portion," and a binary 0 means "this bit is part of the host portion." The most common subnet mask used in home and small office networks is 255.255.255.0, which in binary is twenty-four 1s followed by eight 0s — meaning the first three octets identify the network, and the last octet identifies the individual host.

Subnet Mask (decimal)CIDR NotationUsable HostsTypical Use
255.255.255.0/24254Most common — typical home/SOHO network
255.255.255.128/25126Smaller segmented subnet
255.255.255.192/2662Small department or VLAN
255.255.0.0/1665,534Larger network — bigger organizations
255.0.0.0/816,777,214Very large network — rarely seen outside huge enterprises/ISPs

Exam Angle

You are unlikely to be asked to perform deep subnetting math on the A+ exam (that's more of a Network+ skill), but you do need to recognize 255.255.255.0 (/24) as the standard SOHO subnet mask, understand that it allows 254 usable host addresses (256 total addresses, minus the network address and the broadcast address), and understand conceptually that the subnet mask is what lets a device determine whether a destination is "local" (same network — send directly) or "remote" (different network — send to the gateway).

Network Address and Broadcast Address

Within any subnet, two addresses are reserved and cannot be assigned to a device. In a typical 192.168.1.0/24 network: 192.168.1.0 is the network address (identifies the subnet itself, not a host), and 192.168.1.255 is the broadcast address (sends a message to every device on that subnet simultaneously). That leaves 192.168.1.1 through 192.168.1.254 — 254 addresses — actually usable by devices, which is why a /24 network is described as having 254 usable hosts rather than 256.

CONCEPT 06Default Gateway

The default gateway is the IP address of the device — almost always a router — that a device sends traffic to when the destination is not on its local network. Working together with the subnet mask, a device's TCP/IP stack performs a simple check for every outgoing packet: is the destination address inside my own subnet? If yes, send the packet directly to that device on the local network. If no, send it to the default gateway, which is responsible for forwarding it onward (potentially through several more hops) toward its actual destination.

The Gateway Is Usually the Router's LAN Address

In a typical home network, the default gateway address is the router's own internal (LAN-side) IP address — commonly something like 192.168.1.1 or 192.168.0.1. Every device on the network is configured with this same gateway address (whether manually or via DHCP), since they all rely on the same router to reach anything outside the local network, including the internet.

What Happens Without a Valid Gateway

A device with a correctly configured IP address and subnet mask but a missing or incorrect default gateway can still communicate normally with other devices on its own local subnet — file sharing, printing, local games, etc. — but cannot reach anything beyond the local network, including the internet. This produces a very specific and testable symptom: local connectivity works, internet connectivity does not.

SymptomLikely Cause
Device has a 169.254.x.x address; nothing works, not even local resources beyond other APIPA devicesDHCP failure → APIPA fallback (no gateway assigned at all)
Device has a normal-looking private IP; can reach other local devices but not the internetMissing, incorrect, or unreachable default gateway
Device can reach the internet by IP address but not by name (e.g., can ping 8.8.8.8 but not google.com)DNS misconfiguration — not a gateway issue (covered in a later objective)
Device cannot reach anything at all, including other local devicesPhysical/Layer 1 problem, wrong subnet mask, or NIC/driver failure

Master Reference — IP Addressing Concepts

IPv432-bit, dotted decimal (e.g., 192.168.1.1)
Private ranges10.x, 172.16–31.x, 192.168.x — not internet routable
Public addressesGlobally unique, internet-routable, assigned by ISP
IPv6128-bit, hex, colon-separated; :: compresses zero groups (once only)
IPv6 link-localfe80::/10 — auto-assigned, local segment only
APIPA169.254.x.x — DHCP failed; local-only, no gateway
Static addressingManually set; predictable; used for servers/printers/network gear
Dynamic addressingDHCP-assigned via DORA; used for everyday end-user devices
Subnet maskDefines network vs. host portion; 255.255.255.0 (/24) most common
Default gatewayRouter's LAN IP; destination for any off-subnet traffic
No gateway symptomLocal works, internet doesn't
DHCP reservationSame IP always handed out to a given MAC address

REFERENCESOHO IP Addressing Quick Reference

Private IPv4 Ranges

  • 10.0.0.0/8 → 10.0.0.0 – 10.255.255.255
  • 172.16.0.0/12 → 172.16.0.0 – 172.31.255.255
  • 192.168.0.0/16 → 192.168.0.0 – 192.168.255.255
  • 169.254.0.0/16 → APIPA (not a normal private range)

Special Addresses

  • 127.0.0.1 → IPv4 loopback (this device)
  • ::1 → IPv6 loopback (this device)
  • x.x.x.0 → Network address (in a /24)
  • x.x.x.255 → Broadcast address (in a /24)

DORA — DHCP in 4 Steps

  • Discover → Client broadcasts for a server
  • Offer → Server proposes an address
  • Request → Client accepts the offer
  • Acknowledge → Server finalizes the lease

Static vs. Dynamic — When to Use Each

  • Static → Routers, switches, APs, servers, printers
  • Dynamic → Laptops, phones, guest devices, workstations
  • Reservation → Best of both: fixed IP, managed centrally

Final Exam Reminders

169.254.x.x = APIPA = DHCP failure. Device can only talk to other APIPA devices on the same segment.

Private vs. public = private (10.x / 172.16–31.x / 192.168.x) never routes on the internet directly; NAT translates it at the router.

Subnet mask 255.255.255.0 (/24) = the standard SOHO mask; 254 usable host addresses.

Default gateway = router's LAN address; missing gateway = local works, internet doesn't.

Static IP = predictable, manual, used for infrastructure devices. Dynamic IP = automatic via DHCP, used for end-user devices.

IPv6 :: shorthand = compresses one run of all-zero groups; can only appear once per address.

IPv6 fe80:: = link-local, automatically assigned, local segment only — not an error condition (unlike IPv4 APIPA).

DHCP reservation = fixed IP tied to a MAC address, managed from the DHCP server rather than typed locally.