Table of Contents
IP addressing is the system that gives every device on a network a unique logical address, similar to how every house has a postal address. Without IP addresses, devices could not find or talk to each other across local networks or the global internet.
In this chapter you will get the big picture of what IP addresses are and what they are used for. Later chapters in this section will focus specifically on IPv4 fundamentals, public and private addresses, subnet masks, CIDR, and related topics, so this chapter will stay at a high level and avoid the details that belong to those titles.
What an IP Address Is
An IP address is a logical identifier assigned to a network interface. It tells you both who the device is and roughly where in the network it is located. The word “logical” is important. It means the address is not permanently tied to the hardware. It can be changed, reassigned, and organized in flexible ways, unlike a burnt‑in hardware identifier.
There are two main versions of IP in use today, IPv4 and IPv6. Both use the same overall idea, but they represent addresses differently and have different sizes and capabilities. The specific formats and differences between them are covered in the IPv4 and IPv6 chapters, so for now it is enough to know that both are IP addressing systems that coexist on modern networks.
Role of IP Addresses in Communication
When one device wants to send data to another across an IP network, it needs to know the destination’s IP address. The data is broken into packets, and each packet carries a source IP address and a destination IP address in its header. The source IP is where the packet came from. The destination IP is where it should go.
Routers use the destination IP address, not the source, to decide how to forward packets step by step across different networks. At each hop, a router looks at the destination address, consults its routing table, and forwards the packet toward the next appropriate network. This continues until the packet reaches a router that is directly connected to the destination network, where the final delivery to the device happens.
Because IP addresses are used for forwarding, they must fit into a structured scheme that makes routing decisions efficient. That structure, including network and host portions, classes, and masks, will be explored in later chapters. At this stage, remember that IP addresses let routers and hosts unambiguously identify where traffic should go.
IP Addressing and Layers
In the OSI model, IP addressing lives at the Network layer. At this layer, devices deal with logical addresses and routing across multiple physical networks. Below the Network layer, the Data Link layer uses hardware addresses that are specific to a local link. Above the Network layer, the Transport and Application layers work with ports, protocols, and application data.
An important consequence of this is that a single device may have several kinds of identifiers at once. It may have a MAC address at the Data Link layer and one or more IP addresses at the Network layer, plus ports and application identifiers at higher layers. IP addresses are the key logical identifiers that allow communication to move beyond a single local link and across an internetwork or the entire internet.
Structure and Hierarchy in IP Addressing
Although IPv4 and IPv6 differ in size and notation, both use hierarchical addressing. Hierarchical means the address can be split into parts that describe larger and smaller scopes, similar to how a mailing address breaks down into country, city, street, and house number.
In IP terms, addresses are divided into a part that identifies a network and a part that identifies a host on that network. This separation is essential. Routers can make forwarding decisions based only on the network part, without caring about every individual host. Hosts on the same network part can communicate directly at the Data Link layer, while communication between different network parts requires a router.
The exact way that the network and host pieces are separated depends on subnet masks and prefix lengths. Those mechanisms are central topics in the upcoming IPv4 fundamentals, subnet masks, and CIDR chapters. For now you only need to understand that IP addresses are not flat lists of numbers. They carry built‑in structure that makes large‑scale routing possible.
Logical Addressing vs Physical Location
IP addressing is flexible precisely because it is logical. A device can keep the same MAC address when you move it to a different network, but its IP address will usually change to match the new network it is connected to. The logical address expresses “where this device is in the network’s numbering plan” rather than describing a physical port or cable.
This flexibility allows network administrators to design and redesign how addresses are allocated based on geography, department, security zone, or service type. For instance, all printers might be in one IP range, all servers in another, and all wireless clients in another, even if they are physically in the same building. Routers and switches then use these IP ranges to control traffic and apply policies.
Because IP addresses are not tied to hardware, they can also be assigned dynamically using services such as DHCP. This allows devices to join and leave networks easily, which is critical in environments with mobile devices, guest access, and cloud resources. The details of DHCP appear in later chapters, but the key idea is that IP addressing supports both static and dynamic allocation strategies.
IPv4 and IPv6 Coexistence
Modern networks often carry both IPv4 and IPv6 traffic at the same time. A single device can have multiple IP addresses, for example one IPv4 address and one or more IPv6 addresses on the same interface. Applications can choose which protocol to use, and operating systems can prefer IPv6 when available.
From the perspective of addressing, this coexistence means that many of the concepts you learn about IPv4, such as network and host portions, still make sense in IPv6, even though the concrete notation and size differ. Later chapters will go into detail about why IPv6 was introduced and how its larger address space and features expand what IP addressing can do.
Addressing as the Foundation of IP Services
Many higher level network services either build on IP addressing or manage it. Name resolution systems such as DNS map human friendly names to IP addresses. Routing protocols build and share information about which IP address ranges are reachable through which routers. Security controls such as firewalls and ACLs often filter or allow traffic based on source and destination IP addresses.
Because so much of networking is layered on top of IP addressing, a solid understanding of addresses is fundamental before you explore topics such as routing, DNS, security, and cloud networking. In the rest of this section, you will move from this conceptual overview into the specifics of IPv4, the different types of addresses that exist, how networks are subdivided or combined through subnetting and supernetting, and how to plan an address space for real deployments.
Core Principles of IP Addressing
There are a few key principles that you should keep in mind as you go deeper into the upcoming IP addressing topics.
First, every IP speaking device must be uniquely identifiable within its own IP network. If two devices share the same IP address on the same network, you get an IP address conflict, and communication breaks in unpredictable ways.
Second, IP addresses must be consistent with the device’s attached network. An address is not chosen arbitrarily. It must belong to the range that the network is using. If a device is assigned an IP that does not match the local network, it will not be able to communicate correctly, except perhaps with misconfigured peers.
Third, IP addressing, routing, and subnetting are closely connected. The address you assign to a device, the subnet mask or prefix length you use, and the routes you configure on routers all need to align. Misalignment between these creates subtle connectivity issues.
These principles underpin all the detailed techniques you will learn next. They explain why careful address planning, controlled assignment, and a solid understanding of address structure are so important for anyone who works with networks.
Every IP speaking device must have a unique and correctly configured IP address within its network, or reliable communication is impossible.
With these fundamentals in mind, you are ready to examine IPv4 in detail, including the standard notation, the concepts of public and private addresses, and the tools used to divide and organize address space such as subnet masks and CIDR.