Ask LH: How Do Subnets Work?

Hi Lifehacker, For some reason whenever I look at a network “subnet” I just can’t figure it out. I understand that the subnet is broken into 8 bits (so 255.255.255.0 would give me 254 addresses). But why? How do I then convert something like 172.32.5.21/12 to get an idea of what the subnet mask would be and how many addresses I would get? Thanks, Net Getting It

Subnet picture from Shutterstock

Dear NGI,

There are really a couple of separate issues to address in your question. Let’s start with the first part – why does a subnet of 255.255.255.0 give you 254 addresses?

This is the way TCP/IP is designed. When devices on a network are in the same subnet, then they are deemed to be on the same segment of a larger network. Even if two devices have the valid network addresses, they won’t be able to communicate unless they’re in the same subnet.

Your second question is “How do I then convert something like 172.32.5.21/12 to get an idea of what the subnet mask would be and how many addresses I would get?”

There’s a useful article at TechRepublic that explains how subnetting works and how many addresses you get.

As far as we can tell, you can’t calculate the subnet from the address although we’re far from networking experts and would gladly be corrected by someone in the Lifehacker family.

Understanding TCP/IP addressing and subnetting basics [Microsoft]

Address Allocation for Private Internets [IANA]

Cheers
Lifehacker

Got your own question you want to put to Lifehacker? Send it using our [contact text=”contact form”].


The Cheapest NBN 50 Plans

Here are the cheapest plans available for Australia’s most popular NBN speed tier.

At Lifehacker, we independently select and write about stuff we love and think you'll like too. We have affiliate and advertising partnerships, which means we may collect a share of sales or other compensation from the links on this page. BTW – prices are accurate and items in stock at the time of posting.

Comments


8 responses to “Ask LH: How Do Subnets Work?”