Private Ranges
Lesson 29 of 46 in Coddy's IP Addressing and Subnetting course.
Three address ranges are reserved for use inside networks and are never routed on the public internet:
10.0.0.0/8: anything starting with 10172.16.0.0/12: 172.16 through 172.31 only192.168.0.0/16: anything starting with 192.168
Your home Wi-Fi almost certainly hands out 192.168 addresses. The 172 range is the sneaky one: 172.15.x.x and 172.32.x.x are public, because only the second octets 16 to 31 are inside the /12.
Challenge
EasyThe file hosts.txt lists six addresses. Inspect it and print only the private ones, in the order they appear.
Expected output:
10.44.2.9
172.20.3.3
192.168.99.1Try it yourself
All lessons in IP Addressing and Subnetting
10Capstone - The Office
The Floor PlanSizing Each TeamCarving the BlockThe Router's ViewRecap - Ship the PlanPractice on your own: Terminal playground