The subnet mask for a particular network is
Which of the following IP address belongs to this network?

  1. 172.57.88,62 &
  2. &
  3. &
  4. &

Little bit confuse about 3rd octet of SM ( i.e .31 ) But got the point that 5 bit was hired from 3rd octet for subnetting.

The principle : convert the dotted-quad IP addresses and mask to 32-bit unsigned integers and AND each address with the mask. If the results are the same, they're in the same subnet.

By using above principle Ans is D.
But Can I do it directly ?

  1. By looking at SM it is clear that , it belongs to class B.
  2. Option A and C are 2 different networks.( there 2nd octet is different i.e. 172.57 and 172.56 and 191.203 and 191.234 )
  3. Option B is Class A network.( so cant be the answer)
  4. Option D is class B network , and its 1st two octet are also same i.e. 128.8 and 128.8 so now no problem to apply above principle to final check.

Can I think like this before applying principle ? ( just to save time )

  • $\begingroup$ No, the answer using "the principle" is not D. It's odd to speak of doing it "directly" a different way - the way you describe as "the principle" is simple and direct. (Also, using as a "subnet mask" makes it a confusing question - subnet masks should not have any gaps of unset bits between the most significant bit and the right-most set bit). $\endgroup$ – nobody Oct 6 '14 at 17:32

No. You can't use your shortcut method.

Your rules #2 and #4 are fine, but rules #1 and #3 are not valid. For example, it's possible (and common) to have a local network 10.0.0.x where the subnet mask is Suppose the IP address of a local host is Your rule #3 would suggest that it can't be a match, because 10.x.y.z belongs to a class A network, whereas the subnet mask looks like the mask for a class C. However, that rule leads you to the wrong conclusion. In fact, you can have a network 10.0.0.x with subnet mask It's possible to take a large network (a class A network) and divide it into multiple smaller local area networks, each with a separate subset of the address space of the large network.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.