Answer the question
In order to leave comments, you need to log in
Are they on the same subnet?
I can’t understand, for example, there are 2 PCs and they have different masks.
1) 192.168.1.1 255.255.255.0
2) 192.168.1.2 255.255.0.0
why do they see (ping) each other? they after all in different subnets it turns out?
I always thought that if the mask is different, then they will not see each other.
Can you please explain this point in more detail.
Answer the question
In order to leave comments, you need to log in
the mask defines the size of the subnet, not the specific subnet - the mask is not the name of the subnet.
It is determined by the mask - try to access the computer directly or through the default gateway
in your case - they will see each other
They are on the same subnet because your subnets overlap.
You can make 192.168.100.1 255.255.255.0 and they will see each other in the same way :)
And this is how
192.168.1.1 255.255.255.192 (26)
192.168.1.65 255.255.255.192 (26)
These are already different.
The ranges of both subnets overlap. Both addresses are in the part of the range that belongs to both subnets. Therefore hosts see each other.
In general, the mask is only needed so that the local TCP / IP stack can determine where to send the outgoing packet. If the recipient's host is on the same subnet as the local host, then the packet is sent directly to the recipient; if the subnets are different, then the packet is usually sent to the default gateway.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question