CompTIA Network+ N10-009: IP Addressing and Subnet Configuration
Overview of Internet Protocol Version 4 (IPv4)
- Core Architecture and Scope:
- Internet Protocol version 4 (IPv4) represents the fourth revision of the Internet Protocol.
- Operates on a address structure, providing a theoretical ceiling of approximately () unique addresses.
- Established in the early 1980s, the IPv4 address space has become largely exhausted due to the exponential growth of internet-connected hosts worldwide.
IPv4 Unicast Address Allocations
Public IP Addresses:
- Globally unique addresses designated specifically for use across the public internet.
- Enable any internet-connected host to be uniquely identified and routed to from any other host globally.
- Class-based Public IP Address ranges:
- Class A: –
- Class B: –
- Class C: –
Private IP Addresses:
- Designated exclusively for use within local area networks (LANs) and internal enterprise private networks.
- Non-routable across the public internet; traffic targeting these addresses cannot pass public internet routing infrastructure without address translation.
- Permit multiple private internal devices to interconnect locally and communicate externally via intermediate translating devices (such as Network Address Translation / NAT routers) without depleting individual public IP addresses for every host.
- Class-based Private IP Address ranges:
- Class A: –
- Class B: –
- Class C: –
Automatic Private IP Addressing (APIPA):
- Built-in operating system capability (specifically within Windows environments) where a host self-assigns an address upon failing to receive an address configuration from a Dynamic Host Configuration Protocol (DHCP) server.
- Reserved Address Range: – (specifically host-assignable from to ).
- Facilitates ad-hoc, automatic local networking between systems on the same physical subnet when no DHCP service is present.
- Does not support routing to the internet; APIPA provides strictly local link-level communication.
Specialized IPv4 Address Types and Scopes
Multicast Addresses:
- Address Range: – (designated as Class D).
- Architecture: Delivers service-based group messaging across a one-to-many communications topology.
- Packets sent to a multicast address are processed only by hosts registered to that specific multicast group.
Broadcast Addresses:
- Layer 3 (Network Layer) Broadcast:
- Address:
- Function: Transmits packets to every active host within the local logical network segment at the IP layer.
- Layer 2 (Data Link Layer) Broadcast:
- MAC Address:
- Function: Delivers frames to all connected hardware network interfaces within the local collision/broadcast domain at the data link layer.
Loopback Addresses:
- Address Range: –
- Function: Enables an individual host to send packets to its own internal software networking stack.
- Practical Use: Diagnostics and testing of the local network interface and internal TCP/IP implementation without sending traffic onto an external transmission medium.
IPv4 Subnetting, Classful Architecture, and Classless Routing
IPv4 Subnetting Principles:
- Subnetting involves partitioning a contiguous network space into two or more smaller, distinct sub-networks (subnets).
- Primary purposes: Enhancing address allocation efficiency, improving network security, isolating broadcast traffic, and providing granular management over IP pools.
- Optimizes organizational allocation by structuring logically segmented topologies over shared physical infrastructure.
Classful Addressing:
- Early allocation system establishing strict, rigid boundaries by segmenting the entire IPv4 address space into five distinct classes: Class A, Class B, Class C, Class D (multicast), and Class E (reserved/experimental).
- Each class enforced a fixed, default subnet mask with a rigid, predetermined host-to-network capacity.
- Limitations: Proved inflexible and highly wasteful of address blocks, precipitating address depletion and necessitating classless networking.
Classless Inter-Domain Routing (CIDR) and Variable-Length Subnet Masking (VLSM):
- Classless Inter-Domain Routing (CIDR):
- Replaced the classful paradigm by decoupling prefix assignment from fixed octet boundaries.
- Expressed using CIDR notation: an IP address followed by a forward slash () and a decimal number indicating the prefix bit-length (e.g., signifies that the leading bits designate the network identifier).
- Drastically increases allocation efficiency and slows the depletion of global routing tables.
- Variable-Length Subnet Mask (VLSM):
- Allows subnets carved from the same parent network to employ differing mask lengths matched to the exact host requirements of each sub-network.
- Prevents address waste by eliminating arbitrary, uniform subnet sizing.
Overview of Internet Protocol Version 6 (IPv6)
Core Architecture and Addressing Scale:
- Internet Protocol version 6 (IPv6) is the modernized protocol standard engineered to supersede IPv4.
- Utilizes a address structure, yielding an address space of unique addresses.
- Completely resolves the address exhaustion limitations inherent to IPv4, accommodating a virtually limitless inventory of globally routable end devices.
Key Functional Advantages:
- Massive Address Space: Expands capacity to addresses, ensuring long-term scalability.
- Standardized Integrated Security: IPSec is incorporated directly into the protocol suite as a baseline standard, standardizing end-to-end encryption and authentication.
- Improved Performance and Efficiency:
- Traditional network-wide broadcast transmissions are eliminated entirely, eliminating broadcast storm vulnerability.
- Operates natively on anycast and multicast topologies, minimizing unnecessary link chatter.
- Simplified Network Configuration and Management:
- Native plug-and-play capability for localized links utilizing Link-Local addressing.
- Dynamic autoconfiguration support allows host network adapters to automatically generate their own host address using their interface MAC address combined with network router advertisements.
IPv6 Address Structure and Anatomy

- Address Segmentation Breakdown:
- An IPv6 address encompasses total bits, separated evenly into two primary halves: a Prefix and a Interface Identifier.
- Prefix ( bits):
- Identifies the specific anycast or unicast network segment.
- Composed of two distinct logical sub-components:
- Global Routing Prefix ( bits): Assigned to the organization by internet registries and service providers for global routing.
- Subnet-ID ( bits): Defines internal topological subnets managed directly by network administrators.
- Interface-ID ( bits):
- Uniquely distinguishes the individual physical or logical network interface of an individual host on that specified network.
IPv6 Address Shortening and Compression Rules

Standard Full Hexadecimal Representation:
- An uncompressed address consists of eight groups of four hexadecimal digits (hextets) delimited by colons, for example:
2001:0db8:3c4d:0012:0000:0000:1234:56ab.
- An uncompressed address consists of eight groups of four hexadecimal digits (hextets) delimited by colons, for example:
Rule 1: Dropping Leading Zeros:
- Any leading zeros occurring inside an individual hextet can be dropped.
- This rule can be applied across any number of individual fields in the address.
- Example applied to original:
2001:0db8:3c4d:0012:0000:0000:1234:56abbecomes2001:db8:3c4d:12:0000:0000:1234:56ab.
Rule 2: Condensing Four Zeros to a Single Zero:
- Any individual hextet consisting entirely of
0000may be simplified and written as a single0. - This rule can be applied to any number of fields across the address.
- Example applied following Rule 1:
2001:db8:3c4d:12:0000:0000:1234:56abbecomes2001:db8:3c4d:12:0:0:1234:56ab.
- Any individual hextet consisting entirely of
Rule 3: Compressing Consecutive Zero Fields with a Double Colon (
::):- Continuous contiguous blocks containing one or more consecutive all-zero fields can be abbreviated into a single double colon (
::). - Critical Constraint: A double colon (
::) can appear only once within any single IPv6 address. Using it multiple times creates ambiguity regarding the exact number of zero bits missing from each separate section. - Example applied following previous steps:
2001:db8:3c4d:12:0:0:1234:56abcompresses to2001:db8:3c4d:12::1234:56ab.
- Continuous contiguous blocks containing one or more consecutive all-zero fields can be abbreviated into a single double colon (
Specialized IPv6 Address Types
Multicast Addresses:
- Address Range / Prefix:
FF00::/8(orFF00/8). - Characteristics: Directs packets to a predefined group of interfaces subscribing to a specific service or application.
- Implements one-to-many communication patterns, handling jobs fulfilled by broadcast in earlier network standards.
- Address Range / Prefix:
Loopback Address:
- Address Expression:
::1(representing zeros terminated by a single one:0:0:0:0:0:0:0:1). - Characteristics: Permits a local node to send data directly to itself.
- Used primarily for verifying internal network software configuration and checking host network interface integrity.
- Address Expression:
Anycast Addresses:
- Address Assignment: Allocated from standard unicast address ranges; lacks a distinct, separate address block ( prefix notation).
- Characteristics: Assigned to multiple physical nodes supplying the exact same service across different network locations.
- Operates on a one-to-nearest delivery mechanism: traffic addressed to an anycast target is forwarded by the routing topology to whichever interface is topologically closest to the originating node.
- Replaces legacy IPv4 broadcast functions without causing universal host interruption.
Unspecified Address:
- Address Expression:
::(all bits configured as zero). - Characteristics: Serves as a placeholder indicating the complete absence of a configured address.
- Functions as the default route designation inside routing tables and represents the "any" match parameter within access control or filter list configurations.
- Address Expression: