Skip to content

Commit cbe75df

Browse files
partial for longest prefix match
1 parent ded57de commit cbe75df

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
{}
3+
---
4+
5+
Cloudflare routing applies longest-prefix match. A more specific static route (like `/30`) will always be preferred over a less specific one (like `/29`), regardless of tunnel priority — unless the more specific route is removed.

src/content/partials/networking-services/reference/traffic-steering.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ params:
1010
- tunnelHCsPage
1111
---
1212

13-
import { AnchorHeading, Aside, Markdown } from "~/components";
13+
import { AnchorHeading, Aside, Markdown, Render } from "~/components";
1414

1515
## Magic routing table
1616

@@ -60,7 +60,7 @@ Magic {props.productName} is steered along tunnel routes based on priorities of
6060

6161
- Lower values have greater priority.
6262
- When the priority values for prefix entries match, Cloudflare uses [equal-cost multi-path (ECMP)](#equal-cost-multi-path-routing) packet forwarding to route traffic. An optional weight value can be applied to static routes to [modify ECMP tunnel distribution](#set-priority-and-weights-for-static-routes).
63-
- Cloudflare routing applies longest-prefix match. A more specific static route (like `/30`) will always be preferred over a less specific one (like `/29`), regardless of tunnel priority — unless the more specific route is removed.
63+
- <Render file="longest-prefix-match" product="networking-services/reference" />
6464
- When BGP and static routes have the same prefix and priority, Cloudflare enforces priority by preferring static routes over BGP routes. This ensures that manually configured static routes take precedence unless explicitly deprioritized.
6565

6666
### Set priority and weights for static routes

src/content/partials/networking-services/routing/configure-routes.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Refer to <a href={props.trafficSteeringPage}>Traffic Steering</a> for more infor
3333
6. In **Tunnel/Next hop** select which tunnel you want your route to go through. Choose from the tunnels you have created in <a href={props.tunnelEndpoints}>Configure tunnel endpoints</a>.
3434
7. Choose the **Priority** for your route. Lower numbers have higher priorities.
3535
:::note
36-
You should also be aware that Cloudflare routing applies longest-prefix match. This means more specific routes will always be preferred over less specific ones. Refer to <a href={props.routePrioritization}>Route prioritization</a> for more information.
36+
<Render file="longest-prefix-match" product="networking-services/reference" /> Have this in mind when configuring priorities for your routes. Refer to <a href={props.routePrioritization}>Route prioritization</a> for more information.
3737
:::
3838
8. (Optional) Choose a **Weight** for your route. Refer to <a href={props.chooseWeights}>Set priority and weights for static routes</a> for examples.
3939
9. (Optional) If you need to scope your route to a specific region, you can do it in **Region code**.

0 commit comments

Comments
 (0)