Skip to content

Private and public addressing

Module
Understanding IPv4 Addresses
Difficulty
Easy
Updated
Tested on
Ubuntu 24.04.5 LTS, netlab 1.0, GNU Bash 5.2.21, tcpdump 4.99.4
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.

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.

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.

Read every lab address
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:~$ 

Step-by-step replay of a verified session · Recorded on Ubuntu 24.04.5 LTS, networking lab (netlab 1.0), GNU Bash 5.2.21. The starting lab lists every assigned lab address and its prefix on one screen.
Steps (6)
  1. Type netlab status
  2. Press Enter
  3. Output: [sudo] password for learner:
  4. Type the password (the terminal shows nothing)
  5. Press Enter
  6. 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.

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.

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.

“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.

Check both ends of a range. A number just past the end is no longer private, even if it looks similar.

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.4 private; 10.255.255.254 private; 11.0.0.1 public.
  • B: 172.16.0.1 private; 172.31.255.254 private; 172.32.0.1 public.
  • C: 192.168.1.1 private; 192.169.0.1 public; 192.0.2.8 documentation.
  • D: 198.51.100.8 documentation; 203.0.113.8 documentation; 10.77.20.80 private.

Every address in the lab status list is private, including both router interfaces.

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.