--- Begin Message ---
This patch fixes an issue where cloned VMs with identical MAC addresses
receive different IP addresses instead of their reserved static DHCP leases.
The current behaviour allows duplicate MAC addresses in the IPAM database,
which leads to unexpected IP assignments. When a VM template with a static
DHCP reservation is cloned and the clone keeps the same MAC address (or
I assign it a NIC with the same MAC), it receives a new dynamic IP rather
than the existing reservation.
This patch adds a check for existing MAC-to-IP mappings before allocating
new addresses, so that VMs with already-registered MAC addresses in IPAM
receive their previously assigned IPs.
The issue was discovered and discussed in the Proxmox forum:
https://forum.proxmox.com/threads/ipam-reserving-dhcp-leases-via-mac-addresses.174704/
I have tested this on PVE 8.4 and 9.0.
Philippos Giavridis (1):
fix: prevent duplicate DHCP leases for identical MAC address
src/PVE/Network/SDN/Subnets.pm | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
--
2.43.0
--- End Message ---
_______________________________________________
pve-devel mailing list
[email protected]
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel