2

它被解释为“这个网络或网段”。这里的“网络地址”是相对于主机地址的。

我的问题:在什么情况下使用这样的IP地址?

4

3 回答 3

2

It's nothing more than a "notational convention"; a convenient way of talking about a network, according to the earliest reference to the all-zeroes address I found, in RFC 919:

If the use of "all ones" in a field of an IP address means
"broadcast", using "all zeros" could be viewed as meaning
"unspecified".  There is probably no reason for such addresses to
appear anywhere but as the source address of an ICMP Information
Request datagram.  However, as a notational convention, we refer to
networks (as opposed to hosts) by using addresses with zero fields.
For example, 36.0.0.0 means "network number 36" while 36.255.255.255
means "all hosts on network number 36".

For example, if I were to say "it's 10.0.0.0/16", you would know I was talking about a subnet, and not a host. If I were to say "it's 10.0.4.16/16", you would know I was talking about a host.

In practice, some IP stacks interpreted this as an alternate form of the broadcast address. But (as the RFC states) you will probably never see it on the network.

于 2012-10-16T05:47:41.953 回答
1

任何打开服务器套接字以侦听任何可用接口的软件都将侦听0.0.0.0:port.

例如,C# 的IPAddress.Any字段以这种方式运行。

Any 字段等效于点分四边形表示法中的 0.0.0.0。

于 2012-10-15T19:29:41.967 回答
1

全 0 的网络地址代表this network。例如 0.0.0.120 用于向网络发送广播消息。

全1的网络地址代表all networks。向所有网络发送广播消息。

每个人都感到困惑的是在网络地址,广播地址和相反的网络之间

网络地址:它是一个所有主机位为零的网络,即10.0.0.0是一个网络地址

广播地址:它是所有主机位均为 1 的地址,即10.255.255.255广播地址

于 2019-06-17T18:58:55.693 回答