IPv4 子网与 CIDR 计算器
辅助规划 AWS/GCP 云上 VPC 与 Kubernetes Pod 网络,支持即时计算可用 IP 范围及二进制位掩码。
AWS & GCP Reserved IPs
In cloud VPCs (such as AWS and GCP), the first 4 and last 1 IP addresses in every subnet are
reserved for internal infrastructure (e.g., Network, VPC Router, DNS, Future use, and
Broadcast). A /28 subnet has 16 total IPs, but only 11 usable IPs for EC2 instances or containers.
Pod & Service CIDR Sizing
Always plan your Kubernetes Pod CIDR to accommodate node expansion. Standard AWS VPC CNI
assigns secondary private IPv4 addresses to ENIs, requiring sufficiently wide CIDRs (e.g., /16 or /18) to avoid pod IP exhaustion during rolling deployments.
Zero Route Overlap
When peering VPCs or establishing Site-to-Site IPsec VPNs, never use overlapping RFC 1918
blocks (e.g. both sides on 10.0.0.0/16). Overlapping routes require cumbersome
double-NAT setups to route traffic.