B类IP地址:广播
以下 IP 地址是 - 168.94.254.255 和 168.94.254.255 168.94.255.254 - 用于广播,是否属于 B 类? (地址是随机选择的)。 我想 168.94.255.255 更愿意是广播地址,但我不确定。 提前致谢!
Are the following IP adresses - 168.94.254.255 & 168.94.255.254 - used for broadcast, if they belong to B Class? (The adresses were randomly chosen). I suppose 168.94.255.255 would rather be a broadcast adress, but I'm not sure. Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
CIDR 表示法中的 B 类网络是 /16 网络。 广播地址是所有主机位都为 1 的地方。在您的情况下,最后 16 位需要为 1 才能成为广播地址。
168.94.254.255和168.94.255.254的最后16位各有一个零位,因此它们不是广播地址。
如果您的 B 类子网划分为 /24,则如果 168.94.254.0/24 是网络地址,则 168.94.254.255 地址可能是广播地址。
A class B network in CIDR notation is a /16 network. A broadcast address is where all of the host bits are 1. In your case, the last 16 bits would need to be 1 to be a broadcast address.
168.94.254.255 and 168.94.255.254 each have a zero bit in the last 16 bits, so they are not broadcast addresses.
If your class B is subnetted into /24's, then the 168.94.254.255 address may be a broadcast address if 168.94.254.0/24 is the network address.