We help IT Professionals succeed at work.

class c IP ranges in CIDR notation

Victor Kimura
Victor Kimura used Ask the Experts™
on
Hi,

Just wonder what is the CIDR notation for the class C IP range of, say:

64.202.189.1 to 64.202.189.255

Well, I guess it would be 64.202.189.2 to 64.202.189.254 since I think the first and last are reserved, right?

Thank you,
Victor

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Director, Information Systems
Commented:
64.202.189.0/24

The range has 256 IP addresses of which 254 are useable.
Dave BaldwinFixer of Problems
Most Valuable Expert 2014
Commented:
64.202.189.1 to 64.202.189.254 because there is 64.202.189.0 and 64.202.189.255 which are reserved.
Commented:
64.202.189.0/24

it implies a shorter way to express the IP MASK
/24 means the number of consecutives 1s of the equivalent clas C IP MASK

/24  <=> 255.255.255.0 <=>11111111.11111111.11111111.0
Qlemo"Batchelor", Developer and EE Topic Advisor
Top Expert 2015
Commented:
Just to make it clear: The CIDR notation is another notation of the netmask, not the available IP addresses. So the answers with 64.202.189.0/24 are correct. The usuable range is derived from the netmask, so it doesn't matter whether you note it as 255.255.255.0 or /24, both allow for the same range and are interchangeable.

The usuable range is, as said correctly, the whole one minus the first ("all zeroes") and the last ("all ones") one. "all zeroes", which means all host bits are zero, which is the last byte in this case, is reserved for "the network", and "all ones" for the local (IP) broadcast address.
Victor KimuraSEO, Web Developer

Author

Commented:
Thank you for the explanations. It helps.