Given an IP address and subnetmask, how do I calculate the CIDR ?
Posted
by Roel
on Stack Overflow
See other posts from Stack Overflow
or by Roel
Published on 2010-03-24T13:25:14Z
Indexed on
2010/03/29
11:43 UTC
Read the original article
Hit count: 564
Ok I can't seem to figure this out: given the following:
IP address = 192.168.1.0
Subnetmask = 255.255.255.240
Using c#, how do I calculate the CIDR notation 192.168.1.0/28
? Is there an easy way to achieve this? Am I missing something?
Thanks!
© Stack Overflow or respective owner