[pve-devel] [RFC cluster/manager/network 0/6] Add support for DHCP servers to SDN
Stefan Hanreich
s.hanreich at proxmox.com
Wed Sep 13 15:48:45 CEST 2023
On 9/13/23 15:21, DERUMIER, Alexandre wrote:
> Can't we have simply an infinite lease time,
> and simply remove leases manually from dhcp + delete ip from ipam at vm
> stop/delete ?
Wouldn't this cause problems if we remove the lease at stop?
* VM 1 gets IP X via DHCP on start
* We stop VM 1 and remove the lease for IP X from the IPAM
* VM 2 starts some time after and we reserve IP X for it
* We restart VM 1 and reserve some other IP Y, but the VM will never
send a DHCP request to our DHCP server again, since it is convinced that
it still owns IP X (since we told the VM that the IP is forever theirs).
But VM 2 now also uses IP X.
More information about the pve-devel
mailing list