I've got several offices connected over a WAN that use BGP for routing between the offices. Each office also has a seperate circuit for Internet use. What I'm trying to do is setup a failover in case the WAN goes down to connect the offices over the Internet using a VPN tunnel.
What I've done is added a static route with a metric greater than the BGP route. This seems to work when the WAN circuit goes down. The static route appears when I do a sh ip route, but when the WAN comes back up the static route does not go away even though the BGP route has a lesser metric value. If I take out the static route the BGP route immediately appears and I have connectivity over the WAN again.
here's an example of one the BGP routes from a sh ip route B 192.168.65.0/24 [20/0] via 126.96.36.199, 04:48:16
here's the static route I added for this subnet for one of the offices ip route 192.168.65.0 255.255.255.0 192.168.25.15 100
My understanding is that the BGP route should take precedence once the WAN is up. Can anyone offer some insight as to why the static route remains in place.