N10-009 ยท IP addressing
IPv4 address types and classes
Public vs private, RFC1918, APIPA, loopback, classes A-E.
Key points
- Private (RFC 1918, not routed on the Internet): 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16.
- Public: everything routable on the Internet.
- APIPA / link-local: 169.254.0.0/16, self-assigned when no DHCP server answers.
- Loopback: 127.0.0.0/8 (usually 127.0.0.1), traffic never leaves the host.
- Classes by first octet: A 1-126, B 128-191, C 192-223, D 224-239 (multicast), E 240-255 (experimental).
Source: https://www.rfc-editor.org/rfc/rfc1918
Practice questions
Which range is reserved as the private 172.16.0.0/12 block?
- 11.0.0.0 to 11.255.255.255
- 172.16.0.0 to 172.31.255.255
- 192.169.0.0 to 192.169.255.255
- 169.254.0.0 to 169.254.255.255
Show answer
Answer: B. 172.16.0.0 to 172.31.255.255
RFC 1918 reserves 172.16.0.0 through 172.31.255.255. 11.x is public, 192.169.x is public (the private block is 192.168), and 169.254.x is link-local, not RFC 1918.
Which of these addresses are private (RFC 1918)?
- 10.20.30.40
- 172.20.1.1
- 172.32.0.5
- 192.168.100.1
- 8.8.8.8
Show answer
Answer: A. 10.20.30.40, B. 172.20.1.1, D. 192.168.100.1
10.20.30.40, 172.20.1.1 and 192.168.100.1 fall inside the three private blocks. 172.32.0.5 is just outside 172.16.0.0/12, and 8.8.8.8 is a public address.
True or false: pinging an address in 127.0.0.0/8 sends packets to another host on the local subnet.
Show answer
Answer: False
False. The whole 127.0.0.0/8 block is loopback: traffic is handled by the local IP stack and never reaches the wire.
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.
