RFC 1918: Private IPv4 address spaces
Summary
RFC 1918 by Yakov Rekhter, Robert Moskowitz, Daniel Karrenberg, Geert Jan de Groot and Eliot Lear reserved three IPv4 ranges for private networks in February 1996: 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. Addresses from these ranges may be used freely within an enterprise but must not be routed on the internet. The text explicitly linked this to the goal of saving address space and slowing the growth of routing tables.
Why private addresses
In the mid-1990s two problems loomed: IPv4 address space was becoming scarce, and providers’ routing tables were growing faster than routers could keep up. RFC 1918 therefore divides hosts into three groups: those that need no outside access at all, those for which a few mediated services such as mail or web proxies suffice, and those that must be globally reachable. Only the last group needs public addresses.
The price is stated right away: anyone who later moves from private to public addresses or merges two networks may have to renumber. Private addresses are unambiguous within an enterprise but ambiguous between enterprises.
What became of it
In practice RFC 1918, together with NAT, became the basis of almost every home and company network. This extended the life of IPv4 by decades but created the well-known follow-on problems: overlaps with VPNs and company mergers, protocols that fail at NAT, and the widespread but wrong assumption that private addresses provide protection.
RFC 1918 requires routers on the internet to filter these prefixes and that references to private addresses, for example in DNS records, do not leak outside. Both are still often ignored today.
Ideas
- Three ranges are reserved for private networks.
- Private addresses are not routed on the public internet.
- Only hosts that must be globally reachable need public addresses.
- Moving between private and public can require renumbering.
- Private addresses are ambiguous between organisations.
- References to private addresses should not leave the enterprise.
Insights
- An address-saving standard became the architecture of the internet together with NAT and delayed IPv6 by years.
- Ambiguous addresses are cheap to set up and expensive at every later coupling of networks.
Facts
- The three ranges are 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16.
- RFC 1918 is a Best Current Practice (BCP 5) and replaces RFC 1597 and RFC 1627.
- The text calls the blocks the 24-bit, 20-bit and 16-bit block.
- For larger internal networks RFC 1918 recommends the 24-bit block 10.0.0.0/8.
References
- RFC 1918: Address Allocation for Private Internets
- RFC 6598: IANA-Reserved IPv4 Prefix for Shared Address Space (2012)
Remarks
- A common planning mistake is 192.168.0.0/24 or 192.168.1.0/24 in one’s own network: many home routers use these prefixes too, which disrupts VPN access from home offices.
Recommendations
- Choose internal prefixes from little-used parts of 10.0.0.0/8 or 172.16.0.0/12 to avoid overlaps with home networks.
- Drop private source addresses at the outer border in both directions.
- Do not publish internal DNS names with private addresses in public zones.
Read the RFC at the RFC Editor
Found a mistake or have something to add? Get in touch.
Links to the original source and the Web Archive open in a new tab.