專用網絡
外觀
在互聯網的地址架構中,專用網絡是指遵守RFC 1918(IPV4)和RFC 4193(IPV6)規範,使用專用IP位址空間的網絡。私有IP無法直接連接互聯網,需要使用網絡地址轉換(Network Address Translator,NAT)或者代理伺服器(proxy server)來實現。與公網IP相比,私有IP是免費的,同時節省了IP位址資源,適合在區域網絡使用。
用途[編輯]
- 私有IP無法直接被互聯網所訪問,因此,相對於公網IP位址,它更加安全。
- 私有IP常被用於家庭,學校和企業的區域網絡。
IPv4私有地址[編輯]
IPv4的私有IP定義在RFC 1918
RFC1918 規定區塊名 | IP位址區段 | IP數量 | 分類網絡 說明 | 最大CIDR區塊 (子網絡遮罩) | 主機端位長 |
---|---|---|---|---|---|
24位元區塊 | 10.0.0.0 – 10.255.255.255 | 16,777,216 | 單個A類網絡 | 10.0.0.0/8 (255.0.0.0) | 24位元 |
20位元區塊 | 172.16.0.0 – 172.31.255.255 | 1,048,576 | 16個連續B類網絡 | 172.16.0.0/12 (255.240.0.0) | 20位元 |
16位元區塊 | 192.168.0.0 – 192.168.255.255 | 65,536 | 256個連續C類網絡 | 192.168.0.0/16 (255.255.0.0) | 16位元 |
共用地址[編輯]
Shared Address Space(RFC 6598),IANA於2012年將100.64.0.0/10定義用於電信級NAT場景。這些地址與RFC1918中定義的私有IP是不同的,只能用於運營商的內聯網,雖然在某些特性中與私有IP相同,但在定義上不能劃為私有地址(更不是公用地址)。
IPv6私有地址[編輯]
IPv6的私有IP定義在RFC 4193, 地址塊fc00 :: / 7已保留。這些地址稱為唯一本地地址(Unique Local Addresses,ULA)。 它們被定義為單播地址,並在路由字首中包含一個40位的亂數,以防止在兩個私有網絡互連時發生衝突。 儘管在本地使用,但唯一本地地址的IPv6地址範圍是全域的。
塊 | 字首 | Global ID (隨機) | Subnet ID | 網路地址個數 |
---|---|---|---|---|
48 bits | 16 bits | 64 bits | ||
fd00::/8
|
fd
|
xx:xxxx:xxxx
|
yyyy
|
18,446,744,073,709,551,616 |
鏈路本地地址[編輯]
RFC的定義參考[編輯]
- RFC 1918 – "Address Allocation for Private Internets"
- RFC 2036 – "Observations on the use of Components of the Class A Address Space within the Internet"
- RFC 2050 – "Internet Registry IP Allocation Guidelines"
- RFC 2101 – "IPv4 Address Behaviour Today"
- RFC 2663 – "IP Network Address Translator (NAT) Terminology and Considerations"
- RFC 3022 – "Traditional IP Network Address Translator (Traditional NAT)"
- RFC 3330 – "Special-Use IPv4 Addresses" (superseded)
- RFC 5735 – "Special-Use IPv4 Addresses"
- RFC 3879 – "Deprecating Site Local Addresses"
- RFC 3927 – "Dynamic Configuration of IPv4 Link-Local Addresses"
- RFC 4193 – "Unique Local IPv6 Unicast Addresses"
- RFC 6598 - "IANA-Reserved IPv4 Prefix for Shared Address Space"