10-04-2007 08:38 PM - edited 03-05-2019 06:54 PM
hi,
I have connected two pcs with a cross cable and provided the ip addresses as: PC1-->192.168.0.1/24 PC2-->192.168.0.2/16. For my surprise both pcs were able to ping. Same goes when I have a switch in between.
Any could explain this behavior would of great help.
Thanks in advance
10-04-2007 09:34 PM
Hi
PC1 wants to ping PC2
It compares the destination address of PC2 with it's subnet mask ie.
192.168.0.2 255.255.255.0 (it has to use it's own subnet mask as it doesn't know PC2's subnet mask).
So PC1 thinks PC2 network is 192.168.0 which is the same as it's own so it arps out, gets back the mac-address and sends the packet.
Now the other way around
PC2 wants to ping PC1.
PC2 does same as PC1 in previous example.
192.168.0.1 255.255.0.0
So PC2 thinks PC1 is on 192.168. which is the same netowrk as itself so it arps out, gets back the mac-address and sends the packet.
HTH
Jon
10-04-2007 11:22 PM
There is no problem here for them talking to each other, as both addresses fall within the smaller subnet.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide