Skip to content

Instantly share code, notes, and snippets.

@KuRRe8
Last active November 10, 2025 09:21
Show Gist options
  • Select an option

  • Save KuRRe8/fd4e0613dbd97ded17cf087a4419556b to your computer and use it in GitHub Desktop.

Select an option

Save KuRRe8/fd4e0613dbd97ded17cf087a4419556b to your computer and use it in GitHub Desktop.
网络相关

常见保留网段分类如下:

一、私有地址(RFC1918)

  • 10.0.0.0/8
  • 172.16.0.0/12
  • 192.168.0.0/16 用途:局域网、VPN、NAT。

二、环回与本地链路

  • 127.0.0.0/8 → 本机环回(常用 127.0.0.1)。
  • 169.254.0.0/16 → 链路本地(DHCP 失败时自动分配)。

三、文档和示例(不可路由)

  • 192.0.2.0/24 → TEST-NET-1
  • 198.51.100.0/24 → TEST-NET-2
  • 203.0.113.0/24 → TEST-NET-3 用途:示例、教材、文档。

四、特殊功能地址

  • 0.0.0.0/8 → 本网络(源地址用得多)。
  • 100.64.0.0/10 → Carrier-Grade NAT (CGNAT)。
  • 192.0.0.0/24 → IETF 协议保留(如 DS-Lite 用 192.0.0.8/32)。
  • 192.88.99.0/24 → 6to4 继任网段(已废弃)。

五、基准测试(RFC1544)

  • 198.18.0.0/15 → 网络设备性能测试。

六、多播和保留

  • 224.0.0.0/4 → IPv4 多播。
  • 240.0.0.0/4 → 保留,未来可能使用。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment