I have the following issue : i need to convert range of IP addresses into range of CIDR addresses without losses of addresses. For example,
if i have the range 1.1.1.3 - 1.1.1.7, i can convert it into
1.1.1.1/29
using IPNetwork library, but if i will convert
1.1.1.1/29 to range again i get 1.1.1.1 - 1.1.1.6.
How could i divide ranges to get a few ranges in CIDR format without losses ?
Will be good if you can show me any C# code to perform it.