P
P
pashaxp2014-03-12 21:30:59
linux
pashaxp, 2014-03-12 21:30:59

How to set up a Shared IP Address?

There is a Linux server on one host and its almost identical copy (except for a few synchronization configs) on the second host, which are located in the same physical network environment (in the same switch).
There is, for example, the ucarp utility , which allows you to "transfer" an ip-address from one server to another.
The nuance is that it is necessary that the internal addresses of both servers, through which they "communicate" with each other, and their common ip-address, must all be from the same subnet.
For example, on server No. 1, the internal address is 192.168.10.2, on server No. 2 - 192.168.10.3, and the common "walking" between them should be 192.168.10.5.
And you need to make sure that the internal addresses of the server are from one subnet, and the external one (common for both servers) is from another subnet. For example, on server No. 1, the internal address is 192.168.10.2, on server No. 2 - 192.168.10.3, and the common "walking" between them should be 10.10.10.10.
Question: how?
There is, of course, an option to ping from one server to another using the cron at the internal address, and if it fails, then change the network configuration using the script (extinguish the interface on one server, raise it on another), but I want to find a more elegant solution ...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yuriy Andamasov, 2014-03-12
@pashaxp

habrahabr.ru/post/137476

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question