2

What is a subnet calculator and what is it used for?

6 Answers6

4

A subnet calculator is just a simple tool to determine the attributes of a particular ip subnet including but not limited to the beginning and end ips in that particular range. If you need a primer on ip subnetting check out, http://en.wikipedia.org/wiki/Subnetwork

and

if you just want to calculate some subnets check out the excellent whatmask for linux or a web based calculator http://grox.net/utils/whatmask/

MattyB
  • 1,013
1

Subnets are easy if you're using netmasks that are on 8-bit boundaries. /22 or /21 for example are a little harder to calculate in your head unless you do it all day long. A subnet calculator will show you the available ranges of IPs for a given netmask.

MDMarra
  • 101,323
1

Subnetting is all about choosing the right network sizes for the tasks and is the core concept of all LAN/WAN routing and switching.

There is a good explanation by Evan Anderson on Server Fault at

How does IPv4 Subnetting Work?

sclarson
  • 3,714
1

Note that the rules used by a subnet calculator for IPv4 addresses, are no longer valid for IPv6 addresses where we no longer try to pack as much stuff into the address space as we can. So in IPv6, all subnets are /64 unless they are aggregating other subnets, in which case they work similar to IPv4, except that you have a /48 per site giving you 8 bits of working space. That would be like getting an IPv4 /16 and using a /24 for every subnet that is a broadcast domain. Very bad practice in IPv4, but best practice in IPv6.

To understand IPv4 subnetting, work through an example where you are building a data center with 120 hosts. You should get a /25 as the right sized subnet. But what if you will add another 60 hosts after the first months for a total of 180 hosts. Does your subnet calculator suggest 3 /26 blocks or one /24. Draw it out graphically on graph paper where you can make an 8 x 8 square for the 64 IP addresses in a /26 block.

0

Subnet calculator is to calculate the hosts in your network, you need etc 1000 hosts this calculator find you the preffix in this case /22 is right (1022 hosts)

N3kos
  • 17