I just want to understand how this software works: http://www.subnet-calculator.com/
+2
A:
It's not really calculating the address mask from the address. Rather it's calculating the network mask, address, number of sub-nets and size of each subnet from the class of network you supply (A, B or C). Most of this is defined in RFC 1918 (see §3 in particular).
Jerry Coffin
2010-05-10 17:10:27
+1
A:
You can't calculate the subnet mask from the ip address. You calculate the subnets (ips range) from the subnet mask by performing a bitwise AND with the ip address.
So for example, with a subnet mask of 255.255.255.0 only the fourth part of an ip address can vary, resulting in 255 possible addresses for 192.168.0.x.
Sorry for the lack of precise vocabulary, this was quite a quick and dirty explanation... Wikipedia has a better one.
Pin
2010-05-10 19:31:13