Showing results for 
Search instead for 
Did you mean: 
Popup Hotspot Using ISR 1000 with WiFi/LTE for Teleworkers and Micro Branchesr

OSPF/VPN backup for BGP MPLS not failing back.

I am attempting to set up VPN failover for our MPLS circuits at our remote locations.  We are currently set up to use weighted static routes that give preference to BGP.  This works, but the static routes must be listed on all of the destination routers in order to make those destinations accessible, and we need to reconfigure all of the routes manually every time there is a change.  The VPNs used are standard point-to-point tunnels which are terminated on the MPLS routers, and are always active.

I configured one of the backup tunnels to use OSPF, and it failed over immediately after downing the MPLS interface on the remote router, but after reenabling the MPLS it kept using the OSPF routes.  I had to down the VPN interface manually in order for it to use the BGP routes again.  I assumed the BGP routes would always take precedence due to lower administrative distance?  Am I missing something?

Relevant section of remote MPLS router config (ip addresses changed to protect the innocent):

interface FastEthernet0/0
description TO LAN
ip address

interface FastEthernet0/1
description TO Internet-Backup-MPLS
ip address

interface Tunnel100
description Bkup Tunnel to HQ

ip address

tunnel source
tunnel destination
crypto map test-map

router ospf 1
redistribute bgp 65501 subnets
network area 0
network area 0

router bgp 65501
no synchronization
bgp log-neighbor-changes
network mask
redistribute ospf 1
neighbor remote-as 209
no auto-summary

Everyone's tags (4)

OSPF/VPN backup for BGP MPLS not failing back.

I've been digging on the Internets, and it seems as if my issue is due to the redistribution of OSPF routes into BGP?  Evidently the weight of the redistributed route is causing it to be preferred over the original BGP route.  There was some mention of fixing this by adding a route-map with a set weight of 0, but couldn't find the details.  Any ideas?