IP address service bindings
In IP address management, service bindings are mappings that control whether traffic destined for a given IP address is routed to Magic Transit, the CDN pipeline 1, or the Spectrum pipeline 2.
Service binding operations are currently only available via API. You can find all endpoints and their specifications in the Cloudflare API documentation. For detailed guidance, refer to the sections and tutorials linked below.
Customers using BYOIP with Magic Transit, CDN services, or Spectrum can leverage the service binding API endpoints to selectively route traffic through the CDN 1 or Spectrum 2 pipelines on a per-IP address basis. This means:
- You can upgrade individual IPs within a Magic Transit prefix to either a CDN IP or a Spectrum IP. For example, if you have a Magic Transit prefix
203.0.113.0/24, you can upgrade203.0.113.1to CDN and203.0.113.2to Spectrum. - You can upgrade individual IPs within a CDN prefix to a Spectrum IP. For example, if you have a CDN prefix
203.0.113.0/24, you can upgrade203.0.113.1to Spectrum. - You can upgrade individual IPs within a Spectrum prefix to a CDN IP. For example, if you have a Spectrum prefix
203.0.113.0/24, you can upgrade203.0.113.1to CDN.
Refer to Magic Transit with CDN or CDN and Spectrum for detailed guidance.
When a service binding of type CDN is applied, once the change has propagated across Cloudflare's global network (four to six hours), any HTTP requests are directed into the CDN pipeline for Layer 7 processing.
When a service binding of type Spectrum is applied, once the change has propagated across Cloudflare's global network (four to six hours), any TCP/UDP/HTTP requests are directed into the Spectrum pipeline for Layer 4 or Layer 7 processing.
The entire BYOIP prefix is primarily announced for Magic Transit, providing layer 3 DDoS protection and acceleration. Traffic not explicitly bound to CDN will flow through Magic Transit.
Also, traffic egressing to an IP in the prefix will always go to Magic Transit, even if there is an overlapping binding for CDN or Spectrum. This allows customers who want to use the same IP as ingress IP and as origin IP to do so.
flowchart LR
accTitle: Cloudflare as a reverse proxy
accDescr: Diagram showing Cloudflare's network between clients and the origin server.
A[Client] --ingress--> B((Cloudflare))--egress--> C[(Origin server)]
When adding a service binding for a given IP address, it must be either a CDN service binding or a Spectrum service binding. It is not possible (or necessary) to bind both services.
Was this helpful?
- Resources
- API
- New to Cloudflare?
- Directory
- Sponsorships
- Open Source
- Support
- Help Center
- System Status
- Compliance
- GDPR
- Company
- cloudflare.com
- Our team
- Careers
- © 2025 Cloudflare, Inc.
- Privacy Policy
- Terms of Use
- Report Security Issues
- Trademark
-