Networking handbook · Chapter 2

IP addressing and scope

An address plan must answer who may use a value, which interface has it, which prefixes contain it and how packets reach it. A familiar-looking address settles only part of that question.

In this guide13 sections

Introduction

An address plan must answer who may use a value, which interface has it, which prefixes contain it and how packets reach it. A familiar-looking address settles only part of that question.

Assign addresses to interfaces

A device can have a wired interface, a wireless interface and a loopback, each with its own addresses. One interface can carry addresses from both IP families. A service name can in turn resolve to several interface addresses.

Duplicate use matters within the relevant routing and link context. Two independent organizations can both number a LAN with 10.1.0.0/16. When their networks interconnect, the same destination value becomes ambiguous unless the design accounts for the overlap.

Distinguish membership, purpose and reachability

A prefix defines a set by fixing its leading bits. A special-purpose registry records designated uses of certain sets. A routing table tells a particular system where to forward traffic. A value can have valid syntax and belong to a perfectly well-defined prefix without being reachable from a given host.

For IPv4, private-use allocations include 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. Documentation blocks are suitable for examples. Check the allocation and routing context before treating an example address as an operational assignment.

Record enough context for the next reader

Write the address family, address, prefix or route context, interface and intended use. For an IPv6 link-local address, include the interface or zone where needed. Identical link-local values can occur on separate links of one machine.

A default gateway entry points to a next hop. A resolver entry points to a DNS service. They can coincide on a small LAN, but keeping the two fields distinct lets another engineer reason about delivery and name resolution independently.

Diagram

  1. 172.16.0.0/12 · private allocation
  2. 172.23.48.0/20 · site block
  3. 172.23.50.0/24 · LAN
  4. 172.23.50.9 · interface
Each step fixes more leading IPv4 bits. All four entries can describe the same address at different levels of an inventory.

Worked examples

Read an interface worksheet from broad to specific

  1. Inspect 172.23.50.9/24. The second octet, 23, sits in the range 16–31 covered by 172.16.0.0/12.
  2. The site assignment 172.23.48.0/20 spans third octets 48 through 63, so it includes LAN 172.23.50.0/24.
  3. The interface is one member of the /24. Record the gateway 172.23.50.1 separately. The address hierarchy alone cannot tell you which device operates that gateway.

Network Prefix Reference: Compare an IPv4 /26 and an IPv6 /60

  1. For IPv4 /26, six positions vary. The count is 2⁶ = 64, and the final mask octet is 11000000, or 192.
  2. For IPv6 /60, 68 positions vary. Extending the prefix by four bits to /64 yields 2⁴ = 16 child prefixes.
  3. For 2001:db8:0:1200::/60, those children run from 2001:db8:0:1200::/64 through 2001:db8:0:120f::/64. Only the final digit of the fourth group changes.

Reference table

IP addressing and scope reference
Worksheet fieldSampleQuestion answered
Site allocation172.23.48.0/20Which parent contains the LANs?
Interface address172.23.50.9/24Which address is assigned here?
IPv4 gateway172.23.50.1Which router handles the default path?
Resolver172.23.48.53Where are recursive DNS queries sent?

Configuration example

  • Interface = office-east
  • IPv4 address = 172.23.50.9/24
  • Gateway = 172.23.50.1
  • Recursive DNS = 172.23.48.53

Common mistakes

  • Labeling every address beginning with 172 as private.
  • Omitting the interface from a link-local IPv6 record on a multi-interface system.

Frequently asked questions

Does a private address identify one organization worldwide?

No. Private address space is reusable. Include the site, routing domain or tenant when a record needs to identify a particular system.

Can a route include an address that is currently unused?

Yes. Prefixes describe sets of possible destinations. Interface assignments, leases and reservations determine which members a site actually uses.

Does valid address syntax mean that an address is reachable?

No. Syntax only establishes that the value can be represented. Assignment, routing, policy, and the state of the destination determine whether traffic can reach it.

Can two organizations use the same private IPv4 range?

Yes. Private ranges are reusable in separate networks. Connecting overlapping networks requires translation, renumbering, or another design that resolves the ambiguous prefixes.

Why record an interface along with an address?

A host may have several interfaces and can hold multiple addresses. The interface and routing context explain where the address is configured and which link uses it.

Is a gateway the same setting as a DNS resolver?

No. A gateway is a next hop for routed traffic; a resolver answers name queries. A small network may use one device for both roles, but the settings have different functions.

What does a prefix length tell an interface?

It identifies how many leading bits belong to the configured network prefix. The host uses that boundary to distinguish destinations it can reach directly from those sent to a router.

Can an address belong to a prefix and still be unusable on an interface?

Yes. The value may be reserved for a network or broadcast role, duplicated elsewhere, prohibited by policy, or not assigned to that link.

Does 'public IP' guarantee a globally reachable service?

No. Public allocation or classification does not prove that a route exists, a firewall permits traffic, or an application listens at the address.

When is a link-local address useful?

It supports communication on a directly attached link without relying on a globally routed address. It is not forwarded as an ordinary destination across routers.

What is the 100.64.0.0/10 IPv4 range used for?

It is shared address space designated for carrier-grade NAT use. It is distinct from the RFC 1918 private-use ranges and is not ordinary globally reachable unicast space.

Is 127.0.0.1 a private LAN address?

No. It is an IPv4 loopback address that refers to the local host. It is not used to reach another machine on the LAN.

Can an interface have more than one prefix?

Yes. An interface may have multiple addresses and prefixes, including both IPv4 and IPv6. Each route and source-address choice still follows its family and configuration.

What information is missing from an address-only inventory?

An address alone omits its prefix, interface, routing domain, purpose, assignment source, and reachability. Those fields are needed to interpret overlapping or scoped addresses.

Does a public address always belong to a single end device?

No. A public endpoint can front a router, reverse proxy, load balancer, or translation gateway that serves multiple internal systems.

Further learning and references