I am learning about route protocols and I would like to know what is the common approach to handle route conflict between two datacenter.
I have the scenario bellow:
So I want devices on DC1 to communicate with DC3 via VPN1 and devices on DC2 to communicate with DC3 via VPN2.
In case of any VPN failure I want the communication to DC3 be via Link1 -> VPNx
.
For example, if VPN2 fail, the communication will be like:
DC2 -> Link1 -> DC1 -> VPN1 -> DC3
if VPN1 fail, the communication will be like:
DC1 -> Link1 -> DC2 -> VPN2 -> DC3
I can advertise DC3 CIDR via BGP, so DC1 and DC2 will know how to route traffic to DC3.
But in this case it will generate a conflict internally between DC1 and DC2 announcements, isn't it?
How to handle this kind of traffic pattern?