Configure tunnels and routes

Last updated Apr 23, 2026 In this unit you will learn how to set up tunnels and routes to steer traffic.

Objectives

By the end of this module you will be able to:

  • Create tunnels on both the Cloudflare side and your router side to connect to your infrastructure.
  • Configure static routes or dynamic routes with BGP peering to steer your traffic via next-hop from Cloudflare's global network to your connected networks.

Was this helpful?

YesNo

On this page

Configure tunnels and routes - 图1Docs

{"@context":"https://schema.org","@type":"WebPage","@id":"https://developers.cloudflare.com/learning-paths/data-center-protection/configure-tunnels-routes/#page","headline":"Configure tunnels and routes","description":"Protect data centers with Magic Transit DDoS mitigation.","url":"https://developers.cloudflare.com/learning-paths/data-center-protection/configure-tunnels-routes/","inLanguage":"en","image":"https://developers.cloudflare.com/learning-paths/data-center-protection/configure-tunnels-routes/og.png?v=9e4778d50802e5a8","dateModified":"2026-04-23","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}


description: Set up Magic Transit static routes. title: Configure routes image: https://developers.cloudflare.com/learning-paths/data-center-protection/configure-tunnels-routes/configure-routes/og.png?v=34c013cf79952bfd


Skip to content

Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/learning-paths/llms.txt
Use this file to discover all available pages before exploring further.