A
A
Andrey2015-10-28 23:09:20
Hetzner
Andrey, 2015-10-28 23:09:20

How to use Failover IP (Hetzner) on a Xen Server VM?

There are servers on hetzner, XenServer is raised on them. Additional IPs were ordered for virtual machines, and when installing virtual machines, the MAC address was specified and the IP was set automatically, everything works well from the outside, they can be seen. Also on one of the servers beat the Failover IP order. But I can not fasten it to the virtual machine in any way. Can anyone suggest how to do this?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vlad Zhivotnev, 2015-10-29
@inkvizitor68sl

ip link eth0
ip addr add 192.168.0.1/32 dev eth0
ip route add 10.0.0.1/32 dev eth0
ip route replace default via 10.0.0.1 dev eth0 src 192.168.0.1
192.168.0.1 - fo ip, 10.0.0.1 - gateway ( what - fz, probably - the dom0 address of the machine, only it is also necessary to configure routing on it (or not to break, at least)).
In general:
1) what they wanted to do (wrote)
2) what exactly they did
3) what happened
4) why do you think that it turned out wrong.
No diagnostics, no network config, nothing.

A
Argenon, 2015-10-30
@Argenon

Failover IP is ordered not for one server, but for at least two (in the hatsner, this address can be transferred to any of your other servers). Its meaning is that if one server (currently active) fails, the second server takes this IP for itself and the service does not stop working. That is, it is necessary for a cluster for example. And it’s easy to forward it to a virtual machine: create a network interface in the virtual machine, assign this IP to it, select the xen’s external interface (Network 0 for example). Do not forget that the hatsner is bound to the poppy address and it will need to be registered on the virtual machine.

M
Maxim Kersantinov, 2018-03-14
@Kersantinov

A little necroposting. I'm struggling with this issue myself. But the answer from the support is not encouraging.
Dear Client
This is possible (use Failover IP on VM) but only via NAT, you cannot assign a separate MAC address to your failover IP therefore it does not work if you use a bridged setup for example.
Those. it will not be possible to use a white IP address on a virtual machine. It can only be routed to a physical server and port forwarded from it to a virtual machine.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question