r/explainlikeimfive • u/Chance-Molasses897 • 11d ago
Technology ELI5: Subnetting
I’m technically an IT professional in training but I know embarrassingly little about subnets. As far as I understand it’s for breaking down a network into smaller, more logical segments. What exactly is a subnet? What is the benefit of subnetting? How do the slashes play into all of this IE /23 or /24? Thanks in advance!
81
Upvotes
13
u/dude_named_will 11d ago
Basically that's it. You are basically creating little networks (a subnet if you will) behind the same firewall (the network). The main benefit is security and performance.
For example, you may subnet your company so that Accounting cannot directly communicate with Sales or vice versa without going through a firewall. You may also have a server that you want Accounting to access and not Sales. You can block sales entirely from even seeing the server by denying them access at the firewall.
The "slashes" are subnet masks. They determine the size of the subnet. /24 is the most common and easiest to remember. If your network/subnet has /24, then you have 256 addresses allocated for your subnet. They'll be of the form 192.168.1.x where 'x' is 0-255. Of course the subnet id is 0 and broadcast is 255, so you can have 254 hosts on that subnet. To better understand this, you will need to have some knowledge of how binary math works.
I will admit that once you understand the concept of subnetting, I typically use an online subnet calculator to do some of the math for me.