100-150 CCST ยท IP addressing and subnetting
Private and public IPv4 addresses
Private ranges (RFC 1918), public addresses, APIPA, loopback, and the classful address classes A, B and C.
Key points
- Private, not routed on the internet: 10.0.0.0/8, 172.16.0.0/12 (172.16.0.0 to 172.31.255.255), 192.168.0.0/16
- Every other normal unicast address is public
- APIPA 169.254.0.0/16: a host with no DHCP answer picks one
- Loopback 127.0.0.0/8: traffic to your own device
- Classes by first octet: A 1-126, B 128-191, C 192-223
Source: https://www.rfc-editor.org/rfc/rfc1918
Practice questions
Which range is the private block that starts at 172.16.0.0?
- 172.16.0.0 to 172.31.255.255
- 172.16.0.0 to 172.63.255.255
- 172.0.0.0 to 172.15.255.255
- 172.32.0.0 to 172.47.255.255
Show answer
Answer: A. 172.16.0.0 to 172.31.255.255
The private 172 block is 172.16.0.0/12, which ends at 172.31.255.255. Addresses from 172.32.0.0 upward are public, and 172.0 to 172.15 are public too.
Which of these addresses are in the RFC 1918 private blocks?
- 10.200.3.4
- 172.31.9.9
- 192.168.50.1
- 172.32.1.1
- 169.254.1.1
Show answer
Answer: A. 10.200.3.4, B. 172.31.9.9, C. 192.168.50.1
10.200.3.4, 172.31.9.9 and 192.168.50.1 fall inside the three private blocks. 172.32.1.1 is just past the 172.16.0.0/12 block and is public. 169.254.1.1 is APIPA, a separate special range rather than an RFC 1918 block.
True or false: an address such as 172.20.5.9 can be reached directly from any host on the internet.
Show answer
Answer: False
False. 172.20.5.9 sits inside 172.16.0.0/12, a private block. Internet routers do not forward it, so outside hosts cannot reach it without translation or a tunnel.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
