给出网络地址...判断两个站是否在同一网络上
给定网络地址 112.44.0.0 和网络掩码 255.255.0.0。地址为 112.44.22.19/16 和 112.44.23.2/16 的两个站是否在同一网络上?
Given the network address of 112.44.0.0 and the network mask of 255.255.0.0 .Would the two stations with addresses 112.44.22.19/16 and 112.44.23.2/16 be on the same network ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是的当然。
所有地址
122.44.xx
将位于同一网络中。网络掩码 255.255.0.0 显示前两个数字表示网络编号,后两个数字表示边缘编号。
Yes, of course.
All addresses
122.44.x.x
will be in the same network.Network mask 255.255.0.0 shows that first two numbers are showing number of network and other two numbers are showing number of edge.
是的,它们位于同一子网中。只需浏览 wiki 页面即可了解 IP 地址的解析方式。如果您对任何 IP
112.44.22.19
或112.44 执行一点明智的 and 操作,
你会发现他们给出了相同的网络前缀,即。255.255.0.0
现在实际上会扩展为11111111111111110000000000000000
.23.2112.44.0.0
。这意味着这两台机器位于同一子网中。Yes they are in the same subnet. Just go through the wiki page to understand how exactly the IP addresses are resolved.
255.255.0.0
actually expands to11111111111111110000000000000000
now if you perform a bit wise and operation to any of the IPs112.44.22.19
or112.44.23.2
you will find that they give the same Network prefix ie.112.44.0.0
. What means these two machines are in the same subnet.