SUPPORT.TWILIO.COM END OF LIFE NOTICE: This site, support.twilio.com, is scheduled to go End of Life on February 27, 2024. All Twilio Support content has been migrated to help.twilio.com, where you can continue to find helpful Support articles, API docs, and Twilio blog content, and escalate your issues to our Support team. We encourage you to update your bookmarks and begin using the new site today for all your Twilio Support needs.

What is the CIDR notation for an IP?

Question

My firewall doesn't allow safelisting based on FQDN, and it requires CIDR for IPv4 notation. How can I convert my dedicated IP to this format? 

 

Product

Twilio SendGrid (Email API and Marketing Campaigns)

 

Answer

  • For specific IPs, the CIDR notation should be IPv4/32. For example: 23.34.145.67/32
  • If you have a range of IPs where only the last octet differs, and you don't want to enter each IP separately, you can use the following notation: IPv4/24. 

    For example, 23.34.145.0/24 covers the range 23.34.145.0 to 23.34.145.255

  • If you have a range of IPs where the last two octets differ, and you don't want to enter each IP separately, you can use the following notation: IPv4/16. 

    For example, 23.34.0.0/16 covers the range 23.34.00 to 23.34.255.255

 

Additional Information 

Please note that SendGrid doesn't recommend the use of IP safelisting/pinning for other purposes, because we regularly turn on and off the IP addresses for maintenance or failures.

Have more questions? Submit a request
Powered by Zendesk