Hi everyone.
I searched for hours but found nothing about the following issue. No sure if it is because is a simply task or the contrary.
We have 3 proxmox nodes on 3 hetzner machines attached to the same vswitch.
Right now its all working smoothly, the guests kvm/cts can ping each other on the different nodes and can reach internet trough their gateways. Each node is the gateway for their guest machines. Each node guests are on a a different subnet, they can communicate with other guests on other nodes trough routing.
The problem appeared when we wanted to activate the HA feature on Proxmox. The guests machines are relocated on other nodes without problem, on node failure, etc. BUT their network connection is lost because the gateway configured on the guest belongs to the old node the machine comes from.
I wonder how we have to configure our network to have HA , maybe a single gateway for all the machines or how we can achieve this on hetzner. On a "physical setup", all the three nodes would be attached to a switch and reach internet trough a router o
This is the configuration of one of our nodes:
I searched for hours but found nothing about the following issue. No sure if it is because is a simply task or the contrary.
We have 3 proxmox nodes on 3 hetzner machines attached to the same vswitch.
Right now its all working smoothly, the guests kvm/cts can ping each other on the different nodes and can reach internet trough their gateways. Each node is the gateway for their guest machines. Each node guests are on a a different subnet, they can communicate with other guests on other nodes trough routing.
The problem appeared when we wanted to activate the HA feature on Proxmox. The guests machines are relocated on other nodes without problem, on node failure, etc. BUT their network connection is lost because the gateway configured on the guest belongs to the old node the machine comes from.
I wonder how we have to configure our network to have HA , maybe a single gateway for all the machines or how we can achieve this on hetzner. On a "physical setup", all the three nodes would be attached to a switch and reach internet trough a router o
This is the configuration of one of our nodes:
Code:
auto lo
iface lo inet loopback
iface lo inet6 loopback
#PUBLIC LAN
auto enp4s0
iface enp4s0 inet static
address public-ip for the node
netmask 255.255.255.192
gateway gw-ip
pointopoint gw-ip
#CLUSTER VSWITCH LAN
auto enp4s0.4000
iface enp4s0.4000 inet static
address 192.168.100.11
netmask 255.255.255.0
vlan-raw-device enp4s0
mtu 1400
up route add -net 192.168.12.0 netmask 255.255.255.0 gw 192.168.100.12 dev enp4s0.4000
up route add -net 192.168.13.0 netmask 255.255.255.0 gw 192.168.100.13 dev enp4s0.4000
up route add -net 192.168.14.0 netmask 255.255.255.0 gw 192.168.100.14 dev enp4s0.4000
#GUEST LAN FOR PROXMOX
auto vmbr0
iface vmbr0 inet static
address 192.168.11.1
netmask 255.255.255.0
bridge-ports none
bridge-stp off
bridge-fd 0
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s '192.168.11.0/24' -o enp4s0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '192.168.11.0/24' -o enp4s0 -j MASQUERADE