Menu
Coddy logo textTech

The 32-Bit View

Lesson 6 of 46 in Coddy's IP Addressing and Subnetting course.

Going the other way, from dotted decimal to binary, is the skill you will use constantly when subnetting. Convert one octet at a time and keep all eight bits, including the leading zeros: 10 is 00001010, not 1010. Every octet must be exactly eight bits wide or the 32-bit picture falls apart.

Try it on 10.0.0.1 in your head before the task: three of its four octets are trivial, and that is typical. Real addresses are mostly small numbers with the occasional interesting byte.

challenge icon

Challenge

Beginner

Convert 10.0.0.1 to binary. Print each octet on its own line, all eight bits, in address order.

Expected output:

00001010
00000000
00000000
00000001

Try it yourself

Terminal

All lessons in IP Addressing and Subnetting

Practice on your own: Terminal playground