DHCP doesn't work anymore sind Proxmox 5.x

TechLineX

Active Member
Mar 2, 2015
213
5
38
Hello,

since Proxmox 5.x my DHCP won't work anymore. I still use a proxmox 4.x-Node in my cluster to have the option for dhcp.

Proxmox 5.x Node

/etc/default/isc-dhcp-conf:

Code:
# Defaults for isc-dhcp-server (sourced by /etc/init.d/isc-dhcp-server)

# Path to dhcpd's config file (default: /etc/dhcp/dhcpd.conf).
#DHCPDv4_CONF=/etc/dhcp/dhcpd.conf
#DHCPDv6_CONF=/etc/dhcp/dhcpd6.conf

# Path to dhcpd's PID file (default: /var/run/dhcpd.pid).
#DHCPDv4_PID=/var/run/dhcpd.pid
#DHCPDv6_PID=/var/run/dhcpd6.pid

# Additional options to start dhcpd with.
#    Don't use options -cf or -pf here; use DHCPD_CONF/ DHCPD_PID instead
#OPTIONS=""

# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
#    Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACESv4="eth0"
INTERFACESv6=""

eth1 -> Private VLAN

/etc/dhcp/dhcpd.conf:

Code:
#
# Sample configuration file for ISC dhcpd for Debian
#
#
# Sample /etc/dhcpd.conf
# (add your comments here)

# Lease-Times in seconds
default-lease-time 600;
max-lease-time 7200;
# Not Authorative for NW
not authoritative;

# Set TFTPD-Server // Nextserver
filename "/pxelinux.0";

# Disable Dynamic DNS
ddns-update-style none;

# Deny Declines (Prevent DDoS)
deny declines;
deny bootp;

# Option Statements
option domain-name-servers 8.8.8.8, 8.8.4.4;
option domain-name "xyz.de;
shared-network test {

        # Our Subnet
        subnet x.x.x.x netmask 255.255.255.192 {
        option subnet-mask 255.255.255.192;
        option routers x.x.x.x;
        option broadcast-address x.x.x.x;
        }

        interface vmbr0;
        filename "pxelinux.0";
}

My KVM-Guests (using vmbr0 -> public-interface Intel E1000) won't get any IP-Adresses


With Proxmox 4.x all is working fine:

There is no /etc/default/isc-dhcp-conf

/etc/dhcp/dhcpd.conf:

Code:
#
# Sample configuration file for ISC dhcpd for Debian
#
#
# Sample /etc/dhcpd.conf
# (add your comments here)

# Lease-Times in seconds
default-lease-time 600;
max-lease-time 7200;
# Not Authorative for NW
not authoritative;

# Set TFTPD-Server // Nextserver
filename "/pxelinux.0";

# Disable Dynamic DNS
ddns-update-style none;

# Deny Declines (Prevent DDoS)
deny declines;
deny bootp;

# Option Statements
option domain-name-servers 8.8.8.8, 8.8.4.4;
option domain-name "xyz.de;
shared-network test {

        # Our Subnet
        subnet x.x.x.x netmask 255.255.255.192 {
        option subnet-mask 255.255.255.192;
        option routers x.x.x.x;
        option broadcast-address x.x.x.x;
        }

        interface vmbr0;
        filename "pxelinux.0";

Code:
Jun 22 18:36:25 host dhcpd: DHCPREQUEST for x.x.x.x from xx:xx:83:69:00:f6 via vmbr0
Jun 22 18:36:25 host dhcpd: DHCPACK on x.x.x.x to xx:xx:83:69:00:f6 via vmbr0
Jun 22 18:36:25 host dhcpd: DHCPREQUEST for x.x.x.x from xx:xx:d6:fa:5c:9e via vmbr0
Jun 22 18:36:25 host dhcpd: DHCPACK on x.x.x.x to xx:xx:d6:fa:5c:9e via vmbr0
Jun 22 18:36:28 host dhcpd: DHCPREQUEST for x.x.x.x from xx:xx:c0:ae:78:4d via vmbr0
Jun 22 18:36:28 host dhcpd: DHCPACK on x.x.x.x to xx:xx:c0:ae:78:4d via vmbr0

Host:
eth0 - public
eth1 - private

vmbr0: public
vmbr1: private



Hope to get help from you, guys.

Thank you!