BGP with static route failover

Hello

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 159.24.134.33, 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.

TIA cb

Reply to
cb
Loading thread data ...

Post the config for the BGProuting process

Reply to
Merv

Thank you for your reply Merv. I apologize but I'm not exactly sure how to show the config for the BGP routing. Here is a sh ip bgp. not sure if this is what you're looking for. thanks.

BGP table version is 429, local router ID is 10.10.10.25 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path

*> 10.1.1.0/24 192.168.25.16 0 32768 ? *> 10.1.15.0/24 159.24.134.33 0 65000 65000 ? *> 10.1.25.0/24 192.168.25.16 0 32768 ? *> 10.1.125.0/24 159.24.134.33 0 65000 65000 ? *> 10.10.25.0/24 192.168.25.14 0 32768 ? *> 147.225.229.20/30 159.24.134.33 0 65000 ? *> 147.225.229.28/30 159.24.134.33 0 65000 ? *> 147.225.238.184/30 159.24.134.33 0 65000 ? *> 151.209.112.0/24 159.24.134.33 0 65000 65000 ? *> 159.24.133.76/30 159.24.134.33 0 65000 ? *> 159.24.133.78/32 159.24.134.33 0 65000 ? r> 159.24.134.32/30 159.24.134.33 0 0 65000 ? *> 159.24.134.36/30 159.24.134.33 0 65000 ? *> 159.24.166.212/30 159.24.134.33 0 65000 ? *> 159.24.166.214/32 159.24.134.33 0 65000 ? *> 159.24.247.44/30 159.24.134.33 0 65000 ? *> 159.24.249.44/30 159.24.134.33 0 65000 ? *> 192.168.15.0 159.24.134.33 0 65000 65000 i *> 192.168.25.0 0.0.0.0 0 32768 i *> 192.168.26.0 159.24.134.33 0 65000 65000 i *> 192.168.27.0 159.24.134.33 0 65000 65000 i *> 192.168.28.0 192.168.25.15 0 32768 ? *> 192.168.29.0 192.168.25.15 0 32768 ? Network Next Hop Metric LocPrf Weight Path *> 192.168.65.0 159.24.134.33 0 65000 65000 i *> 192.168.125.0 159.24.134.33 0 65000 65000 i *> 192.168.130.0 159.24.134.33 0 65000 65000 i *> 192.168.135.0 159.24.134.33 0 65000 65000 i *> 206.113.119.128/26 159.24.134.33 0 65000 65004 ? *> 206.114.82.192/30 159.24.134.33 0 0 65000 ? *> 206.114.82.194/32 159.24.134.33 0 0 65000 ? *> 209.116.53.0 159.24.134.33 0 65000 65000 ?
Reply to
cb

show run | begin router bgp

or sh run and cut and paste starting at the line "router bgp xxxx"

Reply to
Merv

OBTW to answer the original question, the route with the lower Administrative Distance (AD) should be installed into the main routing table.

External BGP routes have an AD of 20, the floating static route was configured with an AD of 100, so the BGP route SHOULD be installed.

Reply to
Merv

Thanks again Merv. I appreciate your time and patience. Here's the show run | begin router bgp.

router bgp 1 no synchronization bgp log-neighbor-changes network 192.168.25.0 redistribute static neighbor 159.24.134.33 remote-as 65000 neighbor 159.24.134.33 default-originate no auto-summary ! no ip http server ip classless ip route 0.0.0.0 0.0.0.0 192.168.25.10 ip route 10.1.1.0 255.255.255.0 192.168.25.16 ip route 10.1.25.0 255.255.255.0 192.168.25.16 ip route 10.10.25.0 255.255.255.0 192.168.25.14 ip route 192.168.15.0 255.255.255.0 192.168.25.15 100 ip route 192.168.26.0 255.255.255.0 192.168.25.15 100 ip route 192.168.27.0 255.255.255.0 192.168.25.15 100 ip route 192.168.28.0 255.255.255.0 192.168.25.15 ip route 192.168.29.0 255.255.255.0 192.168.25.15 ip route 192.168.125.0 255.255.255.0 192.168.25.15 100 ip route 192.168.130.0 255.255.255.0 192.168.25.15 100 ip route 192.168.135.0 255.255.255.0 192.168.25.15 100

Reply to
cb

There are a number of IOS bug associated with static redistribution.

Please send the output of show version from the main router and the branch router for which you showed the BGP and floating static route and the configs for both to my private email snipped-for-privacy@rogers.com

Reply to
Merv

one thing i would like to see is you IGP routing table also . i.e sh ip route . also i noticed a RIB failure on 159.24.134.32/30 network in your bgp routing table . r> 159.24.134.32/30 159.24.134.33 0 0 65000 ?

please if possible post the show ip route output .

thanks

Reply to
cisco

Cabling-Design.com Forums website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.