Why Is Logical Addressing Essential on the Internet?

Why IP (logical) addresses, not MAC addresses, make internet routing work: prefixes, CIDR, ARP, private ranges, IPv6 and what it means for cloud engineers.

Jul 30, 2025 - 10:19
Nov 12, 2026 - 08:17
 0  46
Why Is Logical Addressing Essential on the Internet?

Logical addressing is essential because the internet is made of millions of separate networks, and a hardware (MAC) address only works inside one of them. An IP address carries a network part and a host part, so routers can forward a packet toward the right network hop by hop without knowing every device. IPv4 uses 32-bit addresses and IPv6 uses 128-bit addresses.

Every packet you send, from a web request to a Kubernetes health check, depends on this scheme. This post explains what a logical address is, why physical addresses alone cannot run the internet, how routers use prefixes, and why DevOps and cloud engineers deal with IP planning almost daily. It belongs to our networking fundamentals series, which starts with the OSI model and why it still matters.

Key takeaways

  • A logical address (an IP address) is assigned by software and identifies where a device sits in the network. A physical address (a MAC address) is tied to the network interface and is used only on the local link.
  • IPv4 addresses are 32 bits, defined in RFC 791 (September 1981). IPv6 addresses are 128 bits, defined in RFC 8200.
  • Routers forward packets by matching the network prefix of the destination address. CIDR notation such as 10.20.0.0/16 states how many leading bits form that prefix.
  • ARP (RFC 826) connects the two layers on Ethernet by finding the MAC address for an IP address on the local network.
  • Cloud VPCs, Kubernetes clusters and container networks all rely on careful IP planning. Overlapping ranges are a common cause of painful outages and migrations.

Logical versus physical addressing

Every network interface has a physical address, usually a 48-bit MAC address on Ethernet and Wi-Fi. It is set by the hardware or the virtualisation layer and stays the same wherever the device goes. That is useful on a single local network, where switches learn which port each MAC address lives behind.

It is useless for finding a device across the world. MAC addresses are not organised by location. Two laptops with consecutive MAC addresses could be in Pune and São Paulo. A router that tried to forward traffic by MAC address would need an entry for every device on the internet, which is impossible.

A logical address solves this by being hierarchical and assigned according to where the device is attached. Every device on a given subnet shares the same network prefix. Routers only need to know how to reach prefixes, not individual hosts. When a laptop moves to a different network, it gets a new IP address that matches its new location, while its MAC address stays the same.

PropertyPhysical (MAC) addressLogical (IP) address
OSI layerData link (layer 2)Network (layer 3)
Size48 bits on Ethernet32 bits (IPv4) or 128 bits (IPv6)
Assigned byHardware vendor or hypervisorNetwork administrator, DHCP, SLAAC or cloud platform
ScopeLocal link onlyEnd to end across networks
Changes when device moves?NoYes, to match the new network
Used bySwitchesRouters

Our separate post on the difference between a MAC address and an IP address goes further into the layer 2 side.

Why logical addressing is essential

It makes routing scale

The internet works because routers aggregate. An internet service provider can announce one prefix that covers thousands of customers, and the rest of the world only needs that one route. RFC 4632, which defines Classless Inter-domain Routing (CIDR), describes this as advertising a single aggregate route for a larger block, and it is the main reason global routing tables have not grown out of control. Without hierarchical logical addresses there would be nothing to aggregate.

It works across different link technologies

A packet from your phone might cross Wi-Fi, fibre, a carrier's backbone and a data centre's Ethernet before reaching a server. Each of those links has its own physical addressing, or none at all. The IP address stays the same from end to end, which lets very different networks cooperate. This is what the "inter" in internet refers to.

It separates identity from location, partly

An IP address says where a device is attached right now. DNS adds a stable name on top, so users type a hostname and get whichever address is current. Load balancers, failover and blue/green deployments all rely on changing which IP addresses sit behind a name without users noticing.

It lets administrators design and secure networks

Because addresses are assigned in blocks, you can group systems into subnets by purpose: public web servers in one subnet, databases in another with no internet route. Firewall rules, security groups and network policies are written in terms of these ranges. Logical addressing gives security controls something to refer to.

How a router uses an IP address

An IPv4 address is 32 bits, usually written as four decimal octets such as 192.168.10.25. A prefix length, written after a slash, says how many leading bits identify the network. In 192.168.10.25/24, the first 24 bits (192.168.10) are the network and the last 8 bits identify the host.

When a router receives a packet, it looks up the destination address in its routing table and picks the most specific matching prefix, the one with the longest match. It then forwards the packet to the next hop for that prefix. Each router along the path does the same thing, and none of them needs the whole picture. IPv4 headers include a Time to Live field that each router decreases, so a packet caught in a routing loop is eventually dropped. IPv6 has the equivalent Hop Limit field, decremented by one at each forwarding node.

# Show addresses and prefix lengths on a Linux host
ip -brief address

# Show the routing table and the default gateway
ip route

# Ask the kernel which route it would use for a destination
ip route get 8.8.8.8

Where ARP fits

Logical addressing gets a packet to the right network. The last hop still needs a physical address. On Ethernet, the Address Resolution Protocol, described in RFC 826 in November 1982, does this. The sender broadcasts "who has 192.168.10.1?" and the owner replies with its MAC address. The sender caches the answer and frames the packet to that MAC. IPv6 uses Neighbor Discovery for the same job. Our post on how ARP maps IP addresses to MAC addresses walks through a packet capture.

Private addresses and NAT

IPv4 has about 4.3 billion addresses (2 to the power of 32), which is not enough for every device. RFC 1918 reserves three ranges for private networks that are not routed on the public internet:

  • 10.0.0.0/8 (10.0.0.0 to 10.255.255.255)
  • 172.16.0.0/12 (172.16.0.0 to 172.31.255.255)
  • 192.168.0.0/16 (192.168.0.0 to 192.168.255.255)

Homes, offices and cloud VPCs use these ranges internally. Network address translation (NAT) on a router or gateway maps many private addresses to one or a few public ones when traffic leaves for the internet. NAT extended IPv4's life by decades, but it also hides end-to-end addresses, complicates some protocols and makes logs harder to trace.

IPv6: the long-term answer

IPv6, specified in RFC 8200 (which obsoletes RFC 2460), increases the address size from 32 to 128 bits. That is enough space to give every device a globally unique address without NAT. Some other differences matter in practice. Routers along the path do not fragment IPv6 packets; only the source does, which pushes path MTU discovery to the hosts. The base header has a fixed layout that is simpler for routers to process. For private use, RFC 4193 defines unique local addresses in fc00::/7, and locally assigned prefixes fall under fd00::/8.

Most networks today run IPv4 and IPv6 side by side, called dual stack. Cloud providers support IPv6 in their virtual networks and load balancers, and Kubernetes supports dual-stack clusters. Our post on IPv6 in cloud environments covers adoption in more depth.

Why DevOps engineers care about logical addressing

VPC and subnet design

Creating a VPC on AWS, a VNet on Azure or a VPC on Google Cloud starts with choosing a CIDR block. That block is split into subnets for each availability zone and tier. Choose too small a range and you run out of addresses when the cluster grows. Choose a range that overlaps with your office network or another VPC and you cannot peer them or connect them over VPN without renumbering. Our guide to CIDR notation shows how to calculate ranges.

Kubernetes networking

A Kubernetes cluster typically uses separate ranges for nodes, pods and services. Depending on the network plugin, pods may take addresses directly from the VPC subnet, which uses addresses quickly, or from an overlay range. Planning these ranges up front avoids exhausting a subnet when the cluster scales out.

Containers and local development

Docker creates bridge networks with private ranges on each host. If those ranges clash with a corporate VPN, developers suddenly cannot reach internal services. Knowing how to inspect and change these ranges saves hours of confusion.

Firewalls, security groups and allow-lists

Most network security rules are written as IP ranges. A rule that allows 0.0.0.0/0 on port 22 opens SSH to the entire IPv4 internet. Reading and writing CIDR ranges correctly is a basic security skill.

Troubleshooting

Many incidents come down to addressing: a missing route, a wrong default gateway, a duplicate IP, an exhausted DHCP pool or a DNS record pointing at an old address. Commands such as ip route get, ping, traceroute and dig are the first tools to reach for. Our post on what happens when two devices share an IP address covers one of the more confusing cases.

A packet's journey, step by step

It helps to follow one request. Suppose a laptop at 192.168.1.20/24 on a home network opens a web page hosted on a server with a public IPv4 address.

First, the laptop compares the destination with its own prefix. The destination is outside 192.168.1.0/24, so the packet must go to the default gateway, the home router at 192.168.1.1. The laptop uses ARP to find the router's MAC address, then sends an Ethernet frame to that MAC. Inside the frame, the IP packet still carries the server's IP address as its destination.

The home router performs NAT, replacing the private source address with its own public address, and forwards the packet to the internet provider. From there, each router looks up the destination in its table, picks the longest matching prefix and forwards the packet to the next hop. At each hop the layer 2 frame is rebuilt with new MAC addresses for that link, while the IP destination stays the same. The TTL drops by one at every router.

Eventually the packet reaches a router attached to the server's network. That router uses ARP (or IPv6 Neighbor Discovery) one last time to find the server's MAC address and delivers the frame. The reply travels back the same way, and the home router reverses its NAT translation so the response reaches the laptop.

The key point is the split of duties. MAC addresses change at every hop and only matter locally. The IP address is the one constant across the whole path, and it is the reason routers far away can make a sensible forwarding decision.

Common mistakes with IP addressing

Overlapping ranges across VPCs and on-premises networks are the most expensive mistake, because fixing them later means renumbering live systems. Keep a central record of every allocated range, even if it is only a shared spreadsheet at first.

Undersized subnets come next. Cloud providers reserve some addresses in every subnet, and Kubernetes can consume addresses quickly. Leave room to grow.

Treating IPv6 as optional is the third. Even if your applications use IPv4 today, operating systems and clients prefer IPv6 when it is available, and security rules need to cover both.

Learning path

Logical addressing is foundational for Linux administration, cloud networking and Kubernetes. If you want guided practice with subnetting, routing tables and Linux network tools, the Linux admin training in Pune covers them hands-on. It runs in our Kharadi classroom and live online, and learners in other cities, including Bangalore, attend online.

Frequently asked questions

What is logical addressing?

Logical addressing is the use of software-assigned network-layer addresses, such as IPv4 and IPv6 addresses, that identify where a device is attached so routers can forward packets across networks.

Why can't the internet route using MAC addresses?

MAC addresses are not organised by location, so routers would need an entry for every device worldwide. IP addresses are hierarchical, so routers only need routes to network prefixes.

How long are IPv4 and IPv6 addresses?

IPv4 addresses are 32 bits, as defined in RFC 791. IPv6 addresses are 128 bits, as defined in RFC 8200.

What are the private IPv4 ranges?

RFC 1918 reserves 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 for private networks. They are not routed on the public internet.

What does ARP do?

ARP, defined in RFC 826, finds the Ethernet MAC address that matches an IP address on the local network, so the packet can be delivered on the final hop.

Do routers fragment IPv6 packets?

No. In IPv6, fragmentation is done only by the source node, not by routers along the path.

Why does IP planning matter in the cloud?

VPC and subnet ranges are hard to change later. Overlapping or undersized ranges block peering, VPN connections and cluster growth.

References

What's Your Reaction?

Like Like 0
Dislike Dislike 0
Love Love 0
Funny Funny 0
Angry Angry 0
Sad Sad 0
Wow Wow 0
Mridul I am a passionate technology enthusiast with a strong focus on DevOps, Cloud Computing, and Cybersecurity. Through my blogs at DevOps Training Institute, I aim to simplify complex concepts and share practical insights for learners and professionals. My goal is to empower readers with knowledge, hands-on tips, and industry best practices to stay ahead in the ever-evolving world of DevOps.