Private Addressing: Why Separate Networks Can Reuse IP Numbers
Imagine your printer and a neighbor's laptop both use 192.168.1.10. Separate networks can reuse this number because it's a private address.
An IP address is a number used to direct traffic across a network, a group of connected devices. Private addressing uses reserved numbers. They need to be unique within connected private networks, rather than worldwide.
IPv4 means Internet Protocol version 4. Its addresses have four groups of numbers separated by dots. IPv6, the other version of the protocol, has different addressing rules.
The Three Private IPv4 Ranges
RFC 1918, the private-addressing standard, reserves these blocks:
| Block notation | First address | Last address |
|---|---|---|
10.0.0.0/8 | 10.0.0.0 | 10.255.255.255 |
172.16.0.0/12 | 172.16.0.0 | 172.31.255.255 |
192.168.0.0/16 | 192.168.0.0 | 192.168.255.255 |
Watch the middle row: only 172.16 through 172.31 fall within that private block. The other 172 addresses aren't private.
The slash notation is called CIDR, short for Classless Inter-Domain Routing. Computers store an IPv4 address as 32 binary digits, or bits. The number after the slash counts the leading bits shared by addresses in the block. A smaller slash number describes a larger block. The CIDR specification defines this notation.
These are whole-block boundaries, rather than instructions to assign every listed number to a device. A particular network's layout determines which addresses it can use for devices.
- Give every phone, laptop and TV a steadier connection with Wi-Fi 6.
- Stop the buffering at busy hours, with room for many devices at once.
- Replace an aging router and get stronger coverage across more of your home.
An address can be configured manually or supplied automatically. DHCP, the Dynamic Host Configuration Protocol, lets a program called a DHCP server hand out addresses and other network settings. A dynamic assignment comes with a lease, a period during which the device can use it. The DHCP standard describes those allocation methods.
Receiving an address automatically doesn't tell you whether it's private. A manually assigned address can be private, too.
How Private Devices Reach the Internet
Private addresses aren't public internet destinations. To reach a public website, a network can use NAT, or network address translation, to change addressing information as traffic crosses its boundary.
One form of NAT translates port numbers as well as addresses. A port is a number that helps direct network traffic to the right application. This lets several internal devices share one external address while the translating system keeps track of where replies belong.
For example, a laptop and a phone can both contact a website through that shared external address. The translation records let replies go back to the appropriate device and application. The traditional NAT specification explains the address and port mappings.
How One Public Address Serves a Whole House
Address assignment, routing and translation are separate jobs. A router forwards traffic between networks. A home networking box can combine that job with a DHCP server and NAT. These jobs can also run separately.
The word “private” can also suggest a protection it doesn't supply. It doesn't encrypt traffic, which would make the contents unreadable without the right key. Nor does translating an address make someone's activity anonymous.
A firewall controls access by allowing or blocking traffic according to rules. Those rules matter even when devices have private addresses. Translation can be configured to let outside traffic reach an internal service, and an allowed connection can carry harmful traffic. An analysis of NAT and security by the Internet Engineering Task Force separates address translation from filtering and privacy.
Inside an organization, network segmentation can separate groups of devices and restrict traffic between them. Choosing different private address ranges alone doesn't enforce those restrictions.
When Two Networks Need the Same Number
Two offices may each store files at 192.168.1.10. If they connect their networks, which computer should that address reach?
Their address plans need to agree. One office may have to change its numbers to avoid conflicts.
Network Address Translation: The Address Changes Midjourney

Subnet: Where an Address Group Ends and Routing Begins

VPNs: Follow the Protected Connection to Its Exit

QUOTE:
"Amateurs hack systems, professionals hack people."
