Fix Unifi DHCP lease IP for Unraid VM clonned from template or snapshot
Every cloned VM in Unraid get from Unifi Cloud Gateway same IP address. To fix this issue you need to change the DHCP lease with simple trick. Set identification by MAC address. Need new IP just switch change Mac and you good to go.
sudo rm /var/lib/dhcp/dhclient.leases
add ID by mac address
sudo nano nano /etc/netplan/00-installer-config.yaml
dhcp-identifier: mac
this should be like this
network:
ethernets:
ens2:
dhcp4: true
dhcp-identifier: mac
version: 2
Shut down. Clone as many as you want this VM. Now every clone of VM will have different IP address.