This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
The community reviewed whether to reopen this question 12 months ago and left it closed:
Original close reason(s) were not resolved
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
255.255.255.255
向所有子网广播。尽管大多数路由器默认情况下都不会跨子网广播,但通常需要启用该功能。192.168.88.255
仅广播192.168.88.xxx
subnet。255.255.255.255
broadcasts to all subnets. Though most routers don't broadcast across subnets by default, you usually need to enable that capability.192.168.88.255
broadcasts only to the192.168.88.xxx
subnet specifically.IP地址分为网络前缀(顶部位)和主机(底部位)。假设
192.168.88。可以在
192.168.88.255 中持有255个网络地址。192.168.88.0
到192.168.88.254
和本地广播地址但是,您需要对子网具有特定的知识来编写此广播地址。例如,
192.168.88/23
将拥有192.168.89.255
的广播地址。255.255.255.255
只是对本地广播地址的别名,就像0.0.0.0
是本地网络的别名。它们都可以在没有任何特殊配置的情况下通常使用。那是区别。您真的不会打扰使用192.168.88.255
,因为您还需要一个设施来配置该值。为什么要打扰?IP addresses are split into a network prefix (the top bits) and host (the bottom bits). Assuming
192.168.88.***
is192.168.88.0/24
(a network mask of255.255.255.0
), the low order 8 bits can hold 255 network addresses from192.168.88.0
to192.168.88.254
, and the local broadcast address192.168.88.255
.But you need to have specific knowledge about the subnet to write this broadcast address. For instance,
192.168.88/23
would have a broadcast address of192.168.89.255
.255.255.255.255
is just an alias to the local broadcast address just as0.0.0.0
is an alias to the local network. They can both be used generically without any special configuration. That's the difference. You really wouldn't bother using192.168.88.255
because you'd also need a facility to configure that value. Why bother?