跳到正文
ipaddress.co.nz

保留 IP 地址段

根据 IANA 特殊用途登记列出不属于普通公网地址的地址块,并提供检查工具,告诉你某个地址属于哪一个。

100.64.12.7 属于 100.64.0.0/10:共享地址空间(CGNAT)。

IPv4 特殊用途地址块

地址块用途定义于可从互联网访问
0.0.0.0/8未指定This networkRFC 791否
10.0.0.0/8私有网络Private-UseRFC 1918否
100.64.0.0/10共享地址空间(CGNAT)Shared Address Space (CGNAT)RFC 6598否
127.0.0.0/8环回LoopbackRFC 1122否
169.254.0.0/16链路本地Link-LocalRFC 3927否
172.16.0.0/12私有网络Private-UseRFC 1918否
192.0.0.0/24协议分配IETF Protocol AssignmentsRFC 6890否
192.0.2.0/24文档用途Documentation (TEST-NET-1)RFC 5737否
192.31.196.0/24任播AS112-v4RFC 7535是
192.52.193.0/24协议分配AMTRFC 7450是
192.88.99.0/24保留Deprecated 6to4 Relay AnycastRFC 7526否
192.168.0.0/16私有网络Private-UseRFC 1918否
192.175.48.0/24任播Direct Delegation AS112 ServiceRFC 7534是
198.18.0.0/15基准测试BenchmarkingRFC 2544否
198.51.100.0/24文档用途Documentation (TEST-NET-2)RFC 5737否
203.0.113.0/24文档用途Documentation (TEST-NET-3)RFC 5737否
224.0.0.0/4组播MulticastRFC 5771否
240.0.0.0/4保留Reserved for future useRFC 1112否
255.255.255.255/32广播Limited BroadcastRFC 919否

IPv6 特殊用途地址块

地址块用途定义于可从互联网访问
::/128未指定Unspecified AddressRFC 4291否
::1/128环回Loopback AddressRFC 4291否
::ffff:0:0/96地址转换IPv4-mapped AddressRFC 4291否
64:ff9b::/96地址转换IPv4-IPv6 Translation (NAT64)RFC 6052是
64:ff9b:1::/48地址转换Local-use IPv4/IPv6 TranslationRFC 8215否
100::/64保留Discard-Only Address BlockRFC 6666否
2001::/32地址转换TEREDORFC 4380否
2001:2::/48基准测试BenchmarkingRFC 5180否
2001:db8::/32文档用途DocumentationRFC 3849否
2001:10::/28保留Deprecated (ORCHID)RFC 4843否
2001:20::/28协议分配ORCHIDv2RFC 7343是
2002::/16地址转换6to4RFC 3056否
3fff::/20文档用途DocumentationRFC 9637否
5f00::/16协议分配Segment Routing (SRv6) SIDsRFC 9602否
fc00::/7唯一本地地址(ULA)Unique-LocalRFC 4193否
fe80::/10链路本地Link-Local UnicastRFC 4291否
ff00::/8组播MulticastRFC 4291否

取自 IANA IPv4 与 IPv6 特殊用途地址登记,另加组播和旧的 E 类地址。“可从互联网访问”依据 IANA 的“globally reachable”列。私有地址永远不会在公共互联网上路由。

此内容尚无中文版本。在发布译文之前以英语显示。

Not every IP address is meant to be routed on the internet. IANA keeps two special-purpose address registries, one for IPv4 and one for IPv6, listing the blocks set aside for private networks, loopback, link-local use, documentation, benchmarking, protocol translation and other purposes. Together with the multicast ranges and IPv4’s old class E, they are the addresses a router should never accept as ordinary public destinations, often called bogons.

The ones you are most likely to meet: the three private ranges of RFC 1918 (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) used in almost every home and office network; shared address space 100.64.0.0/10 used by providers for carrier-grade NAT; link-local 169.254.0.0/16 and fe80::/10, which a device gives itself when nothing else configures it; and the documentation blocks (192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24, 2001:db8::/32) reserved for examples like the ones on this site.

The table is generated from the same registry data this site uses to classify every lookup, and the checker tells you which block an address belongs to, right in your browser.

常见问题

My router's WAN address starts with 100.64. Is that a problem?

It means your provider uses carrier-grade NAT: you share a public IPv4 address with other customers. Browsing works normally, but you cannot open ports to the internet over IPv4. IPv6 or a fixed public address solves it.

Why did my PC get a 169.254.x.x address?

It asked for an address (DHCP) and got no answer, so it assigned itself a link-local address. Check the cable or Wi-Fi connection and the router's DHCP server.

Can I use 192.0.2.0/24 or 2001:db8::/32 in my network?

You should not. They are reserved for documentation, so examples never collide with real networks. Use the private ranges, or unique local addresses (fd00::/8) for IPv6.