Skip to content
Tech Atlas, home
Search
Esc
  • All roadmapsBrowse every learning path
  • ExploreFind a technology area
  • ProjectsGuided projects and builds
  • My AtlasYour learning dashboard
Lesson 4 of 6 · Concept · 15 min · revision 1

Special-purpose ranges: private, CGNAT, loopback, link-local and documentation

Know what the special-purpose IPv4 blocks are for (RFC 1918 private, RFC 6598 shared CGNAT space, loopback, RFC 3927 link-local and RFC 5737 documentation), what seeing one tells you during an incident, and when using one in your own plan causes trouble.

Contentsand lesson path

What you will learn

  • Explain private, shared (CGNAT), loopback, link-local and documentation ranges and when each is used.

Prerequisites: Networking Basics

01. Why it matters

Suppose you inherit a network diagram with these blocks on it: 10.8.0.0/16 for headquarters, 172.32.0.0/16 for a DMZ, 100.64.10.0/24 for a test lab, hand-configured 169.254.x.x addresses on a storage cluster's back-to-back links, and an NTP server at 192.0.2.123 copied from a vendor's sample configuration. None of these is an ordinary public address that you bought from a registry, and each one means something different. One is a sound choice, one is not private at all, one collides with what Internet providers use, one goes against the standard that defines it, and one points at a server that cannot exist.

The IANA IPv4 Special-Purpose Address Registry lists the blocks set aside for particular jobs, with flags for each one: whether it may be used as a source or destination, whether routers may forward it, and whether it is globally reachable. Knowing the main blocks lets you read an address as evidence (another NAT upstream, a failed DHCP request, an example pasted into production) and keeps your own plans out of trouble.

02. Private space (RFC 1918) and shared space for carrier NAT (RFC 6598)

The first idea most people learn is a two-way split: public addresses on the Internet, private addresses inside organisations. RFC 1918 reserves three private blocks:

  • 10.0.0.0/8, from 10.0.0.0 to 10.255.255.255;
  • 172.16.0.0/12, from 172.16.0.0 to 172.31.255.255;
  • 192.168.0.0/16, from 192.168.0.0 to 192.168.255.255.

Any organisation may use them without asking anyone, so the addresses are unique only inside that organisation, and RFC 1918 says routing information about them must not be passed between enterprises; providers are expected to filter it. To reach the Internet, hosts with private addresses go through translation, usually Network Address Translation (NAT) on the edge router. The middle block is where people slip: a /12 covers 16 consecutive values of the second octet, 16 to 31, so 172.32.0.0 is already outside it: ordinary global address space that some other organisation holds. The DMZ in the opening diagram is not private at all.

Private space has one well-known cost, which RFC 1918 itself describes: when two organisations that both use it merge, or connect their networks over a VPN, their addresses may clash and part of one network must be renumbered. Home routers make this worse because so many use 192.168.0.0/24 or 192.168.1.0/24; a staff member at home on 192.168.1.0/24 usually cannot reach an office subnet with the same numbers over a VPN without extra NAT. Choosing a less obvious block, such as a randomly picked /16 inside 10.0.0.0/8, makes collisions less likely, though never impossible.

The two-way split misses a third category. As public IPv4 addresses ran out, Internet providers began to put many subscribers behind one carrier-grade NAT (CGN). The link between the provider's CGN and each customer router then needed addresses. Public ones were scarce, and RFC 1918 ones were risky, because the customer might use the same block on the inside of the router. RFC 6598 explains this in section 3 and reserves 100.64.0.0/10, from 100.64.0.0 to 100.127.255.255, as Shared Address Space for that link. Like RFC 1918 space it is not globally routable, but RFC 6598 limits it more tightly: it is for provider networks, or for equipment that can translate addresses when the same range appears on two different interfaces, and packets using it must not be forwarded across provider boundaries.

Seeing an address such as 100.97.3.20 on a router's Internet-facing interface therefore tells you two things. The router does not have a public address of its own, and a second NAT sits upstream at the provider. Outbound connections work, but unsolicited inbound connections, such as a port forward for a webhook, stop at the provider's CGN. The fixes live outside your router: a public address from the provider, a tunnel your side opens outward, or IPv6. DHCP & NAT covers how NAT keeps track of these connections.

04. Reading addresses during an incident, and when not to use a block

During an incident, put the host's address and the router's Internet-facing address side by side. A host on 169.254.x.x most likely never got an answer from DHCP, so look at layer 2 and the DHCP path first. A host on a normal private address behind a router whose Internet side is in 100.64.0.0/10 has working local addressing and outbound access, and sits behind provider CGN, so unsolicited inbound connections will not arrive without the provider's help. A host trying to reach an address in one of the documentation blocks is following an example, not a real server.

The same knowledge keeps your own plans out of trouble:

  • Do not number internal networks from 100.64.0.0/10. It looks attractive because it is "not RFC 1918, so it will never clash", but RFC 6598 (section 4) warns that organisations using it for anything other than CGN are likely to have problems when they connect to a CGN service. The day a provider hands one of your sites a WAN address from the same block, the two uses overlap.
  • Do not configure 169.254.0.0/16 by hand. RFC 3927 (section 1.6) says these addresses should not be configured manually or by DHCP, and tells administrators to use RFC 1918 space instead. The storage links in the opening diagram should move to a private block.
  • Do not let documentation addresses into production. Examples, runbooks and labs are exactly where they belong; a production configuration that still contains one is a bug.
  • RFC 1918 is fine in examples of private plans, as in lesson 3, because those addresses are meant to be reused. Prefer RFC 5737 when an example stands for a host on the Internet, so that nobody who copies it reaches a real machine.

05. Check your understanding

Practice check · 3 questions

What an address tells you

Decide what each address means before you look at the options.

Q1. A traceroute from your office shows a hop at `172.32.4.18`. Is that address from RFC 1918 private space?
Q2. Years ago a company numbered its lab from `100.64.0.0/16`, reached from branches over a VPN route for that `/16`. Now one branch router's WAN gets `100.64.31.7/22` from its ISP. Staff at that branch can no longer reach some lab servers. Why?
Q3. A firewall log shows a production server sending NTP queries to `203.0.113.10` every minute, and none is ever answered. What is the most likely explanation?
Practice only: not graded, not saved, not evidence.

06. Apply it

List every IPv4 address on your own machine (ip -br addr on Linux, ipconfig on Windows), including loopback, Docker or VM bridges and any VPN interface, and classify each one against the registry table above. If you can see your home or office router's Internet-facing address, check whether it is in 100.64.0.0/10. Then review the addressing plan you started in lesson 3: confirm that it uses only RFC 1918 space, that no block overlaps a range your VPN users are likely to have at home, and that every example in its documentation for Internet hosts uses RFC 5737.

Next, see these rules on the wire in the on-link vs off-link delivery lab.

07. Review prompt

Without the table, write down the private, shared, loopback, link-local and documentation blocks with their prefixes, then give for each one a conclusion you could draw from seeing it during an incident and one way that using it in your own plan could go wrong.

References

Your progress

Reading state

Sign in to save that you finished reading this lesson.

Sign in to mark reading complete

Prove this skill

8 questions · about 6 minutes · scored automatically. Marking a lesson as read never demonstrates a skill.
Take the skill check