Answer the question
In order to leave comments, you need to log in
How to set up non-standard Failover IP routing in Hetzner?
There is such a "setup" (clickable). Draw.io
Chart Input
:
auto vmbr2
iface vmbr2 inet manual
bridge_ports none
bridge_stp off
bridge_fd 0
2: ens18: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 86:47:47:fb:a7:ff brd ff:ff:ff:ff:ff:ff
inet 46.4.100.100 peer 88.99.99.100/32 scope global ens18
valid_lft forever preferred_lft forever
# ip route show
default via 172.21.3.1 dev ens19
88.99.99.100 dev ens18 proto kernel scope link src 46.4.100.100
# ip rule sh
0: from all lookup local
32765: from 46.4.100.100 lookup 10
32766: from all lookup main
32767: from all lookup default
# ip route show table 10
default via 88.99.99.100 dev ens18
ip route add 46.4.100.100/32 dev vmbr2
ip route add 46.4.100.100/32 dev vmbr2 table 11
ip rule add to 46.4.100.100 table 11
ip rule add to 46.4.100.100 iif vmbr1 table main
# ip rule sh
0: from all lookup local
32763: from all to 46.4.100.100 iif vmbr1 lookup main
32764: from all to 46.4.100.100 lookup 11
32765: from all lookup main
32766: from all lookup default
from all to 46.4.100.100 iif vmbr1 lookup main
and goes to the main routing table, respectively, is sent to the default gateway, i.e. to the Hetzner equipment that routes traffic to the currently active Failover IP server, i.e. on KVM Host 1, on KVM Host 1 the traffic falls under the rule from all to 46.4.100.100 lookup 11
and goes to VM10 via vmbr2 . Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question