Assign static IPs to KVM VPS in Proxmox using DHCP

The title said it all. Using this method on LT DEALS 1701.3.

Install isc-dhcp-server:

apt install isc-dhcp-server

Edit /etc/default/isc-dhcp-server . It should like:

# The default bridge is vmbr0.

Modify /etc/dhcp/dhcpd.conf . Example:

subnet netmask {
default-lease-time 21600000;
max-lease-time 432000000;

# Bind IP by MAC
host VM1 {

# MAC Address
hardware ethernet 52:54:xx:xx:xx:x1;

# Gateway
option routers;

# Subnet
option subnet-mask;

# Failover IP

# DNS server
option domain-name-servers,;


Starting the dhcp server on boot:

systemctl enable isc-dhcp-server

Reboot the node server.

When creating the VM we just need to specify the MAC address for specific IP and leave the network config using DHCP.

Top News