2

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: 192.168.1.10/24 PC2: 192.168.1.20/16

Any help would be much appreciated! Cheers

2
  • 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
1

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.

1

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

192.168.1.10 AND 255.255.255.0 = 192.168.1.0
192.168.1.20 AND 255.255.255.0 = 192.168.1.0

If, for instance, the second IP address was 192.168.2.20, 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:

192.168.1.10 AND 255.255.255.0 = 192.168.1.0
192.168.2.20 AND 255.255.255.0 = 192.168.2.0

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.