Sub topic 5
IPv4 addressing, private ranges, and APIPA
This chapter assumes you know what a router does and can open a command prompt. It covers how IPv4 addresses are structured, which ranges are private, and what an APIPA address tells you when you troubleshoot.
How an IPv4 address works
An IPv4 address is a 32-bit number written as four decimal octets, such as 192.168.1.25. Each octet runs from 0 to 255. Every device on a network needs a unique address, plus three related settings:
- Subnet mask: Marks which part of the address identifies the network and which part identifies the host. A common home mask is
255.255.255.0. - Default gateway: The router address a device sends traffic to when the destination is outside its own network.
- DNS server: Resolves names to addresses. A later chapter covers it.
Two devices talk directly only if they share the same network portion. With the mask 255.255.255.0, 192.168.1.25 and 192.168.1.40 are on the same network. 192.168.2.40 is not, so traffic to it goes through the gateway.
Public and private ranges
Public addresses are routable on the internet and are assigned by your ISP. Private addresses are reserved for internal use and are never routed across the internet. Many networks reuse the same ones.
| Range | Mask | Typical use |
|---|---|---|
| 10.0.0.0 to 10.255.255.255 | 255.0.0.0 | Large organizations |
| 172.16.0.0 to 172.31.255.255 | 255.240.0.0 | Mid-sized networks |
| 192.168.0.0 to 192.168.255.255 | 255.255.0.0 | Home and SOHO routers |
Network Address Translation (NAT), covered in a later chapter, lets private devices share one public address.
APIPA
A client set to obtain an address automatically asks a DHCP server for one. If no server answers, Windows assigns itself an address in 169.254.0.0/16. This is Automatic Private IP Addressing (APIPA), also called a link-local address.
An APIPA address allows communication only with other APIPA devices on the same local segment. The device has no gateway, so it cannot reach the internet. The exam treats a 169.254.x.x address as a sign of a DHCP failure, not a fault in the device's own configuration.
Checking an address
Run ipconfig /all to see the address, mask, gateway, DHCP server, and DNS servers for each adapter.
ipconfig /allIf you see 169.254.x.x, check that the router is on and the cable or Wi-Fi link is up. Then renew the lease.
ipconfig /release
ipconfig /renewExercise
A laptop shows the address 169.254.37.12 and cannot browse the web. What does the address indicate, and what is the first step?
Show answer
The address is an APIPA address, so the laptop got no reply from a DHCP server. Check that the router is working and the laptop is connected, then run ipconfig /release and ipconfig /renew.
Exercise
Which of these addresses is private: 172.20.4.9, 172.32.4.9, or 11.0.0.5?
Show answer
172.20.4.9. It falls within 172.16.0.0 to 172.31.255.255. The other two are public.