How to Calculate Subnet Mask from IP Address

ipip addressipv4subnet

I have an IP address

12.23.34.22

I need to find the network prefix for this IP Address.
For that I need to find the subnet mask and then count the number of contiguous 1s to get the network prefix.

How can we calculate the subnet mask (255.x.x.x) for this given IP ?

Best Answer

How can we calculate the subnet mask (255.x.x.x) for this given IP ?

You can't. To find the prefix, you need the address and mask, or the address and prefix length.

See the answers to this question on how to calculate everything.

Related Topic