Mexico IP ranges: IPv4 and IPv6 CIDR list
Mexico (MX) holds 811 IPv4 networks, 28,969,216 addresses in all, and 215 IPv6 networks. By IPv4 addresses it is number 19 of 238. The list comes from the regional internet registries, with neighbouring networks merged.
- IPv4 networks
- 811
- IPv4 addresses
- 28,969,216
- IPv6 networks
- 215
- Place by IPv4
- #19
Largest IPv4 networks 24
The largest network is a /10; on average a network has 35,720 addresses. These are the 24 largest.
- 189.128.0.0/10
- 187.128.0.0/11
- 187.192.0.0/11
- 189.224.0.0/11
- 201.96.0.0/11
- 187.160.0.0/12
- 187.224.0.0/12
- 189.208.0.0/12
- 148.208.0.0/13
- 148.232.0.0/13
- 148.240.0.0/13
- 177.224.0.0/13
- 177.240.0.0/13
- 187.240.0.0/13
- 189.192.0.0/13
- 148.204.0.0/14
- 148.216.0.0/14
- 177.236.0.0/14
- 187.176.0.0/14
- 187.184.0.0/14
- 189.204.0.0/14
- 201.132.0.0/14
- 201.144.0.0/14
- 201.152.0.0/14
All IPv4 networks 811
- 23.137.188.0/24
- 23.156.104.0/24
- 23.157.236.0/24
- 23.164.12.0/24
- 23.164.204.0/24
- 23.165.36.0/24
- 23.168.36.0/24
- 23.168.156.0/24
- 45.5.52.0/22
- 45.5.92.0/22
- 45.6.60.0/22
- 45.6.140.0/22
- 45.7.28.0/22
- 45.7.44.0/22
- 45.7.64.0/22
- 45.7.136.0/22
- 45.65.152.0/22
- 45.68.64.0/21
- 45.68.136.0/24
- 45.163.120.0/21
- 45.164.20.0/22
- 45.164.108.0/22
- 45.164.136.0/22
- 45.164.236.0/22
- 45.166.100.0/22
- 45.166.108.0/22
- 45.166.216.0/22
- 45.167.12.0/22
- 45.167.92.0/22
- 45.167.112.0/22
- 45.167.156.0/22
- 45.167.176.0/23
- 45.167.200.0/22
- 45.167.252.0/22
- 45.168.232.0/21
- 45.169.236.0/22
- 45.170.188.0/22
- 45.170.244.0/22
- 45.170.248.0/21
- 45.171.76.0/23
- 45.171.156.0/22
- 45.172.88.0/21
- 45.174.44.0/22
- 45.174.56.0/22
- 45.174.68.0/22
- 45.174.72.0/21
- 45.174.84.0/22
- 45.174.88.0/21
- 45.174.98.0/23
- 45.174.108.0/22
- 45.174.124.0/22
- 45.174.168.0/21
- 45.174.200.0/22
- 45.174.228.0/22
- 45.174.240.0/20
- 45.175.232.0/21
- 45.175.252.0/22
- 45.176.188.0/22
- 45.176.236.0/22
- 45.177.40.0/22
- 45.177.176.0/22
- 45.177.198.0/24
- 45.178.72.0/22
- 45.178.88.0/22
- 45.180.8.0/22
- 45.180.232.0/22
- 45.180.244.0/22
- 45.181.12.0/22
- 45.181.40.0/23
- 45.181.42.0/24
- 45.183.178.0/24
- 45.184.124.0/22
- 45.185.240.0/20
- 45.187.44.0/22
- 45.187.148.0/22
- 45.188.48.0/22
- 45.188.76.0/22
- 45.188.92.0/22
- 45.188.108.0/22
- 45.188.124.0/22
- 45.188.133.0/24
- 45.188.164.0/22
- 45.189.60.0/22
- 45.189.104.0/22
- 45.189.148.0/22
- 45.189.152.0/21
- 45.189.236.0/22
- 45.189.252.0/22
- 45.190.76.0/22
- 45.190.180.0/22
- 45.190.196.0/22
- 45.190.236.0/22
- 45.190.240.0/22
- 45.191.52.0/22
- 45.228.68.0/22
- 45.230.124.0/22
- 45.230.172.0/22
- 45.231.40.0/21
- 45.231.108.0/22
- 45.231.168.0/22
- 45.231.220.0/22
- 45.232.252.0/22
- 45.233.116.0/22
- 45.235.128.0/22
- 45.235.172.0/22
- 45.235.252.0/22
- 45.238.188.0/22
- 45.239.16.0/22
- 45.239.68.0/22
- 45.239.76.0/22
- 103.239.234.0/24
- 131.0.236.0/22
- 131.72.212.0/22
- 131.72.228.0/22
- 131.161.56.0/22
- 131.161.244.0/22
- 131.178.0.0/16
- 131.196.244.0/22
- 131.196.248.0/21
- 132.247.0.0/16
- 132.248.0.0/16
- 132.254.0.0/16
- 132.255.124.0/22
- 138.36.152.0/22
- 138.94.140.0/22
- 138.97.168.0/22
- 138.99.148.0/22
- 138.118.8.0/22
- 138.122.96.0/22
- 138.122.144.0/22
- 138.122.184.0/22
- 138.122.224.0/22
- 138.122.252.0/22
- 138.185.0.0/22
- 138.185.224.0/22
- 138.186.28.0/22
- 138.186.64.0/22
- 138.186.100.0/22
- 138.186.200.0/22
- 138.204.204.0/22
- 138.219.36.0/22
- 138.255.60.0/22
- 138.255.116.0/22
- 140.148.0.0/16
- 140.232.91.0/24
- 143.137.108.0/22
- 143.202.76.0/22
- 143.202.156.0/22
- 143.202.204.0/22
- 143.255.40.0/22
- 143.255.56.0/22
- 148.201.0.0/16
- 148.202.0.0/15
- 148.204.0.0/14
- 148.208.0.0/13
- 148.216.0.0/14
- 148.220.0.0/15
- 148.222.8.0/21
- 148.222.16.0/20
- 148.222.32.0/21
The first 160 of 811. The whole list is in the tool.
IPv6 networks 215
- 2001:1200::/32
- 2001:1201::/43
- 2001:1202::/31
- 2001:1204::/30
- 2001:1208::/32
- 2001:1210::/32
- 2001:1218::/32
- 2001:1220::/32
- 2001:1221::/48
- 2001:1222::/31
- 2001:1224::/30
- 2001:1228::/30
- 2001:122c::/31
- 2001:122e::/32
- 2001:1230::/32
- 2001:1238::/32
- 2001:1240::/32
- 2001:1248::/32
- 2001:1250::/32
- 2001:1258::/32
- 2001:1260::/31
- 2001:1263::/32
- 2001:1264::/31
- 2001:1268::/30
- 2001:126c::/32
- 2001:126e::/31
- 2001:1270::/32
- 2001:1272::/32
- 2001:1278::/32
- 2001:13a8::/32
- 2001:13c7:7000::/48
- 2001:13c7:7014::/48
- 2602:f24f::/40
- 2602:f262::/40
- 2602:f2ce::/40
- 2602:f2dd::/40
- 2602:f306::/40
- 2602:f3d9::/40
- 2602:f67e::/40
- 2602:ff73::/40
- 2801:c0::/32
- 2801:c4::/48
- 2801:c4:10::/48
- 2801:c4:12::/47
- 2801:c4:14::/47
- 2801:c4:17::/48
- 2801:c4:19::/48
- 2801:c4:1a::/48
- 2801:c4:1c::/46
- 2801:c4:20::/47
- 2801:c4:23::/48
- 2801:c4:24::/48
- 2801:c4:26::/47
- 2801:c4:29::/48
- 2801:c4:2a::/47
- 2801:c4:2c::/48
- 2801:c4:2f::/48
- 2801:c4:30::/44
- 2801:c4:50::/48
- 2801:c4:60::/48
- 2801:c4:80::/48
- 2801:c4:90::/44
- 2801:c4:a0::/45
- 2801:c4:a8::/46
- 2801:c4:af::/48
- 2801:c4:b0::/47
- 2801:c4:b3::/48
- 2801:c4:b4::/47
- 2801:c4:b7::/48
- 2801:c4:b8::/45
- 2801:c4:c0::/42
- 2801:c4:200::/44
- 2801:c4:210::/47
- 2801:c4:213::/48
- 2801:c4:215::/48
- 2801:c4:216::/48
- 2801:c4:218::/45
- 2801:c4:220::/43
- 2801:c4:240::/44
- 2801:c4:250::/47
The first 80 of 215. The whole list is in the tool.
Files for scripts and routers
Addresses that don't change. The date of the data is in the Last-Modified header.
- CIDRhttps://velivpn.com/lists/country/mx.txt
- CIDR, IPv4https://velivpn.com/lists/country/mx-ipv4.txt
- CIDR, IPv6https://velivpn.com/lists/country/mx-ipv6.txt
- MikroTikhttps://velivpn.com/lists/country/mx.rsc
- nftableshttps://velivpn.com/lists/country/mx.nft
- ipsethttps://velivpn.com/lists/country/mx.ipset
- AmneziaVPNhttps://velivpn.com/lists/country/mx.json
- CSVhttps://velivpn.com/lists/country/mx.csv
MikroTik: fetch and import
/tool fetch url="https://velivpn.com/lists/country/mx.rsc" /import mx.rsc
Ready for your router or client
The first lines in each format. The tool gives the whole list, merges neighbouring networks and says what a format can't hold.
MikroTik
# mx (2026-11-30), velivpn.com/tools/ip-list/ /ip firewall address-list add list=country_mx address=187.128.0.0/11 add list=country_mx address=187.160.0.0/12 add list=country_mx address=187.192.0.0/11 add list=country_mx address=187.224.0.0/12 add list=country_mx address=189.128.0.0/10 add list=country_mx address=189.208.0.0/12 add list=country_mx address=189.224.0.0/11 add list=country_mx address=201.96.0.0/11 …
nftables
# mx (2026-11-30), velivpn.com/tools/ip-list/
table inet ip_list {
set country_mx_v4 {
type ipv4_addr
flags interval
elements = {
187.128.0.0/11,
187.160.0.0/12,
187.192.0.0/11,
187.224.0.0/12,
189.128.0.0/10,
189.208.0.0/12,
…ipset
create country_mx_v4 hash:net family inet maxelem 65536 -exist add country_mx_v4 187.128.0.0/11 -exist add country_mx_v4 187.160.0.0/12 -exist add country_mx_v4 187.192.0.0/11 -exist add country_mx_v4 187.224.0.0/12 -exist add country_mx_v4 189.128.0.0/10 -exist add country_mx_v4 189.208.0.0/12 -exist add country_mx_v4 189.224.0.0/11 -exist add country_mx_v4 201.96.0.0/11 -exist …
CSV
service,type,value mx,ipv4,187.128.0.0/11 mx,ipv4,187.160.0.0/12 mx,ipv4,187.192.0.0/11 mx,ipv4,187.224.0.0/12 mx,ipv4,189.128.0.0/10 mx,ipv4,189.208.0.0/12 mx,ipv4,189.224.0.0/11 mx,ipv4,201.96.0.0/11 …
In Veli the same is set by sites and apps, without lists: what goes through the VPN and what goes direct. There is a package for OpenWrt routers. Free, no sign-up.
Download VeliFAQ
How many IP addresses does Mexico have?
28,969,216 IPv4 addresses in 811 networks and 215 IPv6 networks, as of 2026-11-30.
Is an address from this list always in Mexico?
No. The registries record where the holder is registered, not where the server stands: companies lease and announce their networks elsewhere. Geolocation databases may say otherwise.
How do I block or route a whole country on MikroTik?
Take the MikroTik format in the tool: it is a script with address-list entries. Thousands of entries cost memory, so leave the merging of networks on.