Home > other >  I ask the same network segment the communication of different mask
I ask the same network segment the communication of different mask

Time:09-15

10.0.12.1/30
10.0.12.2/24
I understand that they are in the same network segment, but why can't communication

CodePudding user response:

They are not the same network segment, under normal circumstances they can communicate with each other,

CodePudding user response:

10.0.12.0/30 IP address: 10.0.12.1 ~ 10.0.12.3,
The IP address of the 10.0.12.0/24:10.0.12.1 ~ 10.0.12.254,
So even though they are not a 10.0.12.1/30 and 10.0.12.2/24 isn't a network segment, but between them can be communication, because in fact, network communication, data transmission is not contain the IP address of the subnet mask, the host is an address with yourself is the same network segment, it is to their own subnet mask, so that two addresses do with their own subnet mask and operations, will think the other party within the same network segment with yourself, and then launch the arp, rather than send the data to your own gateway, routing forwarding gateway to do,

CodePudding user response:

To the whole understand this problem, must know the subnet mask and how to determine the effect of an IP address in network segment, and the function of the subnet mask: identify a network part and host part of the IP address, determine an IP network segment, first turn on the host part of the reset, and then put the subnet mask and the IP address "and" after converted to binary arithmetic,

CodePudding user response:

1
30 10.0.12.00001010, 00000000, 00001010, 000000 01
10.0.12.2 24
00001010 00000000 00001010 00000010
10.0.12.4 24
00001010 00000000 00001010 00000100
10.0.12.1/30 and 10.0.12.2/24 can communicate because the network was 00001010, 00000000, 00001010, 000000 but from 10.0.12.4/24 were not able to communicate the
I think is probably 10.0.12. 1/30 and 10.0.12.4/24 network compare match

CodePudding user response:

The original poster hello, they are not a network segment, judge whether the IP address in the same network segment, first see mask, mask is different, is not in the same network segment, the same mask, see network values are the same, the same is in the same network segment, would not be in the same network segment, different between different network segment, need a router or layer 3 switches, etc., can communication,

CodePudding user response:

Obviously, they are not the same network segment,
10.0.12.0/30 segment is 10.0.12.1 ~ 10.0.12.3,
10.0.12.0/24 network segment is 10.0.12.1 ~ 10.0.12.254,
We see they have overlapping parts, so, overlapping address of host can be visits,
No overlap of the host, can't exchange of visits,
Because beyond packet network segment address, default gateway to go, don't go directly to the host, all went to the router.
  • Related