Private and public addressing
On this page
Millions of homes can use the same address numbers at the same time. Your lab also uses numbers another learner’s lab uses. Nothing breaks while those networks stay separate. Here you will recognize the ranges that allow this reuse and avoid treating an address as proof of safety or Internet access.
Before you start
Section titled “Before you start”Finish Networks, hosts, and prefixes after Practice: Ethernet and Local Delivery. Use the starting lab with modes off. Begin at the VM prompt. The command here is netlab status, which you used when building the lab. No settings need changing.
Find the ranges that may be reused
Section titled “Find the ranges that may be reused”A private address is an address from a range set aside for use inside private networks. Anyone may use these ranges inside their own network without obtaining a unique Internet assignment. That permission does not let two interfaces on the same network share one address.
There are three private ranges. Read their boundaries, rather than looking for a familiar first number alone.
The first range, 10.0.0.0/8, runs from 10.0.0.0 to 10.255.255.255. The second, 172.16.0.0/12, runs from 172.16.0.0 to 172.31.255.255. Its prefix does not fall on a dot; Subnetting Foundations explains such prefixes. The third, 192.168.0.0/16, runs from 192.168.0.0 to 192.168.255.255.
Laptop’s /24 and the private range 10.0.0.0/8 answer different questions: where laptop’s own network ends, and whether its address comes from private space.
Place the lab inside the larger range
Section titled “Place the lab inside the larger range”learner@rootvolt:~$ netlab status[sudo] password for learner: Lab is up. Modes on: none. Fault: none.
MACHINE NETWORK ADDRESS DEFAULT ROUTE COMPARED WITH THE START
laptop home 10.77.10.10/24 10.77.10.1 same
phone home 10.77.10.11/24 10.77.10.1 same
router home, site 10.77.10.1/24 10.77.20.1/24 - same
web site 10.77.20.80/24 10.77.20.1 same
Switch sw-home (home): laptop, phone, router
Switch sw-site (site): router, web
Services: web http 80, web https 443, web http 8080, web ssh 22learner@rootvolt:~$ Steps (6)
- Type
netlab status - Press Enter
- Output:
[sudo] password for learner: - Type the password (the terminal shows nothing)
- Press Enter
- Output:
Lab is up. Modes on: none. Fault: none. MACHINE NETWORK ADDRESS DEFAULT ROUTE COMPARED WITH THE START laptop home 10.77.10.10/24 10.77.10.1 same phone home 10.77.10.11/24 10.77.10.1 same router home, site 10.77.10.1/24 10.77.20.1/24 - same web site 10.77.20.80/24 10.77.20.1 same Switch sw-home (home): laptop, phone, router Switch sw-site (site): router, web Services: web http 80, web https 443, web http 8080, web ssh 22
All five listed interface addresses begin with 10. Laptop has 10.77.10.10/24, phone 10.77.10.11/24, router 10.77.10.1/24 and 10.77.20.1/24, and web 10.77.20.80/24. Every one lies inside the private /8 range, although they belong to two /24 networks.
Ask who can reach a private address
Section titled “Ask who can reach a private address”Predict: your home interface has a private address. Can an Internet web server use that address alone to send directly back to your home interface?
Check your answer
No. Internet routers do not carry packets to private destinations. The server cannot use your private address alone as a unique Internet destination.
The same private destination number could name interfaces in many unrelated homes. It cannot identify which home an Internet packet should reach. The lab goes further: it has no way out to the Internet.
Separate uniqueness from reachability
Section titled “Separate uniqueness from reachability”A public address is an address assigned for unique use on the Internet. Its uniqueness avoids the private-range ambiguity. It still does not prove that a machine is running, that a path exists, or that a program accepts incoming traffic. An address can name a destination without proving you can reach it.
Written course examples use 192.0.2.0/24, 198.51.100.0/24 and 203.0.113.0/24. These are documentation ranges, reserved for explanations. Keeping examples there avoids sending learners toward somebody else’s machine.
The three kinds side by side, with who can reach each:
- Private (
10.0.0.0/8,172.16.0.0/12,192.168.0.0/16): only devices on the same private network. - Documentation (
192.0.2.0/24,198.51.100.0/24,203.0.113.0/24): nobody; these are for written examples only. - Public (any other ordinary address): anyone on the Internet, if a path exists and the device accepts the traffic.
Mistakes to recognize
Section titled “Mistakes to recognize”“A private address is hidden, so it is safe.” The range rule supplies no protection. Other devices on the same network can try to contact it. A private-address device can also reach out when a path is available. Its address does not stop unwanted programs or make another device trustworthy.
“A public address can be reached by anyone.” Unique assignment says nothing about a working path or accepted traffic. You need evidence from the intended connection.
Good to know
Section titled “Good to know”Check both ends of a range. A number just past the end is no longer private, even if it looks similar.
Try it yourself
Section titled “Try it yourself”Sort these twelve addresses as private, public or documentation. Write the matching range beside each private or documentation answer. Then run netlab status, sort every listed interface address, and compare your written boundary rules with the lab’s settings.
| Set | Addresses |
|---|---|
| A | 10.2.3.4, 10.255.255.254, 11.0.0.1 |
| B | 172.16.0.1, 172.31.255.254, 172.32.0.1 |
| C | 192.168.1.1, 192.169.0.1, 192.0.2.8 |
| D | 198.51.100.8, 203.0.113.8, 10.77.20.80 |
Solution
- A:
10.2.3.4private;10.255.255.254private;11.0.0.1public. - B:
172.16.0.1private;172.31.255.254private;172.32.0.1public. - C:
192.168.1.1private;192.169.0.1public;192.0.2.8documentation. - D:
198.51.100.8documentation;203.0.113.8documentation;10.77.20.80private.
Every address in the lab status list is private, including both router interfaces.
Leave for later
Section titled “Leave for later”How a home router shares one address (NAT basics) in TCP, UDP, and Ports explains how private-address devices can communicate with the Internet.
- Recognize all three private ranges by their boundaries.
- Private addressing permits reuse across separate networks.
- Neither private nor public means protected or reachable.
Next, Special-purpose addresses examines addresses with other jobs.