I was just wondering why Packet Tracer allows 2 end devices to ping each other even though they're specced with 2 different subnet masks? am i missing something here? i.e.

PC1: PC2:

Any help would be much appreciated! Cheers

  • You should not do that IMHO, even if it just works. – Xavier Nicollet Dec 7 '15 at 16:06
  • Did any answer help you? If so, you should accept the answer so that the question doesn't keep popping up forever, looking for an answer. Alternatively, you can provide your own answer and accept it. – Ron Maupin Aug 7 '17 at 16:00

The two host acan ping each other because they are on the same subnet, /16 can contains host located on /24, that is the reason.


Those two devices are in the same subnet. When you mask the addreses with the longest mask, they have the same subnet: AND = AND =

If, for instance, the second IP address was, it would not work since you would be on two different networks from the perspective of the first one, and it would try to send to its configured gateway instead of the other host: AND = AND =

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.