如何计算节点数?
我想知道如何计算 CIDR 网络中的节点数量? 例如,如果CIDR网络是11.13.0.0/16,这个CIDR网络可以容纳多少个节点? 任何帮助将不胜感激
I'm wondering how to calculate number of nodes in CIDR network?
for example if the CIDR network is 11.13.0.0/16 How many nodes can be accommodated in this CIDR network?
Any help would be appreciatet
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
通常您会有一个广播地址,因此这是一个被删除的地址。您通常还会有一个路由器/默认网关,因此通常会再删除一个地址。因此,
2^(32-16)-2==65534
IP 地址可自由用于其他用途。如果您想进一步划分子网,每个子网将多丢失一个 IP,因为每个子网都有自己的广播范围。Typically you'll have a broadcast address, so that's one address removed. You'll also typically have a router/default gateway, so that's often one more address removed. So that leaves
2^(32-16)-2==65534
IP addresses free for other use. If you want to subnet that further, you'll lose one more IP per subnet, since each subnet will have its own broadcast range.一般来说,这是
2^(32-bits_set_in_mask)
地址。正如 sarnold 指出的那样,其中一些不能用于节点。In general terms thats
2^(32-bits_set_in_mask)
addresses. As sarnold pointed out some of those can't be used for nodes.