Contents

IPv4 Subnetting Table

CIDR SUBNET MASK # of IPs
/32 255.255.255.255 1
/31 255.255.255.254 2
/30 255.255.255.252 4
/29 255.255.255.248 8
/28 255.255.255.240 16
/27 255.255.255.224 32
/26 255.255.255.192 64
/25 255.255.255.128 128
/24 255.255.255.0 256
/23 255.255.254.0 512
/22 255.255.252.0 1024
/21 255.255.248.0 2048
/20 255.255.240.0 4096
/19 255.255.224.0 8192
/18 255.255.192.0 16384
/17 255.255.128.0 32768
/16 255.255.0.0 65536

Sample IPv4 Config for Multi Environment Project AWS VPC

  • DEV

    • VPC : 10.110.0.0/16

    • Public Subnet One [AZ1] : 10.110.1.0/24

    • Public Submet Two [AZ2] : 10.110.3.0/24

    • Public Submet Tree [AZ3] : 10.110.5.0/24

    • Private Subnet One [AZ1] : 10.110.8.0/22

    • Private Subnet Two [AZ2] : 10.110.12.0/22

    • Private Subnet Tree [AZ3 ]: 10.110.16.0/22

  • TEST

    • VPC : 10.120.0.0/16

    • Public Subnet One [AZ1] : 10.120.1.0/24

    • Public Submet Two [AZ2] : 10.120.3.0/24

    • Public Submet Tree [AZ3] : 10.120.5.0/24

    • Private Subnet One [AZ1] : 10.120.8.0/22

    • Private Subnet Two [AZ2] : 10.120.12.0/22

    • Private Subnet Tree [AZ3 ]: 10.120.16.0/22

  • PROD

    • VPC : 10.150.0.0/16

    • Public Subnet One [AZ1] : 10.150.1.0/24

    • Public Submet Two [AZ2] : 10.150.3.0/24

    • Public Submet Tree [AZ3] : 10.150.5.0/24

    • Private Subnet One [AZ1] : 10.150.8.0/22

    • Private Subnet Two [AZ2] : 10.150.12.0/22

    • Private Subnet Tree [AZ3 ]: 10.150.16.0/22