A类:
10.X.X.X是私有地址(私有地址就是在互联网上不使用,而被用在局域网络中的地址)。
127.X.X.X是保留地址,用做循环测试用的。
B类:
172.16.0.0---172.31.255.255是私有地址。
169.254.X.X是保留地址。如果你的IP地址是自动获取IP地址,而你在网络上又没有找到可用的DHCP服务器。就会得到其中一个IP。
c类:
192.168.X.X是私有地址。(192.168.0.0---192.168.255.255)
总结:
私有地址(内部局域网可以使用的)
A级:10.0.0.0 - 10.255.255.255
B级:172.16.0.0 - 172.31.255.255
C级:192.168.0.0 - 192.168.255.255
保留地址(特殊用途的)
A类:127.X.X.X
B类:169.254.X.X
扩展保留地址
Address Block ![]() | Name ![]() | RFC ![]() | Allocation Date ![]() | Termination Date ![]() | Source ![]() | Destination ![]() | Forwardable ![]() | Globally Reachable ![]() | Reserved-by-Protocol ![]() |
---|---|---|---|---|---|---|---|---|---|
0.0.0.0/8 | "This host on this network" | [RFC1122], Section 3.2.1.3 | 1981-09 | N/A | True | False | False | False | True |
10.0.0.0/8 | Private-Use | [RFC1918] | 1996-02 | N/A | True | True | True | False | False |
100.64.0.0/10 | Shared Address Space | [RFC6598] | 2012-04 | N/A | True | True | True | False | False |
127.0.0.0/8 | Loopback | [RFC1122], Section 3.2.1.3 | 1981-09 | N/A | False [1] | False [1] | False [1] | False [1] | True |
169.254.0.0/16 | Link Local | [RFC3927] | 2005-05 | N/A | True | True | False | False | True |
172.16.0.0/12 | Private-Use | [RFC1918] | 1996-02 | N/A | True | True | True | False | False |
192.0.0.0/24 [2] | IETF Protocol Assignments | [RFC6890], Section 2.1 | 2010-01 | N/A | False | False | False | False | False |
192.0.0.0/29 | IPv4 Service Continuity Prefix | [RFC7335] | 2011-06 | N/A | True | True | True | False | False |
192.0.0.8/32 | IPv4 dummy address | [RFC7600] | 2015-03 | N/A | True | False | False | False | False |
192.0.0.9/32 | Port Control Protocol Anycast | [RFC7723] | 2015-10 | N/A | True | True | True | True | False |
192.0.0.10/32 | Traversal Using Relays around NAT Anycast | [RFC8155] | 2017-02 | N/A | True | True | True | True | False |
192.0.0.170/32, 192.0.0.171/32 | NAT64/DNS64 Discovery | [RFC7050], Section 2.2 | 2013-02 | N/A | False | False | False | False | True |
192.0.2.0/24 | Documentation (TEST-NET-1) | [RFC5737] | 2010-01 | N/A | False | False | False | False | False |
192.31.196.0/24 | AS112-v4 | [RFC7535] | 2014-12 | N/A | True | True | True | True | False |
192.52.193.0/24 | AMT | [RFC7450] | 2014-12 | N/A | True | True | True | True | False |
192.88.99.0/24 | Deprecated (6to4 Relay Anycast) | [RFC7526] | 2001-06 | 2015-03 | |||||
192.168.0.0/16 | Private-Use | [RFC1918] | 1996-02 | N/A | True | True | True | False | False |
192.175.48.0/24 | Direct Delegation AS112 Service | [RFC7534] | 1996-01 | N/A | True | True | True | True | False |
198.18.0.0/15 | Benchmarking | [RFC2544] | 1999-03 | N/A | True | True | True | False | False |
198.51.100.0/24 | Documentation (TEST-NET-2) | [RFC5737] | 2010-01 | N/A | False | False | False | False | False |
203.0.113.0/24 | Documentation (TEST-NET-3) | [RFC5737] | 2010-01 | N/A | False | False | False | False | False |
240.0.0.0/4 | Reserved | [RFC1112], Section 4 | 1989-08 | N/A | False | False | False | False | True |
255.255.255.255/32 | Limited Broadcast | [RFC8190] [RFC919], Section 7 | 1984-10 | N/A | False | True | False | False | True |
参考文献:
https://blog.csdn.net/u014774781/article/details/48709353
https://www.iana.org/assignments/iana-ipv4-special-registry/iana-ipv4-special-registry.xhtml