Cisco IOS XE·续
ip access-list extended CF_WAN_PBR_ALL
permit ip 192.168.125.0 0.0.0.255 any
Define route map to associate matched traffic to PBR VRF
route-map CF_WAN_PBR_RM permit 10
match ip address CF_WAN_PBR_ALL
set vrf CF_WAN_PBR_VRF
exit
Apply route map to LAN interface
Assuming the IP address assigned to the LAN interface is 192.168.125.1/24:
interface GigabitEthernet1
description LAN interface
ip address 192.168.125.1 255.255.255.0
ip policy route-map CF_WAN_PBR_RM
Configure Cisco Express Forwarding (CEF) for load sharing (universal algorithm)
Set the load-sharing algorithm to universal:
ip cef load-sharing algorithm universal
Note
This example keeps Tunnel1 and Tunnel2 in the global routing table so the existing IPsec underlay configuration, IKE control plane, and management commands remain unchanged.
The VRF in this configuration is used only as a local forwarding target for PBR. It does not participate in any dynamic routing protocol, so no Route Distinguisher or address-family configuration is required.
The global default route remains in place and continues to forward IPsec underlay traffic and any non-LAN traffic out the router's normal Internet path. Return traffic from Cloudflare arrives on Tunnel1 and Tunnel2 in the global table and is forwarded to the LAN via the connected route for 192.168.125.0/24, so no return-path configuration is required.
Health Tracking - IP SLA (recommended)
The PBR and VRF-based ECMP design described above installs both static default routes in CF_WAN_PBR_VRF as long as line protocol is up on the corresponding tunnel interfaces.
On Cisco IOS XE, a Virtual Tunnel Interface (VTI) remains up/up based on its tunnel source and destination configuration, not on the state of the underlying IKE/IPsec security associations. As a result, a tunnel can appear available to the routing table even when its IKE/IPsec SAs have failed. In this condition, CEF can continue to hash traffic toward the failed tunnel, which can silently drop a portion of flows.
To prevent this, configure an IP SLA icmp-echo probe for each tunnel, using the local VTI address as the source and the remote tunnel IP address as the destination. If a probe stops receiving responses, its associated track object changes to down, and the corresponding static route is removed from the VRF forwarding table.
CEF then removes that path from the ECMP set, and all matched traffic shifts to the remaining healthy tunnel. When the failed tunnel recovers, the probe succeeds, the track object returns to up, the route is reinstalled, and traffic is automatically balanced across both tunnels again.
Note
This tracking is separate from Cloudflare tunnel health checks. Cloudflare uses its own bidirectional health checks to make forwarding decisions on the Cloudflare side. The IP SLA tracking described here affects the router's forwarding decisions. These mechanisms are complementary and serve different purposes.
Define IP SLA probes
Instantiate an IP SLA probe (type icmp-echo) with Tunnel1 source IP 169.254.250.1 and destination IP 169.254.250.0 - send a probe every five seconds:
ip sla 1
icmp-echo 169.254.250.0 source-interface Tunnel1
frequency 5
ip sla schedule 1 life forever start-time now
Instantiate an IP SLA probe (type icmp-echo) with Tunnel2 source IP 169.254.250.3 and destination IP 169.254.250.2 - send a probe every five seconds:
ip sla 2
icmp-echo 169.254.250.2 source-interface Tunnel2
frequency 5
ip sla schedule 2 life forever start-time now
Define track objects
The following track objects dampen short-lived packet loss to avoid route flaps on transient events:
track 1 ip sla 1 reachability
delay down 3 up 3
track 2 ip sla 2 reachability
delay down 3 up 3
Troubleshooting
IKEv2/IPsec diagnostics
- Display IKE (Phase 1) Security Associations detail:
show crypto ikev2 sa detailed
IPv4 Crypto IKEv2 SA
Tunnel-id Local Remote fvrf/ivrf Status
1 203.0.113.100/500 162.159.135.1/500 none/none READY
Encr: AES-GCM, keysize: 256, PRF: SHA512, Hash: None, DH Grp:20, Auth sign: PSK, Auth verify: PSK
PQC Key Exchange: ML-KEM-768
Life/Active Time: 86400/501 sec
CE id: 0, Session-id: 3
Local spi: 9BEA9E397377D9BB Remote spi: 0830302A3CD0A874
Status Description: Negotiation done
Local id: bf6c493d03REDACTED.ipsec.cloudflare.com
Remote id: 162.159.135.1
Local req msg id: 3 Remote req msg id: 0
Local next msg id: 3 Remote next msg id: 0
Local req queued: 3 Remote req queued: 0
Local window: 20 Remote window: 1
DPD configured for 0 seconds, retry 0
IETF Std Fragmentation enabled.
Quantum-safe Encryption using PQC: ML-KEM-768
Dynamic Route Update: disabled
IETF Std Fragmentation MTU in use: 1372 bytes.
Extended Authentication not configured.
NAT-T is detected inside
Cisco Trust Security SGT is disabled
Initiator of SA : Yes
PEER TYPE: Other
- Clear security associations:
clear crypto session remote <peer-ip-address>
Another option to restart the IPsec tunnels is to administratively disable and re-enable the tunnel interfaces using shutdown and no shutdown:
int Tunnel1
shutdown
no shutdown
int Tunnel2
shutdown
no shutdown
Policy-based routing
- Display Route Map details. Ensure the counters increment to confirm whether traffic matches the policy (
CF_WAN_PBR_ALL):
show route-map CF_WAN_PBR_RM
route-map CF_WAN_PBR_RM, permit, sequence 10
Match clauses:
ip address (access-lists): CF_WAN_PBR_ALL
Set clauses:
vrf CF_WAN_PBR_VRF
Policy routing matches: 12077 packets, 4639582 bytes
- List routes in the VRF (
CF_WAN_PBR_VRF):
show ip route vrf CF_WAN_PBR_VRF
Routing Table: CF_WAN_PBR_VRF
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, m - OMP
n - NAT, Ni - NAT inside, No - NAT outside, Nd - NAT DIA
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
H - NHRP, G - NHRP registered, g - NHRP registration summary
o - ODR, P - periodic downloaded static route, l - LISP
a - application route
+ - replicated route, % - next hop override, p - overrides from PfR
& - replicated local route overrides by connected
Gateway of last resort is 169.254.244.6 to network 0.0.0.0
S* 0.0.0.0/0 [1/0] via 169.254.250.0
[1/0] via 169.254.250.2
- List routes matching
0.0.0.0/0in the CEF table:
show ip cef vrf CF_WAN_PBR_VRF 0.0.0.0/0
0.0.0.0/0
nexthop 169.254.250.0 Tunnel1
nexthop 169.254.250.2 Tunnel2
Health tracking - IP SLA
- Display
trackobject state:
show track brief
Track Type Instance Parameter State Last Change
1 ip sla 1 reachability Up 00:15:13
2 ip sla 2 reachability Up 01:16:08
- Display IP SLA statistics:
show ip sla statistics
IPSLAs Latest Operation Statistics
IPSLA operation id: 1
Latest RTT: 6 milliseconds
Latest operation start time: 15:23:03 CDT Mon Jun 1 2026
Latest operation return code: OK
Number of successes: 380
Number of failures: 1
Operation time to live: Forever
IPSLA operation id: 2
Latest RTT: 6 milliseconds
Latest operation start time: 15:23:00 CDT Mon Jun 1 2026
Latest operation return code: OK
Number of successes: 376
Number of failures: 0
Operation time to live: Forever
Validate tunnel failover
To validate failover, administratively shut one tunnel interface or block ICMP across one of the tunnel paths. Within a few seconds the affected track transitions to Down, the corresponding route is removed from CF_WAN_PBR_VRF, and the remaining tunnel carries all LAN traffic. Restoring the tunnel reverses the change automatically.
References
- Release Notes for Cisco 8000 Series Secure Routers, Release 26.1.x ↗︎
- Understanding Quantum-Safe Encryption on Cisco IOS XE Platforms ↗︎
- Configuring Quantum-Safe Encryption Using Postquantum Keys - Cisco IOS XE 17.x ↗︎
- Security and VPN Configuration Guide - Cisco IOS XE 17.x ↗︎
- IPsec Virtual Tunnel Interfaces - Cisco IOS XE 17.x ↗︎
- Configuring Security for VPNs with IPsec - Cisco IOS XE 17.x ↗︎
Was this helpful?
YesNo
On this page
{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/cloudflare-wan/configuration/third-party/cisco-ios-xe/#page","headline":"Cisco IOS XE","description":"Connect Cisco IOS XE to Cloudflare WAN with or without Post-Quantum Cryptography (ML-KEM 768).","url":"https://developers.cloudflare.com/cloudflare-wan/configuration/third-party/cisco-ios-xe/","inLanguage":"en","image":"https://developers.cloudflare.com/cloudflare-wan/configuration/third-party/cisco-ios-xe/og.png?v=a8215cbb977dbee5","dateModified":"2026-06-02","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: Configure static routing on Cisco Meraki MX with Cloudflare WAN. title: Cisco Meraki MX (static routing) image: https://developers.cloudflare.com/cloudflare-wan/configuration/third-party/cisco-meraki-static/og.png?v=1727103f2dadb01c
Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/cloudflare-wan/llms.txt
Use this file to discover all available pages before exploring further.
Docs