Routing

何時使用可路由 IP 地址與不可路由 IP 地址

  • March 22, 2017

據我了解,有幾個“不可路由”的 IP 範圍:

  • A類預留空間10.0.0.0/8
  • B類預留空間172.16.0.0/12
  • C類預留空間192.168.0.0/16
  • E 類保留用於研究 240.0.0.0

但我想我根本不理解“可路由”與“不可路由”之間的區別。何時需要可路由而不是不可路由,反之亦然?

您列出的這些範圍在此 RFC 1918 - 專用 Internet 的地址分配中進行了描述

標題給出了他們的案例: “… for Private Intranet”

所有 IP 地址範圍在技術上都是可路由的,包括 RFC 中列出的那些。但它們通常被稱為不可路由。這是因為它們並不意味著可從公共網際網路路由或訪問。即網際網路上不存在這些範圍的路由。

它們是為專用網路保留的。具有 RFC 1918 IP 範圍的專用網路無需在 Internet 上發布這些專用網路路由即可到達公共 Internet 的方式是通過位於專用 Intranet 和 Internet 之間進行網路地址轉換或 NAT 的路由器。但這是另一個話題。

至於為什麼你首先想要不可路由的地址?從 RFC 中提取的內容解釋了這一點。

One challenge is a concern within the community that globally unique
address space will be exhausted. 

A separate and far more pressing concern is that the amount of 
routing overhead will grow beyond the
capabilities of Internet Service Providers. 

Efforts are in progress
within the community to find long term solutions to both of these
problems. Meanwhile it is necessary to revisit address allocation
procedures, and their impact on the Internet routing system.

引用自:https://serverfault.com/questions/725666