Home > other > For help, the problem of bothering me for many years, the IP address and routing aggregation
For help, the problem of bothering me for many years, the IP address and routing aggregation
Time:11-16
Three addresses, PC1 128.0.0.1/1 PC2 128.0.0.2/2 PC3 192.0.0.2/2 three machines switch unicom didn't do the configuration according to the theory of routing aggregation PC2 and PC3 address can aggregate into a routing 128.0.0.0/1 PC1 PC2, why can't PC1 on PC3 PC3 segment is PC1 segment of subnet, why PC1 to the PC3 can help to understand the underlying a great god, and asked a lot of things, IE are in addition to IP developed person nobody understand
CodePudding user response:
128.0.0.1/1 128.0.0.2/2 192.0.0.2/2 3 PCS can be exchanged, routing aggregation has nothing to do, Related concepts can consult the public number I wrote Routing convergence, ACL and IP address aggregation https://mp.weixin.qq.com/s/7v7MHgKmwUWgN6XxVWRNlg
Can get back to business, two IP communication, there is A very simple judgment method, which is contained by the other segment, A network segment contains address where B, that can find B; Is each other segment includes that can be linked to each other, at that time, even if both IP mask is different, still can normal communication, For example, 128.0.0.1/1, where the segment 128.0.0.0 ~ 255.255.255.255 128.0.0.2/2, where the segment 128.0.0.0 ~ 191.255.255.255 Obviously accords with a condition, is each other segment contains, so can PING,
See 128.0.0.1/1, where the segment 128.0.0.0 ~ 255.255.255.255 192.0.0.2/2, where the segment 192.0.0.0 ~ 255.255.255.255 See the problem? Although 192.0.0.2 before/2 is a network segment includes, but is not where the segment in 192, 128, 192 is looking for less than 128,
CodePudding user response:
The same network segment can ping, different cannot ping, even if is PC1 PC3 subnet, they still belong to different network segment, so they are can't verify whether belong to the same network segment method is respectively using IP address and subnet mask to do with the operation, it is the result of the two network segment,