I have an interesting problem with my current router setup that I wonder if anyone has any suggestions for.
I have two data centres both with their own /25 public IP range that peer with my ISP for BGP. For resilience I have a sub interface on the routers for the other data centre IP range with a higher weighted BGP config so if the router or link goes down the ISP will forward on to the higher weighted route (i.e. the failover DC).
All works fine and under failover conditions however I now have a requirement to be able to route externally to each data centre and of course due to the fact the router has a interface already with that range on it the packets are terminated locally. I guess what I need is for the router to ignore the locally connected backup bgp interface when routing but not quite sure how this can be achieved.
Possible solution is to use event tracking perhaps to keep track of remote IP and no shut the local interface should it go down or similar but seems a little clunky.
Does anyone have any ideas of a way forward/workaround or even document that may offer some kind of solution?
Thanks in advance.