01-17-2012 07:14 AM - edited 03-07-2019 04:24 AM
Any one have an idea that how can we find a subnet mask from an IP range ?
Example:
If we have a range of IP addresses Like
1.1.0.1 --> 1.1.5.254
Please help
01-17-2012 07:25 AM
Hi
no mask fits
most close would be
1.1.0.0 /22 (255.255.252.0) 1.1.0.1 --> 1.1.3.254
or
1.1.0.0 /21 (255.255.248.0) 1.1.0.1 --> 1.1.7.254
01-17-2012 02:04 PM
Kaven John wrote:
Any one have an idea that how can we find a subnet mask from an IP range ?
Example:
If we have a range of IP addresses Like
1.1.0.1 --> 1.1.5.254
Please help
Download the Solarwinds Advanced Subnet Calculator (or any of the plethora of similar tools available) if you can't be bothered working it out yourself.
For your example, no valid subnet fits that range exactly. The closest network which would have ALL the addresses you've listed (and then some!) would be
1.1.0.0/21 (subnet mask 255.255.248.0)
This would include 2046 valid IP addresses (2048 minus the network and broadcast addresses). That's one *damn* big subnet.
Cheers.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide