When running virtual machines on your network, consistent IP addresses make access and management much easier. Rather than configuring static IPs directly on each VM, you can use DHCP reservations in UniFi Network to ensure machines always receive the same address while still using automatic configuration.
Setting a Static IP via UniFi Network (DHCP Reservation)
- Open your UniFi Network controller
- Go to Client Devices and find your virtual machine (or wait for it to appear after connecting)
- Click on the client to open its details
- Click Settings (gear icon)
- Under Network, enable Fixed IP Address
- Enter your desired IP address
- Click Apply
Alternatively, if the client isn’t visible yet:
- Go to Settings → Networks
- Select your network
- Scroll to DHCP Service Management → Static IP Settings (or “DHCP Reservations” depending on controller version)
- Click Add Static IP
- Enter the MAC address of your virtual machine and the desired IP
- Save
Removing Static IP in UniFi Network
- Open your UniFi Network controller
- Go to Client Devices and find your machine
- Click on the client to open its details
- Click Settings (gear icon)
- Under Network, disable Fixed IP Address
- Click Apply
Or via the network settings:
- Go to Settings → Networks
- Select your network
- Scroll to DHCP Service Management → Static IP Settings
- Find the reservation and click the trash icon to delete it
- Save
Your machine will receive a new dynamic IP on its next DHCP lease renewal or immediately if you run sudo dhclient -r && sudo dhclient eth0 on Debian.