Troubleshooting notes · VPN and tunnels
GRE tunnel flapping: "temporarily disabled due to recursive routing"
A GRE tunnel comes up, OSPF forms over it, then the tunnel goes down with %TUN-5-RECURDOWN, again and again. Why the router routes the tunnel through itself, and the fix. Real output from Cisco IOS XE 17.18.
The symptom
The GRE tunnel comes up and OSPF forms over it. Then the tunnel goes down, OSPF drops, the tunnel comes back, and the cycle repeats. The log shows the reason:
R1# show logging | include RECUR|ADJCHG|UPDOWN
%TUN-5-RECURDOWN: Tunnel0 temporarily disabled due to recursive routing
%LINEPROTO-5-UPDOWN: Line protocol on Interface Tunnel0, changed state to down
%OSPF-5-ADJCHG: Process 1, Nbr 3.3.3.3 on Tunnel0 from FULL to DOWN, Neighbor Down: Interface down or detached
%LINEPROTO-5-UPDOWN: Line protocol on Interface Tunnel0, changed state to up
%OSPF-5-ADJCHG: Process 1, Nbr 3.3.3.3 on Tunnel0 from LOADING to FULL, Loading Done
%TUN-5-RECURDOWN: Tunnel0 temporarily disabled due to recursive routing
%LINEPROTO-5-UPDOWN: Line protocol on Interface Tunnel0, changed state to down
%OSPF-5-ADJCHG: Process 1, Nbr 3.3.3.3 on Tunnel0 from FULL to DOWN, Neighbor Down: Interface down or detached
Why it happens
A tunnel's packets are sent to the tunnel destination over the normal routing table. Here the far router runs OSPF on all its interfaces (network 0.0.0.0 255.255.255.255), so it also advertises its internet link, the network that contains the tunnel destination, over the tunnel. That OSPF route is more specific than the default route, so the router now tries to reach the tunnel destination through the tunnel itself. IOS detects the loop and disables the tunnel (RECURDOWN). OSPF drops, the route goes away, the tunnel comes back up, OSPF learns the route again, and so on.
The fix
Never let the routing protocol inside the tunnel advertise the path to the tunnel endpoints. Here that means advertising only the tunnel subnet and the LAN:
R3(config)# router ospf 1
R3(config-router)# no network 0.0.0.0 255.255.255.255 area 0
R3(config-router)# network 172.16.0.0 0.0.0.3 area 0
R3(config-router)# network 10.3.3.0 0.0.0.255 area 0
Other ways to do the same: filter the endpoint networks out of the routing protocol, or reach the tunnel destination with a more specific static route over the physical link.
Check it
The log should stop showing %TUN-5-RECURDOWN. On the near router, show ip route <tunnel destination> should point at the physical interface, never at the tunnel, and the OSPF neighbour over the tunnel should stay FULL.
Practise this fault
This fault is in ENCOR Lab 04 of ENCOR Core Labs: a ready-made GNS3 project where you find and fix it yourself, alongside the other faults in the ticket, with the tested solution.
Or start with 15 free labs (5 each from CCNA, ENARSI and ENCOR), by email:
We’ll email you the download links and occasional lab tips. Unsubscribe with one click, any time. Your address is never shared.