Skip to content

Instantly share code, notes, and snippets.

@atoonk
Last active February 20, 2024 10:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save atoonk/d8bded9d1137b26b3c615ab614222afd to your computer and use it in GitHub Desktop.
Save atoonk/d8bded9d1137b26b3c615ab614222afd to your computer and use it in GitHub Desktop.
ipv4_prefixes_aws_2023

Summary

2023 AWS data Total number of IPv4 addresses: 127,972,688 That’s the equivalent of 7.6 /8’s Also see this blog: https://toonk.io/aws-ipv4-estate-now-worth-4-5-billion/index.html

just for fun, let's put a value number on that

value at $20 per ip: $2,559,453,760
value at $25 per ip: $3,199,317,200
value at $30 per ip: $3,839,180,640
value at $35 per ip: $4,479,044,080
value at $40 per ip: $5,118,907,520
value at $50 per ip: $6,398,634,400

data

I Aggregated the prefix ranges fetched from these sources (I'm guessing there may be more, but this combined seemed to get all the big blocks)

https://ip-ranges.amazonaws.com/ip-ranges.json

arin_entities = ["AMAZON-4","AT-88-Z","AMAZO-4","AT-89-Z","AT-9049","AMAZO-22","ASL-830","AMAZO-47","AMAZO-46","AMAZO-48"]

and these for APNIC

ORG-AARP1-AP
ORG-ACTS1-AP
ORG-ACSP2-AP
ORG-ADSJ1-AP

RIPE:

ORG-ARI3-RIPE

Breakdown by IPv4 prefix size

1x /8  => 16777216
1x /9  => 8388608
4x /10  => 16777216
7x /11  => 14680064
13x /12  => 13631488
19x /13  => 9961472
48x /14  => 12582912
87x /15  => 11403264
322x /16  => 21102592
45x /17  => 1474560
39x /18  => 638976
36x /19  => 294912
30x /20  => 122880
38x /21  => 77824
39x /22  => 39936
19x /23  => 9728
26x /24  => 6656
9x /25  => 1152
12x /26  => 768
9x /27  => 288
9x /28  => 144
4x /29  => 32

All prefixes

3.0.0.0/8
13.24.0.0/13
13.32.0.0/11
13.112.0.0/14
13.124.0.0/14
13.128.0.0/16
13.130.0.0/16
13.134.0.0/15
13.144.0.0/16
13.146.0.0/16
13.150.0.0/15
13.152.0.0/16
13.154.0.0/16
13.158.0.0/15
13.160.0.0/16
13.162.0.0/16
13.166.0.0/15
13.184.0.0/13
13.192.0.0/11
13.224.0.0/12
13.244.0.0/14
13.248.0.0/14
15.103.0.0/16
15.128.0.0/14
15.132.0.0/15
15.134.0.0/16
15.136.0.0/15
15.138.0.0/16
15.140.0.0/14
15.144.0.0/14
15.148.0.0/15
15.150.0.0/16
15.152.0.0/13
15.160.0.0/15
15.162.0.0/16
15.164.0.0/14
15.168.0.0/13
15.177.0.0/16
15.178.0.0/15
15.180.0.0/14
15.184.0.0/14
15.188.0.0/16
15.190.0.0/15
15.192.0.0/15
15.194.0.0/16
15.196.0.0/14
15.200.0.0/14
15.205.0.0/16
15.206.0.0/15
15.208.0.0/15
15.210.0.0/16
15.212.0.0/14
15.218.0.0/15
15.220.0.0/14
15.224.0.0/16
15.226.0.0/16
15.228.0.0/14
15.232.0.0/15
15.234.0.0/16
15.236.0.0/14
15.241.0.0/16
15.242.0.0/15
15.244.0.0/14
15.248.0.0/16
15.250.0.0/15
15.252.0.0/14
16.12.0.0/16
16.15.0.0/16
16.16.0.0/12
16.48.0.0/12
16.64.0.0/16
16.66.0.0/15
16.69.0.0/16
16.70.0.0/15
16.74.0.0/15
16.77.0.0/16
16.78.0.0/15
16.86.0.0/15
16.88.0.0/13
16.99.0.0/16
16.101.0.0/16
16.102.0.0/16
16.104.0.0/16
16.107.0.0/16
16.108.0.0/16
16.112.0.0/12
16.128.0.0/15
16.130.0.0/16
16.132.0.0/16
16.135.0.0/16
16.136.0.0/15
16.138.0.0/16
16.140.0.0/16
16.142.0.0/16
16.144.0.0/15
16.146.0.0/16
16.148.0.0/16
16.150.0.0/15
16.152.0.0/13
16.162.0.0/15
16.164.0.0/15
16.166.0.0/16
16.168.0.0/14
16.175.0.0/16
16.176.0.0/14
16.180.0.0/15
16.182.0.0/16
16.185.0.0/16
16.187.0.0/16
16.188.0.0/15
16.190.0.0/16
16.204.0.0/16
16.206.0.0/16
16.214.0.0/16
16.219.0.0/16
18.32.0.0/11
18.64.0.0/10
18.128.0.0/9
23.20.0.0/14
23.249.208.0/20
23.251.224.0/19
27.0.0.0/22
34.192.0.0/10
35.71.64.0/18
35.71.128.0/17
35.72.0.0/13
35.80.0.0/12
35.96.0.0/11
35.152.0.0/13
35.160.0.0/12
35.176.0.0/13
36.103.232.0/25
36.103.232.128/26
40.172.0.0/14
40.176.0.0/14
40.180.0.0/15
43.192.0.0/16
43.193.0.0/18
43.194.0.0/15
43.196.0.0/16
43.198.0.0/15
43.200.0.0/13
43.208.0.0/14
43.216.0.0/15
43.218.0.0/16
43.224.76.0/22
43.224.144.0/22
43.249.44.0/22
43.250.192.0/21
44.192.0.0/10
46.51.128.0/18
46.51.192.0/20
46.51.208.0/22
46.51.216.0/21
46.51.224.0/19
46.137.0.0/16
47.10.0.0/16
47.128.0.0/14
47.255.0.0/16
50.16.0.0/14
50.112.0.0/16
51.0.0.0/16
51.3.0.0/16
51.16.0.0/15
51.20.0.0/14
51.24.0.0/13
51.32.0.0/16
51.34.0.0/15
51.40.0.0/16
51.44.0.0/14
51.48.0.0/15
51.50.0.0/16
51.60.0.0/16
51.69.0.0/16
51.70.0.0/16
51.72.0.0/15
51.74.0.0/16
51.76.0.0/16
51.78.0.0/16
51.80.0.0/16
51.82.0.0/16
51.84.0.0/14
51.88.0.0/16
51.90.0.0/16
51.92.0.0/14
51.96.0.0/14
51.100.0.0/15
51.102.0.0/16
51.108.0.0/16
51.110.0.0/16
51.112.0.0/15
51.114.0.0/16
51.117.0.0/16
51.118.0.0/15
51.121.0.0/16
51.122.0.0/15
51.125.0.0/16
51.127.0.0/16
51.128.0.0/15
51.131.0.0/16
51.134.0.0/16
51.139.0.0/16
51.150.0.0/15
51.152.0.0/15
51.156.0.0/15
51.160.0.0/16
51.164.0.0/14
51.168.0.0/15
51.172.0.0/15
51.176.0.0/15
51.180.0.0/15
51.184.0.0/15
51.188.0.0/15
51.192.0.0/15
51.196.0.0/15
51.200.0.0/13
51.208.0.0/15
51.212.0.0/14
51.216.0.0/15
51.220.0.0/15
51.224.0.0/14
51.228.0.0/15
51.232.0.0/15
51.236.0.0/15
51.240.0.0/16
51.244.0.0/15
51.248.0.0/15
52.0.0.0/10
52.64.0.0/12
52.80.0.0/15
52.82.0.0/17
52.82.128.0/19
52.82.160.0/21
52.82.168.0/24
52.82.169.0/27
52.82.170.0/23
52.82.176.0/21
52.82.184.0/23
52.82.187.0/24
52.82.188.0/22
52.82.192.0/18
52.83.0.0/16
52.84.0.0/14
52.88.0.0/13
52.119.128.0/17
52.124.128.0/17
52.144.128.0/17
52.192.0.0/12
52.208.0.0/13
52.216.0.0/14
52.220.0.0/15
52.222.0.0/16
52.223.0.0/17
52.223.128.0/18
54.20.0.0/15
54.25.0.0/16
54.26.0.0/16
54.46.0.0/15
54.64.0.0/11
54.116.0.0/15
54.144.0.0/12
54.160.0.0/11
54.192.0.0/12
54.208.0.0/13
54.216.0.0/14
54.220.0.0/15
54.222.0.0/19
54.222.32.0/21
54.222.48.0/21
54.222.57.0/24
54.222.58.0/28
54.222.58.32/27
54.222.66.0/23
54.222.68.0/22
54.222.76.0/22
54.222.80.0/20
54.222.96.0/21
54.222.112.0/20
54.222.128.0/17
54.223.0.0/16
54.224.0.0/11
56.156.0.0/15
57.65.0.0/16
57.85.0.0/16
57.95.0.0/16
57.99.0.0/16
57.101.0.0/16
57.104.0.0/13
57.180.0.0/14
58.254.138.0/25
58.254.138.128/26
62.230.0.0/16
63.32.0.0/14
63.158.106.104/29
63.176.0.0/12
63.246.112.0/22
63.246.119.0/24
63.246.120.0/21
64.187.128.0/20
64.252.64.0/18
64.252.128.0/18
65.0.0.0/14
65.8.0.0/16
65.9.0.0/17
65.9.128.0/18
67.202.0.0/18
67.220.224.0/19
68.66.112.0/20
68.79.0.0/18
69.107.3.176/28
69.107.6.112/28
69.107.6.160/28
69.107.6.200/29
69.107.6.208/28
69.107.6.224/29
69.107.7.0/28
69.107.7.16/29
69.107.7.32/27
69.107.7.64/26
69.107.7.128/28
69.169.224.0/20
69.230.192.0/18
69.231.128.0/18
69.234.192.0/18
69.235.128.0/18
70.130.192.0/18
70.132.0.0/18
70.224.192.0/18
70.232.64.0/18
71.131.192.0/18
71.132.0.0/18
71.136.64.0/18
71.137.0.0/18
71.141.0.0/20
71.152.0.0/17
72.21.192.0/19
72.41.0.0/20
72.44.32.0/19
75.2.0.0/17
75.79.0.0/16
75.101.128.0/17
76.223.0.0/17
76.223.128.0/19
76.223.168.0/23
76.223.170.0/28
76.223.170.32/28
76.223.172.0/22
76.223.176.0/20
79.125.0.0/17
80.203.128.0/17
83.116.0.0/15
83.118.228.0/22
83.118.232.0/21
83.118.240.0/20
83.119.64.0/18
83.119.128.0/17
83.129.0.0/16
84.48.128.0/17
85.151.0.0/16
85.213.0.0/16
87.238.80.0/21
96.0.0.0/18
96.0.64.0/19
96.0.96.0/21
96.0.104.0/22
96.0.108.0/24
96.0.110.0/23
96.0.112.0/20
96.0.128.0/19
96.0.160.0/20
96.127.0.0/17
98.80.0.0/12
98.130.0.0/15
99.77.0.0/18
99.77.128.0/18
99.77.232.0/21
99.77.240.0/21
99.77.248.0/22
99.77.252.0/23
99.77.254.0/24
99.78.128.0/19
99.78.160.0/21
99.78.168.0/22
99.78.172.0/24
99.78.176.0/20
99.78.192.0/21
99.78.208.0/20
99.78.228.0/22
99.78.232.0/21
99.78.240.0/20
99.79.0.0/16
99.80.0.0/15
99.82.128.0/18
99.83.64.0/19
99.83.96.0/22
99.83.100.0/23
99.83.102.0/24
99.83.112.0/21
99.83.120.0/22
99.83.128.0/17
99.84.0.0/16
99.86.0.0/16
99.87.0.0/19
99.87.32.0/22
99.150.0.0/17
99.151.64.0/18
99.151.128.0/19
99.151.160.0/20
99.151.184.0/21
100.20.0.0/14
100.24.0.0/13
103.4.8.0/21
103.8.172.0/22
103.21.240.0/22
103.246.148.0/22
104.144.0.0/16
104.153.112.0/21
104.200.224.0/19
104.227.0.0/16
104.253.192.0/23
104.255.56.0/21
107.20.0.0/14
107.150.192.0/19
107.152.128.0/17
107.160.0.0/16
107.176.0.0/15
108.128.0.0/13
108.136.0.0/14
108.156.0.0/14
108.166.224.0/19
108.175.48.0/20
111.13.171.128/25
111.13.185.32/27
111.13.185.64/27
114.56.0.0/14
116.129.226.0/25
116.129.226.128/26
118.193.97.64/26
118.193.97.128/25
119.147.182.0/25
119.147.182.128/26
120.52.12.64/26
120.52.22.96/27
120.52.39.128/27
120.52.153.192/26
120.232.236.0/25
120.232.236.128/26
120.253.240.192/26
120.253.241.160/27
120.253.245.128/26
120.253.245.192/27
122.248.192.0/18
128.11.0.0/16
128.21.0.0/16
128.81.0.0/16
128.125.0.0/16
128.167.0.0/16
128.181.0.0/16
128.188.0.0/16
128.212.0.0/16
129.30.0.0/16
129.47.0.0/16
129.160.0.0/16
129.220.96.0/19
129.224.0.0/17
129.224.128.0/18
129.224.224.0/19
129.235.0.0/16
129.239.0.0/16
130.21.0.0/16
130.24.0.0/16
130.31.0.0/16
130.71.0.0/16
130.80.0.0/16
130.101.0.0/16
130.137.0.0/16
130.171.0.0/16
130.175.0.0/16
130.176.0.0/16
130.181.0.0/16
130.186.32.0/19
130.186.128.0/17
130.201.128.0/17
130.205.0.0/16
131.127.0.0/16
132.223.0.0/16
134.31.0.0/16
134.38.0.0/16
134.43.0.0/16
134.62.0.0/15
134.64.0.0/16
134.127.0.0/16
134.251.0.0/16
135.22.0.0/16
135.133.0.0/16
135.140.0.0/16
135.159.0.0/16
136.1.0.0/16
136.2.0.0/15
136.4.0.0/14
136.8.0.0/13
136.16.0.0/15
136.18.0.0/20
136.18.18.0/23
136.18.20.0/22
136.18.24.0/21
136.18.32.0/20
136.18.50.0/23
136.18.52.0/22
136.18.56.0/21
136.18.64.0/18
136.18.128.0/17
136.19.0.0/16
136.20.0.0/15
136.128.0.0/15
136.130.0.0/16
136.132.0.0/16
136.134.0.0/15
136.136.0.0/14
136.140.0.0/16
136.236.0.0/16
137.16.0.0/16
137.114.0.0/16
137.160.0.0/16
138.34.0.0/16
138.52.0.0/16
138.70.0.0/16
138.90.0.0/16
138.111.0.0/16
138.128.0.0/17
138.240.0.0/16
139.56.0.0/16
139.73.0.0/16
139.79.0.0/16
139.89.0.0/16
139.96.0.0/16
140.145.0.0/16
140.179.0.0/16
140.200.0.0/16
140.244.0.0/16
141.139.0.0/16
141.181.0.0/16
141.182.0.0/16
141.185.0.0/16
141.186.0.0/16
141.230.0.0/15
141.242.0.0/16
142.4.160.0/19
142.54.128.0/19
143.41.0.0/16
143.65.0.0/17
143.65.128.0/18
143.65.224.0/19
143.135.0.0/16
143.168.0.0/16
143.204.0.0/16
143.227.0.0/16
144.10.0.0/16
144.40.0.0/16
144.142.0.0/16
144.168.128.0/17
144.207.0.0/16
144.220.0.0/16
145.17.0.0/16
145.55.0.0/16
146.9.0.0/16
146.65.0.0/16
146.78.0.0/16
146.123.0.0/16
146.130.0.0/16
146.167.0.0/16
146.207.0.0/16
147.2.0.0/16
147.106.128.0/18
147.115.0.0/16
147.205.0.0/16
148.55.0.0/16
148.91.0.0/16
148.92.0.0/16
148.94.0.0/16
148.97.0.0/16
148.99.0.0/16
148.154.0.0/16
148.162.0.0/16
149.44.0.0/16
149.80.0.0/16
149.114.0.0/16
149.177.0.0/17
149.180.0.0/17
149.181.0.0/17
149.186.0.0/16
149.187.128.0/17
149.188.0.0/16
149.190.0.0/16
150.126.0.0/16
150.222.0.0/16
151.134.0.0/16
151.148.8.0/21
151.148.16.0/20
151.148.32.0/19
151.148.64.0/18
151.148.128.0/17
151.149.0.0/16
151.150.0.0/16
151.160.0.0/16
151.162.0.0/16
151.176.0.0/16
152.24.0.0/15
152.134.0.0/16
152.137.0.0/16
152.155.0.0/16
152.227.0.0/16
153.12.0.0/16
153.41.0.0/16
153.42.0.0/16
153.47.0.0/16
153.49.0.0/16
155.38.0.0/16
155.40.0.0/16
155.134.0.0/16
155.146.0.0/16
155.197.0.0/16
155.254.160.0/19
156.4.0.0/15
156.7.0.0/16
156.15.0.0/16
156.27.0.0/16
156.64.0.0/16
157.135.0.0/16
157.152.0.0/16
157.175.0.0/16
157.241.0.0/16
158.56.0.0/16
158.138.0.0/16
158.141.0.0/16
158.221.0.0/16
158.252.0.0/15
158.254.0.0/16
159.11.0.0/16
159.20.128.0/17
159.47.0.0/16
159.99.0.0/16
159.109.0.0/16
159.209.0.0/16
159.236.0.0/16
159.239.0.0/16
159.244.0.0/16
159.248.200.0/21
159.248.216.0/21
159.248.224.0/20
159.248.240.0/21
160.1.0.0/16
160.209.0.0/16
160.221.0.0/16
160.223.0.0/17
160.223.128.0/19
160.223.224.0/19
161.14.0.0/16
161.46.0.0/16
161.99.128.0/17
161.178.0.0/16
161.180.0.0/16
161.188.0.0/17
161.188.128.0/18
161.188.192.0/21
161.188.200.0/22
161.188.205.0/24
161.188.206.0/23
161.188.208.0/23
161.188.213.0/24
161.188.214.0/23
161.188.216.0/21
161.188.224.0/20
161.188.240.0/21
161.188.248.0/22
161.188.252.0/23
161.188.254.0/24
161.189.0.0/16
161.191.0.0/16
161.193.0.0/16
161.206.0.0/16
161.228.0.0/18
161.228.128.0/17
162.61.0.0/16
162.85.0.0/16
162.87.0.0/16
162.137.0.0/16
162.208.120.0/22
162.213.232.0/22
162.219.224.0/22
162.221.160.0/21
162.222.148.0/22
162.250.236.0/22
162.254.72.0/21
163.3.0.0/16
164.93.0.0/17
164.145.0.0/16
164.168.0.0/16
164.178.0.0/16
164.195.0.0/16
165.67.0.0/16
165.94.0.0/16
165.113.0.0/16
165.129.0.0/16
165.178.0.0/16
165.208.0.0/16
166.80.0.0/16
166.92.0.0/16
166.117.0.0/16
167.2.0.0/16
167.65.0.0/16
167.97.0.0/16
167.149.0.0/16
167.166.0.0/16
167.241.0.0/16
167.243.0.0/16
168.84.0.0/16
168.157.0.0/16
168.163.0.0/16
168.185.0.0/16
168.191.0.0/16
168.192.0.0/15
168.203.64.0/18
168.203.128.0/17
168.241.0.0/16
169.205.0.0/16
170.15.0.0/16
170.58.0.0/16
170.68.0.0/16
170.120.0.0/16
171.73.0.0/16
172.96.96.0/20
172.103.40.0/21
173.83.0.0/16
173.228.160.0/19
173.246.160.0/19
174.129.0.0/16
175.41.128.0/17
176.32.64.0/19
176.32.96.0/20
176.32.112.0/21
176.32.120.0/22
176.32.124.128/25
176.32.125.0/24
176.34.0.0/16
177.71.128.0/17
177.72.240.0/21
178.236.0.0/20
180.163.57.0/25
180.163.57.128/26
182.24.0.0/14
182.28.0.0/15
182.30.0.0/16
184.32.0.0/12
184.72.0.0/15
184.169.64.0/19
184.169.128.0/17
184.175.64.0/18
185.48.120.0/22
185.72.192.0/22
185.143.16.0/22
192.39.0.0/16
192.43.175.0/24
192.43.184.0/24
192.157.32.0/23
192.157.34.0/24
192.157.64.0/21
192.177.62.0/24
192.177.66.0/24
192.177.68.0/24
192.177.71.0/24
192.177.79.0/24
192.177.85.0/24
193.26.64.0/19
193.57.169.0/24
193.57.170.0/23
193.57.181.0/24
193.57.182.0/23
193.57.254.0/23
193.186.210.0/24
193.202.192.0/19
193.218.122.0/24
194.52.0.0/16
194.133.0.0/16
194.198.0.0/16
194.234.0.0/15
195.17.0.0/16
195.61.0.0/16
195.119.0.0/16
195.247.0.0/16
195.254.0.0/17
198.99.2.0/24
199.36.120.0/22
199.127.232.0/22
199.255.192.0/22
200.197.0.0/16
200.224.0.0/16
203.83.220.0/22
204.45.0.0/16
204.177.154.0/23
204.236.128.0/17
204.246.160.0/19
205.251.192.0/18
206.70.0.0/16
207.171.160.0/19
208.86.88.0/22
208.110.48.0/20
209.54.176.0/20
212.167.0.0/16
212.173.128.0/17
212.255.0.0/16
213.72.0.0/16
216.39.136.0/21
216.39.152.0/21
216.39.160.0/20
216.137.32.0/19
216.182.224.0/20
@ignas2526
Copy link

Can you please compile similar list for AWS IPv6 ranges. I found this list very helpful for configuring routing for AWS. Instead of having thousands of ranges as defined in official AWS ip-ranges.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment