3
I have a server which is in the middle of a forest. It is connected to the Internet via a microwave link and an ADSL link.Hence it has two different static IP addresses. Now if there is heavy rain, the microwave link breaks and I should use the much slower ADSL link. And I ping the microwave ip time to time to check if it is up again . But at times, I end up using the very slow ADSL link even if the microwave link is back up. Hence I need a way to automate this in the following way.
1.I need to abstract the IP address of the machine with some other name which when I use ssh or sftp, will poll both the IP and connect me to the best one.
so for eg: if I say ssh -Y name@server, It should first try to connect to the microwave link if it cant, then connect to ADSL.
2.Suppose the first time I connect, the microwave link is down so it connects to ADSL, I need it to dynamically change to the microwave link once it is working again. Is this even possible?
IP address abstraction is DNS, right? So how about scripting a change to your local hosts file to swap out the IP address for the currently preferred interface? – Brian Adkins – 2014-06-05T00:22:12.787
@BrianAdkins Can you please explain more elaborately? I cannot get what you actually mean. – Vivek V K – 2014-06-05T00:28:31.083
4
MultiPath TCP is one option in development for situations like this: http://www.multipath-tcp.org
– Brian – 2014-06-05T00:44:52.507@Poul7 ha ha. Thanks it is a server for a Radio Telescope. – Vivek V K – 2014-06-05T01:26:42.140