proxmox does not allow me to set only a gateway for an interface

eth

Renowned Member
Feb 24, 2016
69
3
73
39
I use heartbeat to move the primary IP address between the eth0 interface of my 2 containers.
For the internet connection to work, heartbeat requires the gateway to already be set in the interface configuration.

When I set the gateway in the container settings and leave the IP address empty, it is not saved:

Before:
upload_2017-3-21_16-51-47.png
After save:
upload_2017-3-21_16-51-59.png
This means that I need to make an ugly script to set the gateway manually on heartbeat state change.

Given my previous request (Proxmox still uses DHCP even though the interface is configured as Static: https://forum.proxmox.com/threads/proxmox-4-4-centos-network-dhcp-bug.33687/), the network configurator needs to be fixed asap.
 
Hi, unfotunately I could not reproduce the vanishing Gateway entry with a quick test. If I only set the Gateway entry it stays, even after container start/stop.

Also I do not believe that another tool deletes it because it is configured in the PVE CT config under /etc/pve/lxc/XYZ.conf

Do you have a up to date system?