首页 > 编程知识 正文

一个网段有多少个可用地址,内网不同网段互相访问

时间:2023-05-03 17:40:42 阅读:16498 作者:1717

常见的内部网IP段包括:

10.0.0.0/8

10.0.0.0 - 10.255.255.255

172.16.0.0/12

172.16.0.0 - 172.31.255.255

192.168.0.0/16

192.168.0.0 - 192.168.255.255

以上三个网段分别属于a、b、c三种IP地址,来自《RFC 1918》。

但是,根据《Reserved IP addresses - Wikipedia, the free encyclopedia》和《RFC 6890 - Special-Purpose IP Address Registries》的描述,还有很多保留的IP地址,包括IPv6和其他用途。

其他IPv4内网段罗列如下。

0.0.0.0/8

0.0.0.0 - 0.255.255.255

用于当前网络中的广播消息。

100.64.0.0/10

100.64.0.0 - 100.127.255.255

运营商使用的专用网络的IP段,随着IPv4地址池的消耗,将有更多的用户分配给该网段。

127.0.0.0/8

127.0.0.0 - 127.255.255.255

本地环回地址。

169.254.0.0/16

169.254.0.0 - 169.254.255.255

无法获取IP地址时使用。 这是因为通常无法从DHCP服务器获取IP。

192.0.0.0/24

192.0.0.0 - 192.0.0.255

usedfortheianaipv4specialpurposeaddressregistryasspecifiedbyrfc 5736

一般用户不会分配给此IP段。

192.0.2.0/24

192.0.2.0 - 192.0.2.255

在RFC 5737 forusesolelyindocumentationandexamplesourcecodeandshouldnotbeusedpublicly中输入关联的As“测试网络”。

一般用户不会分配给此IP段。

198.18.0.0/15

198.18.0.0 - 198.19.255.255

用于测试两个独立子网的网间通信。

一般用户不会分配给此IP段。

198.51.100.0/24

198.51.100.0 - 198.51.100.255

assigned as在RFC 5737 forusesolelyindocumentationandexamplesourcecodeandshouldnotbeusedpublicly中加入“测试网络- 2”。

一般用户不会分配给此IP段。

203.0.113.0/24

203.0.113.0 - 203.0.113.255

assigned as在RFC 5737 forusesolelyindocumentationandexamplesourcecodeandshouldnotbeusedpublicly中加入“测试网络- 3”。

一般用户不会分配给此IP段。

255.255.255.255/32

255.255.255.255

本网段的广播地址。

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。