I’m trying to setup Anycast IP with vyatta and I have few questions. First, let me explain my current:
I have one router (router1) on remote location A, (WAN eth0 , LAN eth1 <192.168.2.1/24>), and my second router (router2), is in a different geographic location (location B), it has WAN eth0 and LAN eth1 <10.0.0.0/8>.
Both routers are connected to one another via GRE tunnel, and I’m using OSPF to advertise the routes. Now here’s what I’m trying to do:
I would like to setup anycast IP with vyatta, i.e. server1 behind router1 would use IP 192.168.2.50 and server2 behind router2 would also use IP 192.168.2.50. And then when a client tries to access IP 192.168.2.50, the client would be routed to the nearest server, and if one those servers failed, the client would simply be re-routed to the next working server with IP 192.168.2.50.
I was wondering if such configuration would be possible, and if so, how? I was thinking of something along the lines of announcing 192.168.2.0/24 with iBGP between router1 and router2 (connected via GRE tunnel), and then see if I could assign IPs from that same 192.168.2.0/24 subnet to servers on both locations that use the vyatta routers as gateways.
I know this seems confusing and I may even be going on a completely wrong direction here(not too much experience with networking in general), but maybe someone could point me out in the right direction.