0%

私有ip地址网段与掩码和掩位范围

私有ip地址(这里近谈ipv4私有ip)是网络地址的重要组成部分(真用起来发现真好用),ipv4 有三个主要的私有地址网段:

A类地址网段:10.0.0.0/8 范围:10.0.0.0-10.255.255.255
B类地址网段:172.16.0.0/12 范围:172.16.0.0-172.31.255.255
C类地址网段:192.168.0.0/16 范围:192.168.0.0-192.168.255.255

原文链接:http://blog.ryjer.com/posts/a19434a7d.html

三大私有 ipv4 地址块

类别地址块范围广播地址十进制掩码
A10.0.0.0/810.0.0.0 ~ 10.255.255.25510.255.255.255255.0.0.0
B172.16.0.0/12172.16.0.0 ~ 172.31.255.255172.31.255.255255.240.0.0
C192.168.0.0/16192.168.0.0 ~ 192.168.255.255192.168.255.255255.255.255.0

可参考 IANA 官网相关页:IANA IPv4 Special-Purpose Address Registry

以上三个私有地址网段定义在 RFC1918 文档中:RFC 1918: Address Allocation for Private Internets (rfc-editor.org)

CIDR值与子网掩码

只列出常见的,请自行分8位后换算

CIDR值子网掩码
/8255.0.0.0
/9255.128.0.0
/10255.192.0.0
/11255.224.0.0
/12255.240.0.0
/13255.248.0.0
/14255.252.0.0
/15255.254.0.0
/16255.255.0.0
/24255.255.255.0