cod*_*rix 9 ip networking subnet
一些比赛考试中的问题:
The subnet mask for a particular network is 255.255.31.0. Which of the following pairs of IP addressed could belong to this network?
1: 172.57.88.62 & 172.56.87.23
2: 10.35.28.2 & 10.35.29.4
3: 191.203.31.87 & 192.234.31.88
4: 128.8.129.43 & 128.8.161.55
Run Code Online (Sandbox Code Playgroud)
现在我对这个问题感到困惑,我已经读过一个子网掩码是模式的:
1111 1111. 1111 1111. 1111 1
我的意思是从左侧开始1但是在这个子网掩码中:
1111 1111. 1111 1111. 0001 1111. 0000 0000
Run Code Online (Sandbox Code Playgroud)
那么背后的实际原则是什么呢?请解释.我完全糊涂了.
提前致谢 :)
ceo*_*ceo 14
这是一个不连续的子网掩码,大多数路由器不再支持它.原理是相同的:将点分四个IP地址和掩码转换为32位无符号整数,并使用掩码将每个地址转换为AND.如果结果相同,则它们位于同一子网中.